Simple Distillation for One-Step Diffusion Models

Huaisheng Zhu, Teng Xiao, Shijie Zhou, Zhimeng Guo, Hangfan Zhang, Siyuan Xu, Vasant G HonavarNeurIPS 2025

Introduction

The authors introduce Contrastive Energy Distillation (CED), a streamlined method to turn slow, multi-step diffusion models into lightning-fast, one-step generators. By framing distillation as a Noise Contrastive Estimation (NCE) problem within an Energy-Based Model (EBM) framework, CED achieves state-of-the-art performance while using up to 66% less GPU memory than existing "score-based" distillation baselines.

What Problem Does This Paper Address?

Diffusion models (like Stable Diffusion or DALL-E) produce stunning images but are notoriously slow because they require dozens or hundreds of iterative denoising steps. To make them practical for real-time applications, researchers use distillation to "compress" these steps into a single-step generator.

Current distillation methods generally fall into two camps:

  1. Trajectory-based: Simple and lightweight but often suffer from significant quality loss.
  2. Score-based (e.g., DMD, SiD): High quality, but they require training and loading multiple auxiliary models (like "fake score models" or discriminators) simultaneously. This leads to massive GPU memory consumption and complex, unstable iterative training loops.
Comparison of memory requirements between different distillation methods. CED requires only 1x memory by eliminating the need for auxiliary models during the main training loop.

The authors ask: Can we get the high quality of score-based methods without the heavy computational baggage?

Methods

The core of the paper is Contrastive Energy Distillation (CED). Instead of training a separate discriminator or an auxiliary score model, the authors propose a joint Energy-Based Model (EBM).

  • The Energy Function: They define an energy function $E(x, G_\theta(z))$ that measures the discrepancy between an image $x$ and the output of the one-step generator $G_\theta(z)$.
  • Contrastive Learning: They use Noise Contrastive Estimation (NCE) to train the generator. In this setup, "positive" samples are high-quality images generated by a pre-trained teacher model, and "negative" samples are images from the current (or a previous) version of the student generator.
  • The Objective: The generator is trained to minimize a binary classification loss—essentially learning to make its own outputs indistinguishable from the teacher's outputs by minimizing the "energy" of the teacher's samples.
  • Unified Pipeline: Unlike previous methods that alternate between updating a generator and a discriminator, CED uses a "warm-up" phase followed by a direct optimization of the generator parameters $\theta$.

Key Insights and Ideas

  • Implicit KL Divergence: The authors mathematically demonstrate that their NCE-based objective implicitly optimizes the Kullback–Leibler (KL) divergence between the teacher and student distributions. This provides a solid theoretical foundation for why a simple contrastive loss works as well as more complex distribution-matching techniques.
  • Memory is the Bottleneck: Most high-end distillation methods require loading three models into GPU memory: the teacher, the student, and an auxiliary "fake" score model. CED eliminates the need for the auxiliary model and the teacher during the main training loop (by pre-sampling teacher data), reducing memory usage to 1x compared to the 3x required by methods like DMD.
  • Distance Metrics Matter: Through ablation studies, the authors found that using LPIPS-Huber distance as the energy function outperformed standard L2 or L1 losses. LPIPS captures perceptual similarity, while the Huber component provides robustness against outliers.

Key Results

The researchers evaluated CED on two standard benchmarks for generative modeling: CIFAR-10 (32x32) for unconditional generation and ImageNet (64x64) for conditional generation, using high-performing EDM variants as teachers.

Performance metrics (FID, IS, Precision, Recall) of CED across training steps on CIFAR-10 and ImageNet, demonstrating rapid convergence.
  • Efficiency: CED achieves a competitive FID (Frechet Inception Distance) of 2.96 on CIFAR-10 in just 100,000 training steps. For context, Consistency Distillation (CD) requires 800,000 steps to reach a similar quality.
  • Quality: On ImageNet 64x64, CED achieved an FID of 4.06, outperforming many trajectory-based methods and matching the quality of much heavier score-based models.
  • Resource Savings: Because CED avoids iterative updates of auxiliary components, it offers a 66% reduction in memory usage compared to DMD/SiD, making it much more accessible for researchers with limited GPU resources.

Limitations and Future Work

  • Domain Scope: The current study focuses strictly on image generation at relatively low resolutions (up to 64x64). The authors acknowledge that they haven't yet tested this on high-resolution text-to-image tasks (like Stable Diffusion XL).
  • Modalities: The work is limited to images. Future research could explore whether this contrastive energy approach translates to other domains like 3D reconstruction, audio synthesis, or video generation.
  • Teacher Dependence: Like all distillation methods, the student's performance is ultimately capped by the quality of the teacher model's samples.

Summary updated

BibTeX
@inproceedings{zhu2025simple,
  author = {Huaisheng Zhu and Teng Xiao and Shijie Zhou and Zhimeng Guo and Hangfan Zhang and Siyuan Xu and Vasant G Honavar},
  title = {{Simple Distillation for One-Step Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NHw8muIAcL},
}
Figure