DDIL: Diversity Enhancing Diffusion Distillation With Imitation Learning

Risheek Garrepalli, Shweta Mahajan, Munawar Hayat, Fatih Porikli

TL;DR

This paper introduces DDIL (Diffusion Distillation with Imitation Learning), a framework that treats diffusion model distillation as a sequential imitation learning problem to combat "covariate shift." By training student models on a strategic mix of both forward data distributions and student-generated backward trajectories, DDIL simultaneously enhances image quality and generation diversity. It consistently upgrades existing distillation baselines (like LCM, DMD2, and Progressive Distillation) while remaining exceptionally compute-efficient.

What Problem Does This Paper Address?

Diffusion models generate incredible images but are notoriously slow because they require dozens of iterative denoising steps. To make them practical, researchers use distillation to compress these models into few-step generators (e.g., 1 to 4 steps).

However, multi-step student models face a fundamental challenge known as covariate shift. During standard training, the student only sees clean data with added noise (the forward process). But at inference time, the student generates its own trajectory step-by-step (the backward process). If the student makes a minor error in an early step, that error compounds in subsequent steps, pushing the model into "out-of-domain" states it never saw during training.

Existing fixes either focus purely on matching the teacher's trajectory (which suffers from discretization errors) or matching final distributions using adversarial objectives (which are often mode-seeking and cause a massive loss in image diversity).

Methods

The authors reframe the reverse denoising process as a finite-horizon Markov Decision Process (MDP), allowing them to apply techniques from imitation learning. Specifically, they adapt the classic DAgger (Dataset Aggregation) algorithm to diffusion distillation.

Instead of training purely on forward-diffused data, DDIL dynamically aggregates a training dataset by sampling intermediate noisy latents from three distinct sources:

  1. Forward Diffusion ($\beta_{frwd}$): Standard noise added to real data, which preserves the marginal data distribution and ensures generation diversity.
  2. Student Backward Trajectories ($\beta_{student\_bckwrd}$): Unrolled latents generated by the student model itself. Querying the teacher for corrective feedback on these states directly fixes the covariate shift.
  3. Teacher Backward Trajectories ($\beta_{teacher\_bckwrd}$): Unrolled latents from the teacher, serving as a helpful proxy for data distribution in data-free settings.
Framework comparison showing how DDIL incorporates teacher feedback on the student's backward trajectory to correct covariate shift.

Additionally, the authors incorporate Reflected Diffusion Distillation. They apply static thresholding to the score estimates of both teacher and student models. This bounds the data support, drastically stabilizing the training process and allowing the framework to succeed even with very small batch sizes.

Datasets

The authors evaluated their approach zero-shot on two standard text-to-image benchmarks:

  • MS-COCO 2014 (30K captions validation set): Used to compute Density-Coverage and Precision-Recall metrics via a robust DINOv2 feature space.
  • MS-COCO 2017 (5K captions validation set): Used to evaluate image-text alignment via CLIP scores and perceptual quality via FID.

The framework was integrated and tested on top of popular base models, including SDv1.5 and SSD1B.

Key Insights and Ideas

  • The Quality vs. Diversity Trade-off is Fixable: Traditional distribution-matching distillation methods (like DMD2) yield high-quality images but suffer from severe mode collapse. DDIL proves that by explicitly mixing forward data distributions with backward student trajectories, you can maintain high fidelity without sacrificing the variety of generated images.
  • DAgger is a Natural Fit for Denoising: Because iterative denoising acts as a feedback loop, the student's current prediction determines its next input. DAgger's core strength—collecting data on the learner's actions and asking an expert for corrections—directly addresses this exact failure mode.
  • Small-Batch Stability via Thresholding: Distillation methods like DMD2 typically require massive batch sizes (e.g., 128) across dozens of GPUs to remain stable. By introducing reflected diffusion thresholding, DDIL achieves stable, monotonic performance improvements with a batch size of just 7.

Key Results

The authors integrated DDIL into three major distillation paradigms—Progressive Distillation (PD), Latent Consistency Models (LCM), and Distribution Matching Distillation (DMD2)—and found consistent improvements across the board.

FID vs. Coverage plot showing that DDIL consistently improves both sample quality and diversity across different distillation approaches.
  • DMD2 + DDIL (on SSD1B): Achieved a 12.7% improvement in FID (dropping from 31.77 to 27.72) and a massive 19.38% boost in Coverage (diversity) over the baseline DMD2 model.
  • LCM + DDIL (on SDv1.5): Improved 4-step FID from 24.39 to 22.86, while boosting coverage by 3.74%.
  • Computational Efficiency: While state-of-the-art methods like InstaFlow require up to 183 A100 GPU-days, LCM+DDIL achieved strong performance in just 8,000 gradient steps. PD+DDIL reduced the compute footprint to 15 A100 GPU-days.

Qualitatively, the images generated via DDIL exhibit much higher structural coherence (e.g., correctly rendering complex shapes like space stations or animal anatomy) compared to baseline distilled models.

Qualitative comparison showing more coherent image structures with DDIL compared to baseline DMD2.

Limitations and Future Work

Despite the notable improvements, the authors point out that few-step distilled models still face an uphill battle. Even with DDIL, the coverage and recall metrics on the SSD1B model still lag behind the original, uncompressed teacher model, indicating that discretization errors still take a toll on diversity.

Additionally, when integrating DDIL with DMD2, the authors used teacher unrolling as a proxy for the data distribution rather than incorporating real forward-diffused data directly. They note that exploring real data integration within the DMD2 framework remains an open avenue for achieving a tighter Evidence Lower Bound (ELBO) and potentially even better results.

Summary updated

BibTeX
@misc{garrepalli2024ddil,
  author = {Risheek Garrepalli and Shweta Mahajan and Munawar Hayat and Fatih Porikli},
  title = {{DDIL: Diversity Enhancing Diffusion Distillation With Imitation Learning}},
  year = {2024},
  eprint = {2410.11971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11971},
}
Figure