Introduction
Diffusion models have established themselves as the premier choice for high-fidelity image generation. However, their reliance on iterative denoising—often requiring dozens of steps—imposes a significant "speed tax" that hinders real-time applications. To address this, researchers from NVIDIA have introduced $f$-distill, a generalized framework that compresses slow, multi-step diffusion models into lightning-fast, one-step generators. By moving beyond standard "mode-seeking" objectives to a broader family of $f$-divergences, they achieved state-of-the-art image quality and diversity, making one-step generation virtually indistinguishable from high-quality iterative sampling.
The Challenge: The Diffusion "Speed Tax"
While diffusion models produce exceptional results, the computational cost of iterative sampling is high. Distillation methods aim to solve this by training a "student" model to mimic a pre-trained "teacher" model in a single step. Previous state-of-the-art methods typically rely on reverse Kullback–Leibler (KL) divergence to match distributions. However, reverse-KL is notoriously "mode-seeking," encouraging the student to focus on high-probability areas while ignoring the full diversity of the teacher's distribution. This often results in visual artifacts, collapsed details, and a lack of variety in generated outputs.
The $f$-distill Framework
The authors propose $f$-distill, a framework that allows for distribution matching using any divergence from the $f$-divergence family, including forward-KL, Jensen-Shannon (JS), and Hellinger distance.
The core technical innovation lies in the derivation of the $f$-divergence gradient. The update rule for the student model is defined as a product of the score difference and a novel weighting function:
$$\text{Gradient} \propto (\text{Teacher Score} - \text{Student Score}) \times \text{Weighting Function (h)}$$
In this formulation, the weighting function ($h$) is determined by the specific $f$-divergence chosen and the density ratio between the teacher and student. While reverse-KL uses a constant weighting ($h=1$), other divergences like Jensen-Shannon naturally downweight regions where the teacher’s score is unreliable (low-density areas). This leads to more stable training and better "mode-covering" capabilities.
Experimental Results
Quantitative Benchmarks
The $f$-distill framework was evaluated across standard benchmarks including CIFAR-10, ImageNet-64, and MS-COCO. On ImageNet-64, $f$-distill (using JS divergence) achieved a Fréchet Inception Distance (FID) of 1.16, setting a new state-of-the-art for one-step generation. For text-to-image tasks on MS-COCO, it achieved an FID of 7.42, outperforming previous leaders like DMD2 while maintaining a low latency of approximately 0.09s per image.
Qualitative Fidelity and Diversity
Qualitative results demonstrate that $f$-distill produces images with significantly richer textures and better prompt alignment than previous one-step methods. By utilizing the "Goldilocks" Jensen-Shannon divergence, the model balances the diversity of forward-KL with the stability of reverse-KL. This allows the student to capture fine details—such as fur textures or complex lighting—that were previously lost in one-step distillation.
Limitations and Future Work
Despite its success, the framework faces challenges with high Classifier-Free Guidance (CFG) values, which can lead to training instability. Additionally, the method's reliance on a GAN-style discriminator for density estimation means that early-stage inaccuracies in the discriminator can provide poor weighting signals. Future research will focus on stabilization techniques to enable even more diverse divergences on larger datasets.
Conclusion
$f$-distill represents a significant leap forward for efficient generative AI. By generalizing the distillation process to the $f$-divergence family, the researchers have effectively closed the quality gap between one-step and multi-step diffusion models, paving the way for high-quality, real-time interactive image generation.
Summary updated