Effectively Unbiased FID and Inception Score and where to find them

Min Jin Chong, David A. Forsyth · DOI

Introduction

Evaluating generative models like Generative Adversarial Networks (GANs) relies heavily on metrics such as Fréchet Inception Distance (FID) and Inception Score (IS). However, these metrics suffer from a fundamental mathematical flaw: they are biased estimators. The scores calculated from a finite set of samples do not represent the "true" performance of the model but rather the true score plus a bias term that varies with the number of samples ($N$).

The Problem: Generator-Dependent Bias

The critical insight provided by Chong and Forsyth is that this bias is not a constant offset. Instead, it is "generator-dependent," meaning the magnitude of the bias changes depending on the specific model being evaluated. This inconsistency makes standard comparisons between different architectures fundamentally unreliable. If Model A appears superior to Model B at 50,000 samples, it may simply be due to a smaller bias term rather than superior image quality.

Methodology: Achieving Effectively Unbiased Metrics

To address this, the authors propose two primary interventions:

1. Linear Extrapolation to $FID_\infty$

The researchers observed a consistent linear relationship between the calculated FID/IS and the inverse of the sample size ($1/N$). By computing the metric at multiple sample sizes and fitting a linear regression, one can extrapolate the value to the point where $1/N = 0$, representing an infinite sample size. This extrapolated value, denoted as $FID_\infty$ or $IS_\infty$, provides an effectively unbiased estimate of model performance.

FID shows a clear linear relationship with 1/n across various generative architectures, including DCGAN, ProGAN, StyleGAN, and BigGAN.

2. Quasi-Monte Carlo (QMC) Integration

Standard random sampling (Monte Carlo) often leads to "clustering" of points, leaving parts of the latent space under-sampled. The authors suggest using Sobol sequences, a type of low-discrepancy sequence that covers the sample space more uniformly. Mapping these sequences to the required normal distribution via the Inverse Cumulative Distribution Function ($Sobol_{Inv}$) significantly reduces the variance and bias of the estimates compared to traditional methods.

Key Results and Impact

The practical implications of these findings are significant for the research community.

Reliable Model Rankings

The study demonstrates that fixed-sample comparisons can lead to incorrect conclusions. For instance, two identical DCGAN architectures might swap their relative rankings depending on the number of samples used for evaluation. By using $FID_\infty$, these ambiguities are resolved, ensuring that model improvements are genuine rather than artifacts of sampling bias.

Comparison of two DCGAN models showing how their relative FID rankings can swap as the number of samples (1/n) changes, highlighting the necessity of extrapolation.

Training Benefits

Beyond evaluation, incorporating Sobol sequences during the training phase of GANs proved beneficial. QMC ensures that the "tails" of the distribution—rare or complex image features—are better represented during learning. This resulted in models with lower $FID_\infty$ scores and reduced variance across different training runs.

Conclusion

The introduction of $FID_\infty$ and $IS_\infty$ offers a robust, drop-in replacement for current evaluation practices. By accounting for generator-dependent bias through linear extrapolation and improving sampling efficiency with Quasi-Monte Carlo methods, researchers can achieve fairer and more stable comparisons of generative models.

Summary updated

BibTeX
@inproceedings{chong2019effectively,
  author = {Min Jin Chong and David A. Forsyth},
  title = {{Effectively Unbiased FID and Inception Score and where to find them}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr42600.2020.00611},
}
Figure