Abstract
Conditional Diffusion Distillation (CoDi) is a novel framework designed to accelerate Latent Diffusion Models (LDMs) for conditional generation tasks. By distilling a conditional model from a pre-trained unconditional LDM in a single stage, CoDi enables high-quality image synthesis—including super-resolution, inpainting, and depth-to-image translation—in as few as 1 to 4 sampling steps. This approach maintains the rich visual priors of the original model while significantly reducing computational latency.
Introduction
Latent Diffusion Models (LDMs) have set the standard for high-fidelity image generation, yet their iterative sampling process remains a significant bottleneck. Generating a single image typically requires 20 to 200 steps, making real-time applications computationally expensive. While distillation techniques have been developed to compress these steps, applying them to conditional tasks (e.g., depth-to-image or super-resolution) often results in a trade-off between speed and quality. Existing methods frequently rely on inefficient two-stage processes that can lead to "quality drift" or the loss of the original model's generative priors. CoDi addresses these challenges by introducing a single-stage strategy that simultaneously teaches the model new tasks and distills its sampling process.
Methodology
CoDi's architecture is built upon three key innovations:
- Conditional Consistency Distillation: Inspired by Consistency Models, CoDi enforces a mathematical constraint ensuring that predictions at different denoising stages remain consistent. A unified loss function balances this self-consistency with task-specific guidance.
- Zero-Initialized Adapters: To incorporate new conditions without disrupting the pre-trained LDM's internal representations, CoDi uses trainable conditional encoders (similar to ControlNet) initialized to zero.
- Parameter-Efficient CoDi (PE-CoDi): This variant allows the base LDM to remain frozen while only training a small set of adapter parameters, enabling the efficient creation of specialized models for various tasks.
Experimental Setup
The researchers evaluated CoDi across several demanding benchmarks:
- Super-resolution: Tested on the DF2K dataset.
- Inpainting: Evaluated using ImageNet.
- Depth-to-Image: Utilized the WebLI dataset to generate realistic scenes from geometric depth maps.
- Image Editing: Used the InstructPix2Pix dataset to assess natural language instruction following.
Results and Analysis
CoDi achieves state-of-the-art results in just 1–4 steps, significantly outperforming standard models that require 50+ steps. On the DF2K super-resolution benchmark, CoDi reached an FID of 19.637 in 4 steps, comparable to the 250-step performance of a standard LDM (FID 19.200).
Key insights from the study include:
- Prior Preservation: By distilling directly from the pre-trained LDM in a single stage, CoDi avoids the quality degradation typical of multi-stage pipelines.
- Sampling Strategy: The discovery that "consistent time" sampling during training—rather than randomizing time steps—is crucial for high-performance 1-4 step generation.
- Efficiency: In image editing tasks, CoDi's 1-step results were visually comparable to the 200-step outputs of original models, representing a theoretical 200x speedup.
Conclusion and Future Work
CoDi represents a major advancement in making high-fidelity generative AI accessible for real-time applications. While it drastically reduces the number of sampling steps, the authors note that the absolute latency is still hardware-dependent and tied to the underlying U-Net architecture. Future research will focus on more lightweight backbones and further optimization for mobile and edge deployment.
Summary updated