Learning to Discretize Denoising Diffusion ODEs

Vinh Tong, Dung Trung Hoang, Anji Liu, Guy Van den Broeck, Mathias Niepert

Introduction

Diffusion Probabilistic Models (DPMs) have established themselves as the gold standard for generative AI, powering state-of-the-art applications ranging from high-fidelity image synthesis to 3D point cloud generation. However, they suffer from a significant bottleneck: sampling speed.

To generate an image, DPMs typically solve an Ordinary Differential Equation (ODE) by taking numerous small steps to iteratively transform random noise into a coherent output. Each of these steps requires a computationally expensive Neural Function Evaluation (NFE). While researchers have developed "fast solvers" to reduce the required number of steps, these solvers still rely on handcrafted time schedules (such as uniform or quadratic spacing) that are rarely optimal for every specific model or dataset. Existing alternatives to fix this usually involve "distillation," which requires retraining the entire massive neural network—a process that is slow, data-hungry, and computationally prohibitive.

To address this, researchers have introduced LD3 (Learning to Discretize Denoising Diffusion ODEs), a lightweight framework that optimizes the sampling "time schedule" for pre-trained diffusion models in just minutes, without ever retraining the underlying neural network.

The LD3 Framework

Instead of retraining the massive generative model, LD3 treats the sampling time steps themselves as trainable parameters. By optimizing the path the model takes through time, LD3 maximizes output quality for a given solver and step count.

Key Innovations

  • Global Truncation Error Optimization: Rather than focusing on local errors at each individual step, LD3 minimizes the difference between the final output of a "student" solver (taking very few steps) and a "teacher" solver (taking many steps to provide a high-quality "gold standard" reference).
  • Soft Teacher Forcing: This is the core innovation of LD3. Directly forcing a student with only 4 steps to match a teacher with 100 steps from the exact same starting noise often leads to underfitting. LD3 relaxes this constraint: it allows the student to start from a slightly different point in the noise space (within a small radius $r$) to reach the teacher's target. This "softness" makes the optimization landscape much smoother and easier to solve.
Overview of the LD3 framework, illustrating the difference between strict hard teacher forcing (a) and the proposed soft teacher forcing (c) which relaxes the starting noise constraint to smooth the optimization landscape.
  • Differentiable Sampling: The entire sampling pipeline is made differentiable. This allows the framework to use standard backpropagation to adjust the time steps until the output quality is maximized.
  • Decoupled Time Steps: LD3 learns two distinct sets of time variables: one for the solver's step size and another for the time-index input fed into the denoising network, providing finer control over the generation process.

Experimental Validation and Insights

The researchers evaluated LD3 across a wide variety of domains, including pixel-space image synthesis (CIFAR10, FFHQ, AFHQv2), latent diffusion (LSUN-Bedroom, ImageNet), text-to-image generation (Stable Diffusion v1.5, InstaFlow), and even non-image domains like 3D point clouds (ShapeNet) and molecular docking (PDB).

Several key insights emerged from the experiments:

  1. One Size Does Not Fit All: The "optimal" time steps change depending on the chosen solver (e.g., Euler vs. DPM-Solver++) and the specific pre-trained model. LD3 successfully adapts to the unique "geometry" of each model.
  2. Extreme Data Efficiency: Unlike distillation methods that require thousands of images, LD3 can be trained effectively using as few as 100 noise-sample pairs.
  3. Incredible Speed: Training LD3 takes between 5 and 40 minutes on a single GPU, a stark contrast to distillation methods that can take days on massive GPU clusters.

Key Results

LD3 consistently outperformed existing handcrafted and optimized discretization methods across multiple benchmarks:

  • CIFAR10 & AFHQv2: On CIFAR10, LD3 achieved a Fréchet Inception Distance (FID) of 2.38 with only 10 steps, closely approaching the 100-step teacher's performance of 2.08. On AFHQv2, it reached an FID of 2.27 at 10 steps.
  • Stable Diffusion: LD3 significantly boosted the quality of few-step generation. For instance, it improved the FID of the InstaFlow model from 22.56 to 15.49 with only 2 steps.
  • Versatility: In 3D point cloud generation, LD3 with just 8 steps actually surpassed the original teacher model in certain evaluation metrics.
Qualitative comparison of image generation quality, demonstrating LD3's ability to produce coherent, high-fidelity outputs compared to baseline methods at low step counts.

Limitations and Future Work

While highly efficient, LD3 does have limitations. Currently, the framework requires NFE-specific training; you must train a separate set of time steps for each desired step count (e.g., one schedule for 5 steps, another for 10). Developing a "universal" scheduler that generalizes across any NFE count is a logical next step.

Furthermore, while LD3 is vastly faster to train, specialized distillation methods (like Consistency Models) can still achieve slightly higher quality at the absolute lowest step counts (1-2 steps), albeit at a much higher training cost. Finally, the method requires the ODE solver to be differentiable, which may limit its application with certain complex, non-standard sampling algorithms.

Overall, LD3 offers a highly practical, plug-and-play solution for accelerating pre-trained diffusion models without the heavy burden of network retraining.

Summary updated

BibTeX
@inproceedings{tong2025learning,
  author = {Vinh Tong and Dung Trung Hoang and Anji Liu and Guy Van den Broeck and Mathias Niepert},
  title = {{Learning to Discretize Denoising Diffusion ODEs}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=xDrFWUmCne},
}
Figure