Diffusion models have revolutionized generative AI, producing stunning, high-fidelity images and videos. However, they suffer from a notorious "speed limit": generating a single image typically requires dozens, if not hundreds, of iterative denoising steps. While researchers have attempted to "distill" these slow, multi-step teachers into fast, one-step "student" models, the resulting outputs often suffer from blurred details or a severe lack of diversity.
A recent paper introduces EM Distillation (EMD), a novel framework that leverages the classic Expectation-Maximization (EM) algorithm to create high-fidelity, one-step generators. Rather than merely mimicking a single path of the teacher, EMD is designed to capture the full breadth of the original data distribution.
The Challenge: Speed vs. Quality
The core challenge in diffusion distillation is navigating the trade-off between generation speed and image quality. Existing distillation methods generally fall into two camps, both with notable limitations:
- Trajectory Distillation: These methods attempt to map the multi-step ODE/SDE generation path into fewer steps. While effective for reducing steps to the 4–8 range, they often fail to produce high-quality results when pushed to a single step.
- Distribution Matching: Methods like Score Distillation Sampling (SDS) or Variational Score Distillation (VSD) try to make the student's output distribution match the teacher's. However, many current methods minimize the reverse KL divergence, which is inherently "mode-seeking." In practice, this causes mode collapse: the model might become exceptionally good at generating one specific type of "perfect" image (e.g., a specific cat) but completely forget the diverse variations present in the training data.
EMD addresses this by aiming for a mode-covering objective based on Maximum Likelihood Estimation (MLE), ensuring the student learns the entire diversity of the teacher's distribution.
The EMD Approach: Expectation-Maximization
The authors frame distillation as a latent-variable learning problem. The student is a one-step generator $g_\theta(z)$ that maps noise $z$ directly to data $x$. To train this generator, they employ an Expectation-Maximization approach:
- The E-Step (Sampling and Correction): Instead of trying to sample directly from the slow teacher model, EMD uses Markov Chain Monte Carlo (MCMC). It starts with a sample generated by the fast student model and then runs a few steps of Langevin dynamics to "correct" or nudge this sample toward the teacher's true data distribution.
- The M-Step (Optimization): The student model's parameters are then updated to maximize the likelihood of these newly "corrected" samples.
To stabilize this process in practice, the researchers introduced two critical innovations:
- Reparametrized Sampling: MCMC is performed in the noise space $(\epsilon, z)$ rather than the image space. This makes the optimization significantly more stable across different noise levels and simplifies hyperparameter tuning.
- Noise Cancellation: Langevin dynamics naturally injects noise at every step. The authors discovered that "canceling" this accumulated noise prior to the M-step update drastically reduces gradient variance, yielding much cleaner training signals.
Key Insights
- Bridging the Gap: The paper proves a fascinating theoretical connection: existing methods like Diff-Instruct and VSD are actually special, 1-step cases of EMD. By adding more MCMC steps, EMD smoothly transitions from a "mode-seeking" objective to a "mode-covering" one.
- MCMC as a "Corrector": The E-step acts as a refiner. It takes the student's best initial guess and uses the teacher's embedded knowledge to pull it closer to the true data manifold.
- The Power of MLE: By targeting Maximum Likelihood, EMD inherently values diversity, which is reflected in higher "Recall" scores that measure how much of the original distribution the model successfully covers.
State-of-the-Art Results
EMD was evaluated on standard benchmarks including ImageNet (64×64 and 128×128) for class-conditional generation, and MSCOCO for zero-shot text-to-image generation (using Stable Diffusion v1.5 as the teacher).
The framework achieves impressive quantitative and qualitative results:
- SOTA on ImageNet: On ImageNet-64, EMD achieved an FID score of 2.20 for one-step generation, comfortably outperforming previous leaders like DMD (2.62) and Diff-Instruct (5.57).
- Text-to-Image: When distilling Stable Diffusion v1.5, the EMD-8 variant achieved an FID of 9.66 on MSCOCO. It compares favorably against other high-end distillation methods while maintaining superior visual diversity.
- Visual Quality: Qualitative results demonstrate that EMD-corrected images are sharper and exhibit fewer artifacts than those produced by the base student model before the MCMC correction.
Limitations and Future Directions
Despite its success in setting new benchmarks, EMD has a few hurdles to overcome. Currently, the student model must be initialized with the teacher's weights to perform well; training a one-step generator entirely from scratch using this method remains difficult. Additionally, the model is sensitive to the choice of the fixed timestep used to repurpose the diffusion denoiser as a generator. Finally, while the resulting model is a lightning-fast one-step generator, the training process itself is computationally heavier than some alternatives due to the multiple MCMC steps required per iteration.
Future work will likely focus on enabling "from-scratch" training and further optimizing the balance between training cost and final model performance.
Summary updated