TL;DR
Continuous-Time Distribution Matching (CDM) breaks a long-standing constraint in diffusion model distillation by shifting optimization from sparse, discrete timesteps to a continuous-time domain. By introducing a dynamic continuous schedule and an off-trajectory alignment objective, CDM achieves state-of-the-art, high-fidelity 4-step image generation without relying on complex auxiliary modules like GANs or reward models.
What Problem Does This Paper Address?
Diffusion and flow-matching models generate stunning images but require tens or hundreds of sequential network evaluations (NFEs), creating a massive computational bottleneck. Distillation techniques like Distribution Matching Distillation (DMD) compress these models into few-step generators (e.g., 4 steps).
However, existing DMD methods suffer from a major structural limitation: to maintain consistency with few-step inference, they restrict training to a fixed set of sparse, discrete timesteps (anchors). This lack of dense supervision forces the student model to learn an unsmooth velocity field. Combined with the mode-seeking nature of the reverse KL divergence, vanilla DMD often yields over-smoothed images and visual artifacts, typically requiring heavy auxiliary components (like GAN discriminators or reward models) to patch over the quality loss.
Methods
The authors introduce Continuous-Time Distribution Matching (CDM), migrating the DMD framework into a fully continuous optimization space via two core designs:
- Dynamic Time Schedule: Instead of anchoring the training to a fixed grid of inference timesteps, CDM randomizes both the simulation trajectory length and the timesteps ($t \in (0, 1]$) at each training iteration. This decouples training from the inference schedule, exposing the student to a much wider variety of intermediate states.
- Continuous-Time Distribution Matching (CDM) Loss: Few-step inference inherently suffers from numerical truncation errors, causing sampling trajectories to drift off the ideal data manifold. To combat this, the CDM loss uses a first-order Euler step along the student's predicted velocity field to extrapolate off-trajectory latents. It then enforces distribution matching on these drifted points, regularizing the student's velocity field and teaching it to self-correct integration errors.
Datasets
- Training: A dataset of 200K prompts randomly sampled from the training sets of T2I-2M, LAION, ShareGPT-4o-Image, PickScore, and OCR.
- Evaluation:
- PickScore test split (2K prompts) for general text-to-image quality.
- DPG-Bench (1K prompts) for fine-grained prompt adherence.
- FlowGRPO (1K prompts) evaluated via PaddleOCR for text rendering accuracy.
- COCO 2014 validation set (10K prompts) for Fréchet Inception Distance (FID) evaluation.
Key Insights and Ideas
- Schedule Decoupling: The strict alignment between training and inference schedules in prior distillation work is not a necessary anchor; it is an overly restrictive constraint. Training across a continuous time domain yields smoother velocity fields and better generalization.
- The True Role of DM Loss: Recent literature treated the Distribution Matching (DM) loss as a passive regularizer for training stability. The authors reveal that the DM loss is actually the primary driver aligning the student to the teacher's classifier-free guidance (CFG)-free distribution.
- Off-Trajectory Regularization: Actively supervising points outside the standard sampling trajectory (via velocity-driven extrapolation) effectively constrains the material derivative of the velocity field. This prevents high-frequency oscillations and preserves fine, sharp visual details.
Key Results
Evaluated at 4 NFEs on SD3-Medium and Longcat-Image, CDM establishes a new state-of-the-art for few-step generation:
- Quantitative Superiority: On SD3-Medium, CDM achieves the highest Aesthetic score (6.075), DPGBench (85.26), PickScore (21.95), and HPSv3 (9.561) among image-free distillation methods, outperforming strong baselines like DMD2 and D-DMD. It also lowers FID to 30.30.
- Surpassing the Teacher: Remarkably, the 4-step CDM student matches or even exceeds the 100-step pretrained teacher on several prompt-adherence and human-preference metrics (e.g., HPSv3 of 9.561 vs. Teacher's 8.189).
- Qualitative Fidelity: Visually, CDM produces significantly sharper textures, richer fine-grained details, and fewer artifacts than DMD2, which suffers from noticeable over-smoothing.
Limitations and Future Work
- Training Overhead: While CDM introduces zero overhead at inference time, the dynamic continuous schedule and off-trajectory forward passes increase the per-iteration training time by roughly 1.8× compared to D-DMD.
- Teacher Upper-Bound: As a pure distillation framework, CDM is fundamentally bounded by the teacher's base capabilities; it cannot easily recover concepts or complex compositions that the teacher model itself handles poorly without CFG.
- Domain Scope: The current empirical validation is restricted to text-to-image generation. The authors note that extending CDM to video diffusion models and image editing (where temporal consistency and trajectory lengths play a larger role) remains an open direction for future work.
Summary updated