Accelerating Diffusion Sampling with Optimized Time Steps

Shuchen Xue, Zhaoqiang Liu, Fei Chen, Shifeng Zhang, Tianyang Hu +2 more
2/9/2026

No official code found. Best implementation: scxue/DM-NonUniform (40 stars, MIT, last commit 2024-03-11).

Abstract

Diffusion probabilistic models (DPMs) have shown remarkable performance in high-resolution image synthesis, but their sampling efficiency is still to be desired due to the typically large number of sampling steps. Recent advancements in high-order numerical ODE solvers for DPMs have enabled the generation of high-quality images with much fewer sampling steps. While this is a significant development, most sampling methods still employ uniform time steps, which is not optimal when using a small number of steps. To address this issue, we propose a general framework for designing an optimization problem that seeks more appropriate time steps for a specific numerical ODE solver for DPMs. This optimization problem aims to minimize the distance between the ground-truth solution to the ODE and an approximate solution corresponding to the numerical solver. It can be efficiently solved using the constrained trust region method, taking less than 15 seconds. Our extensive experiments on both unconditional and conditional sampling using pixel- and latent-space DPMs demonstrate that, when combined with the state-of-the-art sampling method UniPC, our optimized time steps significantly improve image generation performance in terms of FID scores for datasets such as CIFAR-10 and ImageNet, compared to using uniform time steps.11Code is available at https://github.com/scxue/DM-NonUniform

View on arXivView PDF

Code Implementations(1)

scxue/DM-NonUniformCommunity100%
MIT

Official code for Accelerating Diffusion Sampling with Optimized Time Steps (CVPR 2024)

406PythonMar 4, 20242 years agoMIT

Similar Papers

Cite this paper

@article{xue2026accelerating,
  title  = {Accelerating Diffusion Sampling with Optimized Time Steps},
  author = {Shuchen Xue and Zhaoqiang Liu and Fei Chen and Shifeng Zhang and Tianyang Hu and Enze Xie and Zhenguo Li},
  year   = {2026},
  eprint = {2402.17376},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2402.17376},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.17376.svg)](https://codeofpaper.com/paper/2402.17376)

Discussion