Imagine Flash: Accelerating Emu Diffusion Models with Backward Distillation

Jonas Kohler, Albert Pumarola, Edgar Schönfeld, Artsiom Sanakoyeu, Roshan Sumbaly, Peter Vajda, Ali K. ThabetarXiv 2024 · DOI

Introduction

Diffusion models have set the standard for high-fidelity image generation but typically require dozens of denoising steps, making them computationally expensive and slow for real-time applications. While distillation techniques aim to reduce these steps, they often face a significant quality gap when pushed to the extreme 1–3 step regime. Meta GenAI's Imagine Flash addresses this by introducing a novel distillation framework that achieves teacher-level performance in as few as three steps.

Bridging the Training-Inference Gap

The primary challenge in existing distillation methods is the discrepancy between training and inference. During training, models are often exposed to ground-truth noise, whereas at inference, they must operate on their own (potentially erroneous) previous predictions. This "information leakage" prevents the model from learning how to self-correct.

Imagine Flash solves this through Backward Distillation. Instead of starting from ground-truth noised images, the student model is run for several steps starting from pure noise. The resulting student-generated latent is then used as the starting point for distillation. This forces the model to calibrate based on its actual inference behavior, effectively eliminating data leakage.

High-quality 1-step generation results using Imagine Flash.

Core Methodology

Beyond Backward Distillation, the framework incorporates two additional innovations:

  1. Shifted Reconstruction Loss (SRL): This adaptive loss function recognizes that different timesteps require different focuses. At higher timesteps, the model prioritizes semantic alignment and global layout. As it moves to lower timesteps, the focus shifts toward high-frequency details and textures.
  2. Noise Correction: To address the lack of signal in initial pure noise ($t=T$), the authors implement a training-free trick: replacing the model's predicted noise for the first step with the actual starting noise. This significantly improves color vibrancy and saturation.

Performance and Results

Imagine Flash demonstrates remarkable efficiency. At just 3 steps, it achieves an FID of 35.5 on COCO2017, matching the 25-step Emu teacher model (35.7) and significantly outperforming competitors like LCM-Emu (59.1) and ADD-Emu (39.1).

Visual fidelity achieved in just 2 steps.

Human preference studies further validate these results. Evaluators preferred Imagine Flash over ADD-LDMXL 71.2% of the time. On the T2i-CompBench benchmark, the model showed superior performance in complex compositional tasks, such as spatial relationship binding and color attribution.

Conclusion

Imagine Flash represents a significant leap in fast image generation. By aligning the training process with actual inference trajectories and using adaptive loss functions, it provides a path toward real-time, high-fidelity synthesis. Future work aims to extend this "Backward Distillation" approach to video and 3D modalities, potentially revolutionizing generative media across the board.

Summary updated

BibTeX
@misc{kohler2024imagine,
  author = {Jonas Kohler and Albert Pumarola and Edgar Schönfeld and Artsiom Sanakoyeu and Roshan Sumbaly and Peter Vajda and Ali K. Thabet},
  title = {{Imagine Flash: Accelerating Emu Diffusion Models with Backward Distillation}},
  year = {2024},
  eprint = {2405.05224},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.05224},
}
Figure