Emergent Asymmetry of Precision and Recall for Measuring Fidelity and Diversity of Generative Models in High Dimensions

Mahyar Khayatkhoei, Wael AbdAlmageed

Evaluating the performance of generative models like GANs and Diffusion models is a cornerstone of modern AI research. We typically rely on two primary axes: Fidelity (how realistic are the samples?) and Diversity (does the model cover the entire data distribution?). To quantify these, the "Improved Precision and Recall" metrics have become the industry standard. However, research presented at ICML 2023 reveals a critical vulnerability in these metrics: an "emergent asymmetry" in high-dimensional spaces that can lead to deceptive results.

The Problem: The Curse of Dimensionality

Standard Precision and Recall metrics estimate the "support"—the region of space where data resides—using k-nearest neighbors (k-NN). In theory, if a generated sample falls within the estimated support of the real data, it counts toward Precision. If a real data point falls within the support of the generated data, it counts toward Recall.

The authors demonstrate that in high-dimensional feature spaces (the standard environment for these calculations), this k-NN approximation becomes extremely fragile. This is due to the "Curse of Dimensionality." As the number of dimensions ($d$) increases, the geometry of the space changes such that distributions that are nearly identical can appear to have no overlap if one is slightly "contracted" or "expanded" relative to the other.

This leads to emergent asymmetry:

  • A model that produces slightly "contracted" data (e.g., lower variance or lower contrast) might achieve a perfect Precision score of 1.0, even if the images are of poor quality.
  • A model that is nearly perfect but slightly "expanded" might see its Precision score drop to near zero.

Theoretical Foundation

The paper provides a rigorous mathematical proof of this phenomenon using hyperspherical distributions. They show that as $d \to \infty$, Precision tends toward a binary state: it is either 1.0 (if the generated radius is less than the real radius) or 0.0 (if the generated radius is greater), regardless of how small the difference actually is. This binary behavior makes the metric useless for comparing models that approach the target distribution from different geometric directions.

The Solution: Symmetric Metrics

To resolve this, the authors propose Symmetric Precision and Recall (symPrecision and symRecall). The core idea is to force the metric to consider the relationship from both perspectives simultaneously.

  1. Complementary Metrics: They define cPrecision and cRecall. While standard Precision uses the real distribution as the reference, cPrecision uses the generated distribution as the reference.
  2. The "Min" Gate: The final metrics are calculated as the minimum of the standard and complementary versions:
  3. $symPrecision = \min(Precision, cPrecision)$
    • $symRecall = \min(Recall, cRecall)$

By taking the minimum, the authors ensure that a model cannot "cheat" the metric by simply being a subset of the real data. For a score to be high, the generated and real distributions must truly align.

Experimental Validation

The authors tested their hypothesis using synthetic data (hyperspheres and Gaussians) and real-world datasets like CelebA and CIFAR10, using VGG16 embeddings.

The Contrast Stress Test

One of the most striking results involved manipulating image contrast. In experiments on the CelebA dataset, the authors found that "washed out" (low-contrast) images—which are objectively lower in fidelity—actually achieved a standard Precision score of 0.82. This happened because the low-contrast distribution "contracted" inside the real data manifold. Their proposed symPrecision correctly identified the discrepancy, yielding a much more accurate score of 0.15.

Stability Across Scales

On CelebA, scaling the feature space by a mere 10% (from 0.9x to 1.1x) caused standard Precision to collapse from ~1.0 to ~0.2. In contrast, symPrecision remained stable and peaked correctly at the 1.0 scale, demonstrating its robustness as a diagnostic tool.

Conclusion and Future Work

The discovery of emergent asymmetry suggests that many previous evaluations of generative models may have been inadvertently biased by the geometric properties of high-dimensional space. By adopting symPrecision and symRecall, researchers can obtain a more honest and robust assessment of model performance.

While the mathematical proofs currently focus on hyperspheres, the empirical success on complex image manifolds suggests broad applicability. Future work remains to extend these proofs to arbitrary manifolds and to investigate whether similar asymmetries plague other metrics like Density and Coverage.

Summary updated

BibTeX
@inproceedings{khayatkhoei2023emergent,
  author = {Mahyar Khayatkhoei and Wael AbdAlmageed},
  title = {{Emergent Asymmetry of Precision and Recall for Measuring Fidelity and Diversity of Generative Models in High Dimensions}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=D8MLOOGPCg},
}
Figure