arXiv(opens in a new tab)stat.MLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24881

What FID Hides: Detecting, Ranking, and Diagnosing Deviations in Generative Evaluation

Hao Chen

Abstract

Generative models are commonly ranked by Fréchet Inception Distance (FID) and Kernel Inception Distance (KID), yet FID's first-two-moment summary can miss distributional differences, and a reported scalar gap alone is not a calibrated test against sampling variation. FID's moment restriction has concrete consequences: on ImageNet, visually unrecognizable images optimized only to match the reference Inception mean and covariance obtain FID 24.7 versus 58.6 for held-out real images (lower is better). Moreover, FID and KID are scalar discrepancies that are unchanged when the two samples are exchanged and therefore do not encode the direction of a dispersion change: under-dispersion, as can occur in mode collapse, versus over-dispersion. We introduce ZID (Z-resolved Integrated Diagnostic), which combines six standardized location- and dispersion-sensitive arms from a rank graph (RISE) and Gaussian kernels (GPK at two bandwidths). Rather than asking one scalar to serve incompatible roles, ZID reports three linked outputs: an index for ranking departure magnitude, a permutation p-value for testing distributional equality, and a signed dispersion readout for diagnosis. In controlled experiments, ZID detects a broad range of departures, and its score tracks increasing severity along the corresponding sweeps, including cases in which FID is flat or reversed. On DiT-XL/2 and SiT-XL/2 guidance sweeps, ZID detects departure from real data, and its signed readout labels the high-guidance diversity collapse as under-dispersion.

1 Introduction

Generative models are increasingly used across science and industry, making model-selection metrics consequential: a misleading ranking can favor a worse model. Two widely used embedding-based scalar summaries are FID and KID. FID (Heusel et al., 2017) fits a Gaussian to each set of embedded samples and reports their Fréchet distance; KID (Bíńkowski et al., 2018) reports the maximum mean discrepancy associated with a degree-3 polynomial kernel on the same embeddings. Both are commonly used to rank models.

Because FID depends only on the first two moments of the embedding distribution, optimizing a noise-initialized batch of 64×6464 \times 64 images to match the Inception feature mean and covariance of an ImageNet reference (Deng et al., 2009; Russakovsky et al., 2015) yields visual noise to which FID assigns a lower, nominally better value than to held-out real images: 24.7 versus the 58.6 finite-sample real–real baseline (Inception-2048, n=512; Fig. 1 and Sec. 6), demonstrating FID’s matched-moment blind spot. By contrast, the ZID score is much larger for the optimized image set than for held-out real images (Fig. 1).

The same failure appears directly in feature space. At full-dimensional Inception-2048 (m=n=2500, with full-rank sample covariances), FID is 19.5 for real versus held-out real features but 0.003 for real versus a moment-restored bimodal batch; the corresponding KID estimates are 9.5×10−59.5 \times 10^{-5} and −3.2×10−4-3.2 \times 10^{-4},

Figure

Figure

Figure 1: Pixel-space matched-moment optimization reverses the FID ranking. The montages show 256 images from each 512-image set; metrics use all 512. Left: held-out ImageNet images. Right: noise-initialized images optimized only to match the reference Inception mean and covariance. Despite being visual noise, the optimized set receives a lower (nominally better) FID (24.7 vs. 58.6). ZID gives it a larger departure score (17.2 vs. 0.86), and none of 499 random label permutations produces an equally large score; the held-out comparison has permutation p=.328p=.328. See Sec. 6.

respectively (App. A.1). Related Gaussian constructions reproduce the FID inversion after PCA reduction, on Tiny-ImageNet 1^{1}, and in DINO features (Caron et al., 2021) (App. A.1).

A second limitation appears when the departure has a direction. We sweep classifier-free guidance (CFG) (Ho and Salimans, 2022) in DiT-XL/2 (Peebles and Xie, 2023), a standard control of the fidelity–diversity tradeoff. Along this sweep, FID and KID are scalar discrepancies that are unchanged when the two samples are exchanged and therefore do not distinguish low-guidance off-manifold dispersion from high-guidance mode collapse. ZID additionally reports a separate signed dispersion readout, which identifies the transition from over- to under-dispersion (Fig. 7).

Finite-sample sensitivity provides an additional concern: at d=100d = 100 and n=100n = 100, KID power remains below .25 across pure-dispersion shrinkages from 5% to 25%, while FID reaches only .75 power for a 5% shrinkage even at n=1000n = 1000 (App. A.6).

ZID (Z-resolved Integrated Diagnostic) addresses these issues by combining complementary graph- and kernel-based statistics, calibrating their aggregated response by permutation, and retaining a signed dispersion contrast. The aggregated response provides an index of departure magnitude, and its permutation distribution yields an equality-test p-value. The signed contrast permits an under- or over-dispersion label when the direction is identifiable. Section 3 defines the statistics and their aggregation.

Contributions. We argue that generative-model evaluation should support model ranking and calibrated testing, remain sensitive to distinct forms of distributional departure, and provide directional diagnostics when the relevant effect is identifiable.

  1. Matched-moment analysis and calibrated detection. FID’s manipulability is known (Alfarra et al., 2022; Kynkäänniemi et al., 2023), and prior work has exhibited distinct distributions with matching first two moments and hence zero FID (Benny et al., 2021; Luzi et al., 2023; Jayasumana et al., 2024).

1^{1}Tiny-ImageNet is the 200-class dataset distributed by Stanford CS231n.

Proposition 1 states this non-identifiability for any reference distribution with nonzero covariance, and degree-3 KID is likewise zero for distributions matched through third order. We introduce ZID as a calibrated detector for these and other distributional departures. In a pixel-space stress test optimized to match the reference Inception mean and covariance, FID falls below the real–real baseline, while ZID assigns the resulting images a much larger score than held-out real images.

  1. Detection coverage and directional diagnosis. ZID combines rank-based, median-bandwidth, and fine-scale kernel evidence to cover departures that favor different sensitivities. Across controlled evaluations spanning location, dispersion, dependence, higher-order structure, multimodality, and off-manifold support, it provides the broadest overall detection coverage. Alongside the calibrated equality-test p-value, ZID reports separate location-sensitive and dispersion-sensitive component magnitudes and, when direction is identifiable, labels the departure as under- or over-dispersed.

  2. Ranking by severity within departure types. Across controlled sweeps of increasing severity, the ZID score provides consistent ordering across all examined departure types, including settings where FID is flat or reversed. On DiT-XL/2 and SiT-XL/2 (Ma et al., 2024), it also tracks departure across the practically relevant guidance range, while the signed dispersion readout identifies the associated collapse direction.

ZID is therefore intended as a broad-coverage diagnostic when the departure type is not known in advance and ranking, calibrated testing, and, when identifiable, dispersion-direction diagnosis are all required. Our experiments use both Inception and DINO embeddings and include five pretrained generator families: BigGAN (Brock et al., 2019), StyleGAN2-ADA (StyleGAN2: Karras et al., 2020b; ADA: Karras et al., 2020a), a CIFAR DDPM (Ho et al., 2020), DiT-XL/2, and SiT-XL/2.

The paper proceeds as follows. Section 2 reviews related metrics. Section 3 defines the ZID score, its outer-permutation equality test, and the signed readouts. Section 4 evaluates detection, ranking, construction choices, and robustness under controlled feature-space departures, with comparisons across datasets and feature representations. Section 5 studies pretrained generators, and Sec. 6 presents the pixel-space FID stress test. The appendices provide proofs, experimental protocols, expanded results, and per-class values.

References (54)