Linear Multistep Solver Distillation for Fast Sampling of Diffusion Models

Yuchen Liang, Xiangzhong Fang, Hanting Chen, Yunhe WangICLR 2025

Introduction

Diffusion models have revolutionized image generation by reversing a noise process, which is mathematically equivalent to solving a Probability Flow Ordinary Differential Equation (ODE). However, "solving" this ODE typically requires 20 to 50 function evaluations (NFE), making the sampling process slow and computationally expensive. While researchers have explored model distillation (which is costly) and handcrafted solvers (which hit a quality wall below 10 steps), finding an optimal, low-step solver remains challenging. Previous search frameworks relying on Reinforcement Learning are incredibly slow and struggle to map early-step choices to final image quality.

This paper introduces DLMS (Distilled Linear Multistep Solver), a novel framework that automatically designs optimal, model-specific solvers for diffusion models. By distilling the "knowledge" of a slow, high-accuracy teacher solver into a lightweight "Designer Network," DLMS achieves high-quality image generation in as few as 5 steps. It outperforms handcrafted solvers and is 10$\times$ more efficient to train than previous search-based methods.

Methodology: Solver Distillation

Instead of optimizing for the final image output, the authors propose a "Solver Distillation" approach. They train a student solver to mimic the sampling trajectory—the path through noise-space—of a high-quality teacher solver.

The framework relies on a unified mathematical formula that encompasses almost all existing linear multistep solvers, enabling the exploration of a massive design space. The core of DLMS is the Designer Network, a remarkably small Multi-Layer Perceptron (MLP) with only 9,000 parameters. This network takes the current time step and internal model features as input to output optimal prediction coefficients, time step schedules, and time scaling factors.

The loss function minimizes the mean Euclidean distance between the student’s and teacher’s trajectories. This trajectory matching provides a denser learning signal than evaluating final pixel outputs. Furthermore, the authors employ "stop-gradient" operations to prevent time schedule collapse and maintain low memory usage during the search phase.

Key Insights

  • Trajectory over Final Image: Optimizing for the final Frechet Inception Distance (FID) score directly is unnecessary. Forcing a fast solver to closely follow the ground-truth path of a slow solver naturally yields high-quality results.
  • Model-Specific Needs: Different models require different time schedules. For example, Stable Diffusion favors a schedule close to "logSNR," whereas smaller pixel-space models prefer a "time square" schedule. DLMS automatically learns these nuances.
  • Data Prediction Stability: Predicting the original data ($x_0$) rather than the noise ($\epsilon$) makes the solver significantly more stable at extremely low step counts (under 5 NFE).
  • Lightweight Optimization: The 9k-parameter Designer Network proves that massive neural networks are not required to optimize diffusion sampling; it runs alongside the main model with negligible overhead.

Results and Performance

DLMS was evaluated across various benchmarks, including pixel-space models (CIFAR10, FFHQ, ImageNet-64), latent-space models (LSUN-Bedroom, ImageNet), and large-scale text-to-image models (Stable Diffusion v1.5 on MS-COCO).

The framework achieves a 2$\times$ speedup, matching the image quality of top-tier handcrafted solvers like UniPC or DPM-Solver++ using only half the steps. At just 5 NFE, DLMS achieved an impressive FID score of 12.52 on MS-COCO with Stable Diffusion—a level of detail that standard solvers typically need 10-15 steps to reach. Furthermore, the search process is highly efficient, completing a solver search for Stable Diffusion in under 12 GPU hours.

Qualitatively, DLMS maintains correct lighting, textures, and complex anatomical details at 5-10 steps. Handcrafted solvers often blur or distort these features at such low step counts.

High-quality image generation using DLMS at low step counts, preserving complex details like bear ears.
Standard handcrafted solvers often produce blurred or distorted outputs at the same low step counts.

Limitations and Future Work

Currently, the DLMS framework is strictly designed for deterministic ODE solvers and does not support stochastic (SDE) samplers, which are sometimes preferred for adding texture or variety to images. Future work could integrate DLMS with other acceleration techniques, such as DeepCache, to push sampling speeds further. Additionally, extending this distillation logic to video generation models could significantly alleviate their severe computational burdens.

Summary updated

BibTeX
@inproceedings{liang2025linear,
  author = {Yuchen Liang and Xiangzhong Fang and Hanting Chen and Yunhe Wang},
  title = {{Linear Multistep Solver Distillation for Fast Sampling of Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=vkOFOUDLTn},
}
Figure