Papers
Topics
Authors
Recent
Search
2000 character limit reached

Geometric Alignment Score (GAS)

Updated 5 December 2025
  • Geometric Alignment Score (GAS) is a metric that compares the topological features of real and generated data manifolds using Betti curves and relative living time.
  • It leverages computational topology constructs like simplicial complexes and persistent homology to detect GAN failures such as mode collapse and local geometric distortions.
  • GAS computes a mean relative living time (MRLT) via witness complexes, offering a robust, topology-based alternative to conventional metrics like Inception Score and FID.

The Geometric Alignment Score (GAS), also known as the Geometry Score, is a quantitative and qualitative metric for comparing generative models, specifically Generative Adversarial Networks (GANs), via the topological properties of the data manifolds they generate. GAS evaluates the degree to which the model-generated sample manifold matches the topological “shape” of the manifold underlying real data, providing a distinctive perspective compared to conventional GAN evaluation metrics centered on perceptual similarity or feature distributions. This framework is grounded in computational algebraic topology and is applicable to datasets of arbitrary nature, including non-image domains (Khrulkov et al., 2018).

1. Manifold Hypothesis and Topological Motivation

In generative modeling, the manifold hypothesis posits that real-world data, such as natural images, resides on a low-dimensional, nonlinear submanifold MdataRD\mathcal M_{\mathrm{data}}\subset \mathbb R^D within high-dimensional ambient space. A GAN generator induces its own model manifold Mmodel\mathcal M_{\mathrm{model}}. Traditional metrics, including Inception Score and Fréchet Inception Distance, are contingent on neural network feature extractors and Gaussian approximations, thereby rendering them insensitive to certain structural pathologies such as mode collapse or local geometric distortions.

Topology is uniquely robust to smooth deformations—meaning connected components, loops, and higher-dimensional “holes” persist under continuous transformations—making GAS an invariant measure for comparing real and generated data distributions by their intrinsic shape characteristics. The objective is to detect topological defects introduced by model failures, complementing existing metrics by identifying qualitative discrepancies missed by network-based or distributional comparisons.

2. Mathematical Framework

GAS draws upon four constructs from computational topology: simplicial complexes, the Vietoris–Rips filtration, Betti numbers, and persistent homology.

  • Simplicial Complexes: Given a finite vertex set Z={z1,,zn}Z = \{z_1, \dots, z_n\}, an abstract simplicial complex S\mathcal S is a collection Σ\Sigma of subsets of ZZ that includes every subset of each simplex and every singleton {zi}\{z_i\}.
  • Vietoris–Rips Filtration: For metric space (X,d)(X, d) and scale parameter ε0\varepsilon \geq 0, Rε(X)={σX:d(x,x)ε  x,xσ}R_\varepsilon(X) = \{\sigma \subset X : d(x, x’) \leq \varepsilon \;\forall x, x’ \in \sigma\} forms nested complexes as Mmodel\mathcal M_{\mathrm{model}}0 increases, yielding a filtration.
  • Betti Numbers: The Mmodel\mathcal M_{\mathrm{model}}1-th Betti number Mmodel\mathcal M_{\mathrm{model}}2 quantifies the number of independent Mmodel\mathcal M_{\mathrm{model}}3-dimensional holes (Mmodel\mathcal M_{\mathrm{model}}4: connected components; Mmodel\mathcal M_{\mathrm{model}}5: loops).
  • Persistent Homology: As Mmodel\mathcal M_{\mathrm{model}}6 varies, holes “appear” (birth Mmodel\mathcal M_{\mathrm{model}}7) and “disappear” (death Mmodel\mathcal M_{\mathrm{model}}8), forming intervals Mmodel\mathcal M_{\mathrm{model}}9. The Betti curve Z={z1,,zn}Z = \{z_1, \dots, z_n\}0 counts active Z={z1,,zn}Z = \{z_1, \dots, z_n\}1-dimensional features at scale Z={z1,,zn}Z = \{z_1, \dots, z_n\}2.

3. Derivation and Construction of GAS

The metric construction focuses on Z={z1,,zn}Z = \{z_1, \dots, z_n\}3 (loops). The sequence of steps is as follows:

  • Betti Curves and Relative Living Time (RLT): The instantaneous Betti-1 count is Z={z1,,zn}Z = \{z_1, \dots, z_n\}4. For integer Z={z1,,zn}Z = \{z_1, \dots, z_n\}5,

