TopP&R: Robust Support Estimation Approach for Evaluating Fidelity and Diversity in Generative Models

Pum Jun Kim, Yoojin Jang, Jisu Kim, Jaejun Yoo

Abstract

Evaluating the performance of generative models requires accurate measures of fidelity (quality) and diversity (coverage). Traditional metrics, such as Fréchet Inception Distance (FID) and standard Precision and Recall (P&R), often struggle with noise, outliers, and inconsistent rankings across different feature extractors. This paper introduces TopP&R (Topological Precision and Recall), a robust evaluation framework that leverages topological data analysis (TDA) to estimate the true support of data distributions. By filtering out statistically insignificant features using persistent homology, TopP&R provides a more reliable, bounded, and consistent metric for assessing state-of-the-art generative models.

Introduction

As generative modeling—spanning GANs, Diffusion models, and VAEs—continues to advance, the need for precise evaluation metrics has never been greater. Ideally, a metric should capture two distinct dimensions: Fidelity, the degree to which generated samples resemble real data, and Diversity, the extent to which the model captures the full variation of the target distribution.

Existing metrics typically rely on estimating the "support" of the data—the region in a high-dimensional feature space where the data resides. However, standard support estimation is highly sensitive to outliers and artifacts. A few noisy data points can artificially expand the estimated support, leading to inflated scores that do not align with human perception. TopP&R addresses this by introducing a conservative, topologically-grounded approach to support estimation that distinguishes genuine data signals from noise.

The Challenge of Support Estimation

The fundamental bottleneck in evaluating generative models is not the mathematical definition of precision or recall, but the difficulty of defining the "territory" of the data. If the estimated support is too inclusive, the metric becomes vulnerable to outliers; if it is too restrictive, it may unfairly penalize model diversity.

Standard P&R and Density & Coverage (D&C) metrics often fail because they lack a robust mechanism to handle the "curse of dimensionality" and the presence of low-density noise. This leads to "pathological" behavior where a model might receive a high diversity score simply by generating a handful of bizarre outliers that happen to fall into noisy regions of the feature space.

The TopP&R Methodology

TopP&R introduces a multi-step pipeline designed to produce a robust and statistically consistent estimate of data support:

  1. Feature Embedding: Images are mapped into a high-dimensional vector space using pre-trained networks such as InceptionV3, VGG16, or SwAV.
  2. Dimensionality Reduction: To maintain topological integrity while reducing computational load, the authors apply a random linear projection (based on the Johnson-Lindenstrauss Lemma) to map features into a lower-dimensional space (typically 32D).
  3. Kernel Density Estimation (KDE): The probability density of the data points is estimated within this reduced space.
  4. Topological Filtering: Using Persistent Homology, the framework identifies which density clusters are statistically significant "signals" and which are transient "noise." In TDA, features that "persist" across multiple scales are treated as part of the true distribution.
  5. Bootstrap Confidence Bands: The authors calculate a confidence threshold ($\alpha$). Only regions where the density significantly exceeds this threshold are included in the final support estimation.
  6. Precision and Recall Calculation: Finally, Precision (fidelity) and Recall (diversity) are calculated based on these cleaned, robust supports.

Experimental Validation

The researchers evaluated TopP&R across a variety of synthetic and real-world datasets, including:

  • Toy Data: 64-dimensional Mixtures of Gaussians used to simulate specific failure modes like outliers and mode-dropping.
  • FFHQ & CIFAR-10: Standard benchmarks for high-quality faces and general object recognition.
  • Baby ImageNet: A subset of ImageNet specifically used to test sensitivity to class-based mode collapse.

Key Findings

  • Robustness to Outliers: In tests where 15% of the dataset was replaced with random noise, TopP&R remained stable. In contrast, standard P&R and D&C metrics showed massive fluctuations, incorrectly interpreting noise as valid data support.
  • Consistency Across Embedders: One of the most significant advantages of TopP&R is its stability across different feature extractors. While FID rankings often change depending on whether one uses Inception or VGG, TopP&R maintained the most consistent model rankings (measured by the lowest Mean Hamming Distance).
  • Linear Response to Mode Collapse: TopP&R accurately tracked the decline in diversity as classes were systematically removed from the generated set, providing an intuitive, near-linear response where other metrics behaved erratically.
  • Interpretability: Unlike the "Density" metric, which can reach infinity, TopP&R is bounded between 0 and 1. This makes it easier for researchers to quantify and compare model performance across different studies.

Discussion and Future Work

By adopting a "conservative" stance—only trusting data regions that are statistically significant—TopP&R offers a more reliable mirror of model quality. However, this robustness comes with increased computational complexity compared to simpler metrics like FID. While random projections mitigate this, the 32D reduction may still result in the loss of extremely fine-grained details.

Future research may focus on localizing uncertainty. Rather than estimating a global confidence band for the entire support, local uncertainty estimation could make the metric even more sample-efficient and sensitive to local variations in data density. As it stands, TopP&R represents a significant step forward in the quest for rigorous, noise-resistant evaluation in generative AI.

Summary updated

BibTeX
@inproceedings{kim2023topp,
  author = {Pum Jun Kim and Yoojin Jang and Jisu Kim and Jaejun Yoo},
  title = {{TopP\&R: Robust Support Estimation Approach for Evaluating Fidelity and Diversity in Generative Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=2gUCMr6fDY},
}
Figure