TL;DR
This paper introduces the Skew Inception Distance (SID), a new metric for evaluating GAN-generated images that extends the popular Fréchet Inception Distance (FID) by incorporating third-order moments (skewness) of image features. SID shows promise in better aligning with human perception, especially for subtly distorted images, and the authors demonstrate that dimensionality reduction techniques like PCA can make SID computationally feasible.
What Problem Does This Paper Address?
Evaluating the quality of images generated by Generative Adversarial Networks (GANs) is crucial for their development and deployment. The current standard, Fréchet Inception Distance (FID), relies on the assumption that image features extracted by a network (like Inception-v3) follow a Gaussian distribution. This assumption is often violated in practice, as these features can exhibit skewness. FID, by only considering the first two moments (mean and covariance), might miss important distributional characteristics that affect perceived image quality. This paper addresses this limitation by proposing a new metric that accounts for skewness, aiming for a more robust and perceptually aligned evaluation of GANs.
Methods
The core contribution is the Skew Inception Distance (SID). SID builds upon FID by adding a term that captures the coskewness tensor of the image features.
- FID Recap: FID calculates the distance between the means and covariance matrices of real and generated image features.
- SID Extension: SID introduces a third term to account for the skewness of the feature distributions. This is achieved by computing the coskewness tensor (a third-order moment) and incorporating its difference between real and generated data.
- Dimensionality Reduction: To handle the computational burden of high-dimensional coskewness tensors (2048x2048x2048 for Inception-v3 features), the authors employ Principal Component Analysis (PCA). They show that PCA can significantly reduce dimensionality (e.g., to 256 dimensions) without substantially impacting classification performance on ImageNet, making SID computationally tractable.
- Normalization: A specific normalization strategy is proposed to ensure comparable scales between the mean, covariance, and skewness terms in SID, especially after dimensionality reduction.
Datasets
The paper primarily uses the ImageNet dataset for evaluating GANs and the proposed SID metric. They also mention experiments on other datasets like CelebA, FFHQ, and SVHN, as well as data generated by diffusion models trained on datasets such as Stanford Cars, CelebA, AFHQ, and Flowers.
Key Insights and Ideas
- Skewness Matters: Image features extracted by networks like Inception-v3 are not strictly Gaussian and exhibit significant skewness. Ignoring this third moment can lead to incomplete evaluations.
- SID Captures Perceptual Nuances: In experiments with subtle image distortions (like low-level Gaussian noise), SID appears to align better with human perception than FID, staying low until the distortion becomes noticeable.
- PCA is a Viable Preprocessing Step: Dimensionality reduction via PCA is effective for making SID computationally feasible without losing critical information, as demonstrated by its minimal impact on classification accuracy.
- Computational Feasibility Achieved: By combining PCA with GPU acceleration, the authors show that SID can be computed efficiently, overcoming the initial memory and computational challenges associated with high-order tensors.
Key Results
- SID vs. FID on Distortions: In experiments with added Gaussian noise, SID showed a more perceptually aligned response than FID, remaining low for imperceptible noise levels while FID increased linearly.
- PCA Effectiveness: Reducing Inception-v3 features from 2048 to 256 dimensions via PCA resulted in only a minor drop (up to 10%) in classification accuracy on ImageNet.
- Computational Speedup: Dimensionality reduction significantly reduces computation time and memory usage for skewness calculation. For example, reducing dimensionality to 256 dimensions brought GPU time down to 0.02s from an unstated baseline for 2048 dimensions.
- Robustness: SID was shown to be relatively robust to the choice of feature extraction model (Inception-v3, ResNet-18, ResNet-50, ResNeXt-101) and dataset.
Limitations and Future Work
- Computational Complexity: While PCA and GPU acceleration make SID feasible, its inherent complexity is still higher than FID, especially for very high dimensions.
- Pseudometric Nature: SID is proven to be a pseudometric, not a strict metric, meaning it might return zero for distributions that are not identical if their first three moments match. This is particularly relevant for non-Gaussian distributions.
- Human Studies: The authors acknowledge that their claims about aligning with human perception would ideally be substantiated by extensive human studies.
- Exploring Other Formulations: The paper suggests exploring alternative formulations for the skew term, potentially using different skewness measures (e.g., Mardia or Kollo skewness).
- Other Dimensionality Reduction Methods: Investigating random, isotropic Gaussian projections as an alternative to PCA for dimensionality reduction is proposed.
- Broader Applications: The authors suggest that SID's principles could be applied beyond GAN evaluation, such as in few-shot learning and out-of-distribution detection.
- Bias in Training Data: The impact of biases in training data on SID has not yet been explored.
Summary updated