Z={z1,,zn}Z = \{z_1, \dots, z_n\}6

computes the proportion of scale Z={z1,,zn}Z = \{z_1, \dots, z_n\}7 where the complex sustains exactly Z={z1,,zn}Z = \{z_1, \dots, z_n\}8 loops.

  • Witness Complex and Mean RLT (MRLT): For scalable computation, a small random subset of Z={z1,,zn}Z = \{z_1, \dots, z_n\}9 landmarks is selected uniformly from S\mathcal S0 to build a witness complex. Repeating S\mathcal S1 draws yields

S\mathcal S2

and S\mathcal S3 is a probability distribution over loop counts.

  • Geometry Score Computation: Given two datasets (real S\mathcal S4, generated S\mathcal S5), compare their MRLTs using squared S\mathcal S6 distance:

S\mathcal S7

Optionally, use Earth-Mover’s Distance (EMD) for distributional divergence. Lower scores indicate superior topological alignment.

4. Algorithmic Procedure and Computational Complexity

Key parameters and workflow:

  • S\mathcal S8, S\mathcal S9
  • Number of landmarks Σ\Sigma0 (typically 50–100)
  • Number of trials Σ\Sigma1 (at least Σ\Sigma2–Σ\Sigma3)
  • Maximal loop count Σ\Sigma4
  • Scale factor Σ\Sigma5 for Σ\Sigma6 (set as Σ\Sigma7)

The algorithm proceeds:

{zi}\{z_i\}2

Per trial, distance matrix computation is Σ\Sigma8. Witness complex and persistence for dimension ≤ 2 scales subcubically in Σ\Sigma9 and is independent of ZZ0. Overall complexity is linear in ZZ1 and the product ZZ2 times the number of trials.

5. Diagnostic Utility for GAN Evaluation

GAS is designed to detect GAN mode collapse and topological anomalies:

  • Mode Collapse: Generated data lacking loops yields MRLT concentrated at ZZ3, resulting in high geometry score versus real data.
  • Partial Collapse or Missing Modes: Shifts in MRLT mass across different ZZ4 bins indicate nuanced topological mismatches.
  • Empirical Examples: On synthetic circles with variable loop counts, GAS recovers correct ZZ5 values. In the CelebA “bad-DCGAN,” forced mode collapse yields MRLT peaked at ZZ6. On MNIST, WGAN-GP achieves MRLT distributions closer to real samples than vanilla WGAN.

This suggests that GAS can flag model-specific failures not captured by perceptual metrics.

6. Implementation and Practical Considerations

Library choices include:

  • GUDHI (Python): Fully supports witness complexes and persistent homology.
  • Ripser, Dionysus: Efficient for Vietoris–Rips complexes and fast persistence computation, but lack dedicated witness-complex support.

Implementation heuristics:

  • Random, uniform landmark selection.
  • Sufficient trial repetitions for MRLT stability (ZZ7).
  • ZZ8 scaling via ZZ9.
  • Finely bin Betti curves or compute exact Lebesgue measures for numerical robustness.
  • Computational bottleneck is pairwise distance calculation for high data dimensionality; persistent homology computation is negligible for simplex dimension {zi}\{z_i\}0.

7. Relationship to Other Metrics and Combined Usage

A comparison of principal GAN quality metrics is summarized as follows:

Metric Measures Limitations
Inception Score Sharpness, diversity Requires pretrained net; topology-insensitive
FID Feature Gaussian fit Fast; overlooks topological error
Geometry Score/GAS Topological alignment No visual fidelity; only {zi}\{z_i\}1; higher compute cost

IS and FID characterize perceptual quality and diversity but fail to identify topological pathologies. GAS operates without pretrained nets, is sensitive to mode collapse and topological mismatches, and extends to non-image domains, but does not directly address visual fidelity, is limited to first-order topology, and is computationally intensive.

In practice, joint application of GAS and perceptual metrics offers a more thorough diagnostic, with GAS highlighting topological defects and IS/FID reporting perceptual congruity (Khrulkov et al., 2018).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Geometric Alignment Score (GAS).