A Unifying Information-theoretic Perspective on Evaluating Generative Models

Alexis Fox, Samarth Swarup, Abhijin Adiga

Abstract

Evaluating generative models remains a significant challenge due to the lack of a single metric that captures all failure modes. This paper presents a theoretical unification of $k$-Nearest Neighbor ($k$NN) evaluation metrics through information theory. We introduce three new metrics—Precision Cross-Entropy (PCE), Recall Cross-Entropy (RCE), and Recall Entropy (RE)—to distinguish between mode invention, mode dropping, and mode shrinkage.

Introduction

Deep generative models, such as GANs and Diffusion models, are typically evaluated on their ability to replicate complex data distributions. Traditional 1D metrics like Fréchet Inception Distance (FID) offer a single score but fail to diagnose specific failure modes. While 2D metrics for Precision and Recall exist, they often lack a rigorous theoretical foundation and struggle to differentiate between various types of diversity loss.

Conceptual diagram of generative model failure modes: (a) Mode Dropping, (b) Mode Invention, and (c) Mode Shrinkage.

The core issue is distinguishing between mode dropping (missing entire categories) and mode shrinkage (reduced variety within a category). This paper addresses these gaps by re-evaluating $k$NN-based metrics as empirical estimators of statistical divergences.

Theoretical Framework

By applying an information-theoretic lens, the authors demonstrate that existing metrics like "Density" and "Precision Coverage" are essentially measures of the "bits" required to encode one distribution using another. They propose a suite of additive metrics based on Shannon Entropy ($H$) and Cross-Entropy ($CE$):

  1. Precision Cross-Entropy (PCE): Measures fidelity by quantifying how "surprising" generated samples are relative to real data. High PCE indicates mode invention (unrealistic outputs).
  2. Recall Cross-Entropy (RCE): Measures inter-class diversity, equivalent to the KL-divergence $D_{KL}(R||G)$. It identifies mode dropping.
  3. Recall Entropy (RE): Measures intra-class diversity. This metric is specifically designed to detect mode shrinkage, where the model generates repetitive outputs within a category.

Experimental Setup

The framework was validated on standard benchmarks:

  • CIFAR-10 and ImageNet: Used to test scalability and sensitivity.
  • Embeddings: The researchers utilized DINOv2 features for semantic mapping, providing a more robust vector space than the traditional Inception-v3 features.

Key Findings and Results

The study revealed several critical insights:

  • Density Metric Flaws: The popular "Density" metric was found to converge to 1 as sample sizes increase, making it an unreliable benchmark for large-scale evaluations.
  • Decoupling Diversity: The experiments confirmed that mode dropping and mode shrinkage are distinct phenomena. For instance, using Classifier-Free Guidance (CFG) improved image quality but caused significant mode shrinkage, which was uniquely captured by Recall Entropy (RE).
  • Human Alignment: PCE showed a high correlation ($\\ge 0.78$) with human judgment of realism on ImageNet, matching or exceeding the performance of FID while offering better diagnostic granularity.
  • Model Auditing: The additive nature of these metrics allows for sample-level analysis, enabling researchers to identify specific "unrealistic" images contributing to a high PCE score.

Discussion and Future Work

While the proposed metrics offer a powerful diagnostic tool, they are dependent on the quality of the underlying semantic embedding space (e.g., DINOv2). Future research will explore extending this framework to non-image domains such as graphs, trees, and scientific simulations where distance metrics are less defined. Additionally, the sample-level PCE could be integrated into inference pipelines to automatically filter low-fidelity outputs.

Summary updated

BibTeX
@inproceedings{fox2025unifying,
  author = {Alexis Fox and Samarth Swarup and Abhijin Adiga},
  title = {{A Unifying Information-theoretic Perspective on Evaluating Generative Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i16.33827},
}
Figure