Geometry Score: A Method For Comparing Generative Adversarial Networks

Valentin Khrulkov, Ivan V. Oseledets

Evaluating Generative Adversarial Networks (GANs) and detecting mode collapse remains a notoriously difficult challenge. Traditional discriminator loss functions rarely correlate well with actual sample quality. Furthermore, models frequently suffer from "mode collapse," a failure state where the generator produces a highly limited variety of samples, completely missing the multimodal richness of the true data distribution.

Currently, the gold standards for GAN evaluation are the Inception Score (IS) and Fréchet Inception Distance (FID). However, these metrics rely heavily on pre-trained image classification networks (like InceptionV3). This creates a bottleneck: they are inherently tied to the biases of the auxiliary network and are largely unsuitable for non-visual data.

To address this, researchers have introduced the Geometry Score, a novel, domain-agnostic metric that evaluates GANs by comparing the topological properties of the real data manifold against the generated data manifold.

Generated images mapped to an underlying topological manifold.

The Topological Approach

The Geometry Score is rooted in the Manifold Hypothesis, which posits that high-dimensional data actually lies on a lower-dimensional manifold. If a GAN is performing optimally, the manifold of its generated samples should topologically resemble the manifold of the real data.

To compare these unknown manifolds using only discrete data points, the authors leverage persistent homology:

  1. Simplicial Complexes: The method approximates the manifolds by building "witness complexes"—networks of points, edges, and triangles—from a random subset of data points called landmarks.
  2. Persistence Tracking: By gradually increasing a proximity parameter ($\epsilon$), the algorithm tracks the "birth" and "death" of topological features, specifically 1-dimensional holes or loops.
  3. Relative Living Times (RLT): The system calculates how long a specific number of holes persists across the entire range of $\epsilon$.
  4. Mean Relative Living Times (MRLT): Because the initial landmark selection is random, this process is repeated stochastically to obtain the MRLT. This yields a probability distribution representing the confidence in the number of holes present in the manifold.
Visualizing persistent homology: As the proximity parameter expands, data points form simplicial complexes, allowing the tracking of topological features (holes) over time.

The final Geometry Score is calculated as the $L_2$ distance between the MRLT distribution of the real dataset and that of the generated dataset. A lower score indicates higher topological similarity and, consequently, a better-performing GAN.

Key Insights and Experimental Results

The Geometry Score offers several distinct advantages and insights into GAN performance:

  • Topology Reflects Diversity: The number and persistence of topological holes act as a strong proxy for data diversity. A GAN suffering from mode collapse will exhibit a drastically different topological signature—typically fewer or different holes—than the rich, multimodal real data.
  • Domain Agnosticism: Because the Geometry Score relies purely on pairwise Euclidean distances between samples to build its complexes, it requires no domain-specific feature extractors.
  • Superior Mode Collapse Detection: In experiments using the CelebA dataset (cropped face images), the authors compared a healthy DCGAN to a low-capacity one forced into mode collapse. The healthy model achieved a Geometry Score of $14 \times 10^{-3}$, closely matching the real data. The collapsed model's MRLT peaked at 0 holes, clearly indicating topologically trivial samples. In contrast, standard Inception Scores failed to clearly capture the severity of this collapse during training.
  • Model Comparison: When evaluated on the MNIST dataset, the Geometry Score successfully identified that WGAN-GP produces better topological approximations than a standard WGAN. WGAN-GP achieved a score of $2.04 \times 10^{-3}$, vastly outperforming WGAN's $26.1 \times 10^{-3}$.
  • Non-Visual Data: Demonstrating its flexibility, the metric successfully evaluated a CaloGAN model trained on a non-visual experimental particle physics dataset (calorimeter responses), confirming the model accurately captured the topology of real physics data without needing a specialized evaluation network.

Limitations and Future Directions

While powerful, the Geometry Score does have limitations. Because it strictly evaluates topological properties—which are invariant to transformations like shifting or scaling—it might not perfectly correlate with human-perceived visual quality. For example, an image shifted by a few pixels might look worse to a human observer but retain the exact same topological structure.

For future applications, the authors suggest using the Geometry Score in conjunction with visual metrics like FID for image tasks. Additionally, for extremely high-dimensional image data, calculating the Geometry Score on features extracted from a neural network, rather than raw pixels, could yield even more robust performance assessments.

Summary updated

BibTeX
@inproceedings{khrulkov2018geometry,
  author = {Valentin Khrulkov and Ivan V. Oseledets},
  title = {{Geometry Score: A Method For Comparing Generative Adversarial Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=H14EZjbO-r},
}
Figure