Abstract
This work evaluates the robustness of quality measures of generative models such as Inception Score (IS) and Fréchet Inception Distance (FID). Analogous to the vulnerability of deep models against a variety of adversarial attacks, we show that such metrics can also be manipulated by additive pixel perturbations. Our experiments indicate that one can generate a distribution of images with very high scores but low perceptual quality. Conversely, one can optimize for small imperceptible perturbations that, when added to real world images, deteriorate their scores. Furthermore, we extend our evaluation to generative models themselves, including the state of the art network StyleGANv2. We show the vulnerability of both the generative model and the FID against additive perturbations in the latent space. Finally, we show that the FID can be robustified by directly replacing the Inception model by a robustly trained Inception. We validate the effectiveness of the robustified metric through extensive experiments, which show that it is more robust against manipulation.
Introduction
In generative modeling, quantifying model performance is essential. Due to the high cost of human evaluation, the research community relies on automated metrics like the Inception Score (IS) and Fréchet Inception Distance (FID). Both metrics utilize the InceptionV3 network to extract features and compare image distributions. However, deep classifiers are notoriously brittle. This research investigates whether the metrics built upon these classifiers inherit their vulnerabilities, potentially allowing generative models to "cheat" by producing perceptually poor images that the metrics rate highly.
Methodology
The study examines metric robustness through three primary approaches:
Adversarial Attacks on Metrics
Using Projected Gradient Descent (PGD), the authors find small perturbations ($\delta$) to manipulate scores in two ways:
- Deteriorating Scores: Adding imperceptible noise to real images to cause a massive spike in FID, making high-quality images appear "fake" to the metric.
- Inflating Scores: Optimizing random noise to achieve near-perfect FID or high IS, despite the images appearing as static to humans.
Latent Space Attacks
The attacks are extended to the latent space of StyleGANv2. By perturbing input vectors, the authors demonstrate that the model can be forced to produce images with significant artifacts that the FID metric paradoxically prefers over clean outputs.
Robustification (R-FID)
To address these vulnerabilities, the authors propose R-FID, which replaces the standard InceptionV3 with an adversarially trained version. This forces the network to focus on robust, semantic features rather than brittle high-frequency patterns.
Experimental Results
The experiments were conducted on CIFAR-10, ImageNet, and FFHQ datasets.
Metric Brittleness
The standard FID is remarkably sensitive. On ImageNet, a tiny perturbation ($\epsilon = 0.01$) can shift the FID from 0.00 to over 7,900. Conversely, random noise can be optimized to reach an FID of 1.05, making it statistically indistinguishable from real photos according to the metric.
Effectiveness of R-FID
R-FID demonstrates significantly higher stability. Under the same $\epsilon = 0.01$ attack that sent standard FID to 7,900, R-FID only moved to 4.5. Furthermore, R-FID is better at distinguishing real from fake images in state-of-the-art models like StyleGANv2, providing more realistic (higher) scores where standard FID is overly optimistic.
Conclusion
This work highlights the critical vulnerabilities of standard GAN evaluation metrics. By introducing R-FID, the authors provide a more reliable alternative that aligns more closely with human perception. While R-FID is a significant improvement, the quest for a perfect metric for visual quality remains an ongoing challenge in the field.
Summary updated