TL;DR
Common metrics for evaluating generative models, like FID and Inception Score (IS), are biased in a way that depends on the specific model being tested. This means comparing two models at a fixed sample size can lead to incorrect rankings. The authors propose a simple fix: use Quasi-Monte Carlo sampling and linear extrapolation to estimate the "infinite sample" score ($\overline{\textrm{FID}}_\infty$ and $\overline{\textrm{IS}}_\infty$), providing a truly fair and unbiased benchmark.
What Problem Does This Paper Address?
In the world of Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs), researchers rely on the Fréchet Inception Distance (FID) and Inception Score (IS) to tell them which model is "better." However, these metrics are calculated using a finite number of samples ($N$).
The authors demonstrate that these estimators are biased: the expected value of the score at $N$ samples is not the true value. Critically, this bias isn't a constant offset; it depends on the generator itself. As a result, Model A might appear better than Model B simply because its bias term is smaller at a specific $N$, even if Model B is actually superior. This makes current leaderboards and comparisons fundamentally unreliable.
Methods
The researchers propose a two-pronged approach to solve the bias problem:
- Quasi-Monte Carlo (QMC) Integration: Instead of standard random sampling (Monte Carlo), they use Sobol sequences. These are "low-discrepancy" sequences that cover the sample space more evenly, avoiding the clusters and gaps typical of random noise. They explore two ways to transform these uniform sequences into the normal distributions generators expect: the Box-Muller transform ($Sobol_{BM}$) and the Inverse Cumulative Distribution Function ($Sobol_{Inv}$).
- Extrapolation to Infinity: The paper proves that FID and IS have a linear relationship with $1/N$ (where $N$ is the number of samples). By calculating the score at several different sample sizes and fitting a linear regression, they can extrapolate to the y-intercept where $1/N = 0$. This intercept represents the score for an infinite number of samples ($\overline{\textrm{FID}}_\infty$ and $\overline{\textrm{IS}}_\infty$), which is effectively unbiased.
Datasets
The authors validated their methods across several popular generative models and datasets:
- DCGAN trained on CelebA (64x64 and 128x128).
- ProGAN and StyleGAN using pretrained models on CelebA and FFHQ (1024x1024).
- BigGAN trained on ImageNet (128x128) and CIFAR-10.
- A vanilla VAE trained on CelebA.
Key Insights and Ideas
- The Ranking Flip: The most striking insight is that model rankings are not stable. Figure 3 illustrates two identical DCGAN architectures where Model 1 is "better" at one sample size, but Model 2 is "better" at another. This proves that fixing $N$ (e.g., always using FID-50k) does not guarantee a fair comparison.
- Linearity is King: The relationship between the evaluation metrics and $1/N$ is remarkably linear. This makes the extrapolation method robust and easy to implement as a "drop-in" replacement for existing evaluation pipelines.
- Variance Reduction: Using QMC (specifically $Sobol_{Inv}$) consistently yields lower variance in the estimates compared to standard random sampling. This leads to more stable training and more accurate evaluation.
Key Results
- Unbiased Comparison: The extrapolated $\overline{\textrm{FID}}_\infty$ and $\overline{\textrm{IS}}_\infty$ scores are consistent regardless of the sampling method used, confirming they successfully remove the bias.
- Superior Sampling: $Sobol_{Inv}$ was found to be the best integrator, providing the lowest variance and most accurate predictions for the infinite-sample score.
- Training Benefits: Training GANs using Sobol sequences instead of random noise resulted in lower $\overline{\textrm{FID}}_\infty$ scores and significantly reduced variance between different training runs, effectively making GAN training more predictable and higher quality for "free."
Limitations and Future Work
- Dimensionality: While QMC works well, the authors note that "dimension effects" (the curse of dimensionality) can sometimes mitigate the improvements in very high-dimensional latent spaces.
- Advanced QMC: The study focused on Sobol sequences. The authors suggest that other advanced techniques like randomized lattice rules or higher-order scrambled digital nets might offer even better results.
- Human Correlation: While these scores are mathematically unbiased, future work is needed to see how well $\overline{\textrm{FID}}_\infty$ correlates with human-centric metrics like HYPE.
The authors have provided their code at https://github.com/mchong6/FID_IS_infinity, encouraging the community to adopt these more reliable benchmarks.
Summary updated