TREND: Truncated Generalized Normal Density Estimation of Inception Embeddings for GAN Evaluation

Junghyuk Lee, Jong-Seok LeeECCV 2022

Introduction

The evaluation of Generative Adversarial Networks (GANs) relies heavily on quantitative metrics that compare the distribution of generated images to real-world data. The Fréchet Inception Distance (FID) has emerged as the standard benchmark. FID operates by mapping images into a high-dimensional feature space using a pre-trained Inception-v3 network and then calculating the distance between the mean and covariance of these features.

However, FID is built upon a fundamental, yet flawed, assumption: that Inception features follow a Multivariate Normal (Gaussian) distribution. This assumption fails for two primary reasons. First, the use of ReLU activation functions in the Inception network results in "left-truncated" distributions, where negative values are hard-cut to zero. Second, empirical analysis reveals that these features are often leptokurtic, characterized by sharper peaks and heavier tails than a standard bell curve. These inaccuracies lead to biased evaluations, particularly when sample sizes are limited.

The TREND Methodology

To address these limitations, we introduce TREND (TRuncated gEneralized Normal Density estimation). TREND replaces the restrictive Gaussian model with a more flexible Truncated Generalized Normal (TGN) distribution.

Truncated Generalized Normal (TGN) Distribution

The TGN distribution incorporates a shape parameter ($\beta$) that allows it to model varying degrees of kurtosis, effectively capturing the "pointy" nature of Inception features. Crucially, it explicitly accounts for truncation at zero, aligning the statistical model with the architectural constraints of the feature extractor.

Dimension Independence and JSD

While FID considers the full covariance matrix of 2,048 dimensions—a process that is computationally expensive and requires large sample sizes for stability—TREND treats each dimension as independent. This univariate approach significantly reduces the number of parameters to be estimated. To compare the resulting distributions, TREND utilizes the Jensen-Shannon Divergence (JSD). Unlike the unbounded Fréchet distance, JSD provides a normalized score between 0 and 1, offering a more intuitive measure of distributional similarity.

Histograms of various Inception feature dimensions demonstrating non-normality and truncation.

Experimental Results

The effectiveness of TREND was validated across standard benchmarks including ImageNet, CIFAR10, CelebA, and FFHQ, evaluating models ranging from DCGAN to state-of-the-art Diffusion Models (ADM).

Improved Distributional Fit

TREND demonstrates a vastly superior fit to real image features. In terms of log-likelihood, TREND achieved an average score of 23,867 compared to -9,463 for the normal distribution. This discrepancy highlights the failure of the Gaussian assumption to capture the true underlying data structure.

Robustness to Sample Size

A significant drawback of FID is its sensitivity to the number of samples used for calculation. In experiments where sample sizes were reduced fifty-fold, FID scores exhibited extreme volatility. In contrast, TREND scores remained remarkably stable, providing a consistent metric regardless of the available data volume.

A representative histogram of an Inception feature dimension showing extreme leptokurtosis and truncation at zero.

Sensitivity and Model Ranking

TREND proves more sensitive to distributional artifacts that FID might overlook. It successfully ranks modern generative models in alignment with qualitative observations. For instance, it correctly identifies the performance gains of StyleGAN2 over its predecessors and accurately reflects the benefits of the "truncation trick" in BigGAN, where other metrics like the Inception Score (IS) often provide misleading results.

Conclusion

TREND offers a more theoretically sound and practically robust alternative to FID for GAN evaluation. By acknowledging the truncated and leptokurtic nature of Inception features, TREND provides a metric that is less biased by sample size and more reflective of true model performance. While it requires numerical optimization for parameter estimation, the resulting gains in accuracy and stability make it a valuable tool for the generative modeling community.

Summary updated

BibTeX
@inproceedings{lee2022trend,
  author = {Junghyuk Lee and Jong-Seok Lee},
  title = {{TREND: Truncated Generalized Normal Density Estimation of Inception Embeddings for GAN Evaluation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-20050-2\_6},
}
Figure