Representation Fréchet Loss for Visual Generation

Jiawei Yang, Zhengyang Geng, Xuan Ju, Yonglong Tian, Yue Wang

TL;DR

For nearly a decade, Fréchet Inception Distance (FID) has been the gold standard for evaluating image generation, but it was considered too computationally expensive to use as a direct training loss. This paper introduces FD-loss, a simple yet powerful method that decouples the large sample population needed to estimate distribution statistics from the mini-batch size used for gradient descent. By optimizing FD directly across multiple modern feature spaces, the authors consistently boost image quality and can even turn slow, multi-step diffusion models into high-quality, one-step generators without needing adversarial training or teacher distillation.

What Problem Does This Paper Address?

Generative models are typically trained using sample-wise losses (like mean squared error in diffusion or adversarial losses in GANs), but they are evaluated using distribution-level metrics like FID. Why not train on FID directly?

The catch is statistical scale. Calculating a stable Fréchet Distance requires a massive population of samples (usually around 50,000) to accurately estimate the mean and covariance matrices of the generated data. Backpropagating gradients through 50,000 samples at every training step is completely impossible due to GPU memory constraints. While previous attempts tried using small-batch estimates of FD, these estimates are highly unstable and actually degrade model performance. Consequently, the community has been forced to optimize for FID indirectly for years.

Methods

The core innovation is FD-loss, which decouples the population size ($N$) needed for reliable FD estimation from the batch size ($B$) used for gradient computation. The authors propose two elegant ways to implement this:

  1. Queue-based estimator: The training pipeline maintains an online queue of features from recently generated images (e.g., $N = 50,000$). The FD is computed over the entire queue, but gradients are only backpropagated through the current mini-batch ($B \approx 1024$), treating past queued features as constants.
  2. EMA-based estimator: Instead of a queue, the model tracks the exponential moving average (EMA) of the first and second moments (mean and covariance) of the features over time. Gradients are again restricted to the current batch. This approach requires virtually no extra memory and naturally upweights recent samples.
The FD-loss framework decouples population size $N$ from batch size $B$.

Furthermore, the authors introduce Multi-representation FD-loss. Because any single feature space has blind spots, they combine FD computed across different frozen feature extractors (e.g., Inception-v3, SigLIP2, MAE) by normalizing each loss term to a unit scale to prevent any single feature space from dominating the gradients.

Datasets

  • ImageNet-1k: Used at $256 \times 256$ and $512 \times 512$ resolutions for class-conditional image generation experiments.
  • BLIP3o-Pretrain-Long-3M & BLIP3o-GPT4o-60k: Used as reference text-image datasets to evaluate text-conditioned generation using Stable Diffusion 3.5 Medium.

Key Insights and Ideas

  • The Metric Paradox: The paper highlights a glaring issue in generative modeling: state-of-the-art models now achieve FID scores lower than real validation images, yet humans can easily tell the generated images are fake. This indicates that standard Inception-based FID has saturated.
  • FID can misrank visual quality: Optimizing purely for Inception FID yields the lowest FID score but not the best-looking images. Conversely, optimizing modern Vision Transformer (ViT) representations (like DINOv2 or SigLIP2) drastically improves structural composition and object realism, even though it can actually worsen the traditional Inception FID score.
  • A New Multi-Representation Metric ($FDr^k$): To fix single-metric bias, the authors introduce $FDr^k$, which computes the ratio of a model's FD to the real validation set's FD across $K$ diverse feature spaces and averages them. As shown in Figure 3, while FID suggests ImageNet generation is "solved," $FDr^6$ reveals a significant remaining quality gap.
  • Zero-Distillation One-Step Repurposing: Remarkably, a multi-step generator (like a standard diffusion model) can be treated as a one-step generator and post-trained with FD-loss. It learns to output clean images in a single step without needing a teacher model to distill from, adversarial training, or per-sample targets.

Key Results

  • State-of-the-Art One-Step Generation: Post-training an existing one-step generator (pMF) with Inception FD-loss pushed its ImageNet $256 \times 256$ FID down to 0.72, outperforming all prior one-step systems.
  • Multi-step to One-step Conversion: Applying FD-loss to a multi-step model (JiT-L) operating in a naive 1-step mode dropped its FID from a broken 291.59 down to 0.85 using a multi-representation loss combination (FD-SIM).
  • Human Preference: In a pairwise study, humans consistently preferred images generated by models post-trained with FD-loss over their baseline counterparts.
Figure 1: One-step samples on ImageNet 256×256, before and after FD-loss post-training. Left: samples from the base generators. Right: samples after post-training with FD-loss. Top two rows: pMF-H [30], a one-step generator. Bottom: JiT-H [23], a multi-step generator. All models generate in a single network evaluation (1-NFE). FD-loss improves existing one-step models and can repurpose multi-step models into one-step generators. See uncurated samples in Appendix E.

Limitations and Future Work

  • Dependency on Feature Spaces: The performance and behavior of FD-loss are entirely bound to the choice of representation models and reference statistics. If the underlying feature space has blind spots, the generator can exploit them (reward hacking).
  • Artifacts in Repurposed Models: While converting multi-step models to one-step models works surprisingly well, the resulting models can still occasionally exhibit minor visual artifacts compared to true multi-step generation.
  • Future Directions: The authors suggest exploring broader data distributions, expanding to other modalities (like video or audio), higher-resolution settings, and developing adaptive or learned representation sets for distribution-level optimization.

Summary updated

BibTeX
@inproceedings{yang2026representation,
  author = {Jiawei Yang and Zhengyang Geng and Xuan Ju and Yonglong Tian and Yue Wang},
  title = {{Representation Fréchet Loss for Visual Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9OK87o8Wkf},
}
Figure