Optimizing for the Shortest Path in Denoising Diffusion Model

Ping Chen, Xingpeng Zhang, Zhaoxiang Liu, Huan Hu, Xiang Liu, Kai Wang, Min Wang, Yanlin Qian, Shiguo Lian

Introduction

Denoising Diffusion Models have set new benchmarks in high-quality image generation, yet their iterative nature remains a significant bottleneck. Transforming random noise into a coherent image typically requires hundreds of steps, leading to high computational costs. While techniques like fast solvers and distillation have been proposed, they often suffer from a "quality-speed trade-off" where reducing the number of steps introduces cumulative reconstruction errors, or "residuals," that degrade the final output.

Shortest Path Diffusion (ShortDF)

The authors propose ShortDF, a novel framework that treats the reverse diffusion process as a shortest-path problem within a graph. By optimizing the denoising trajectory to minimize cumulative error, ShortDF achieves high-fidelity generation in as few as 2 steps.

Graph-Theoretic Denoising

ShortDF models the denoising process as a weighted graph where each node represents a timestep and edges represent denoising steps. The objective is to find the sequence of steps that minimizes the total reconstruction error between the predicted image and the ground truth.

The relaxation process in the diffusion graph optimizes the denoising path by identifying shortcuts that minimize reconstruction error.

Residual Propagation and Relaxation

A key innovation is the use of a relaxation condition, a concept borrowed from graph algorithms. During training, the model evaluates whether a "shortcut"—jumping directly from a noisy state to a cleaner one—yields a lower error than the current multi-step path. If a shortcut is more efficient, the loss function encourages the model to collapse the trajectory, effectively compressing the denoising process without sacrificing quality.

To maintain stability, the framework utilizes a multi-state optimization strategy involving three model variants:

  • Base Model: Performs the primary noise prediction.
  • EMA Model: An Exponential Moving Average version providing stable error estimates.
  • Graph Model: Captures global information about error accumulation across the entire path.

Experimental Evaluation

ShortDF was evaluated on three standard benchmarks: CIFAR-10 ($32 \times 32$), CelebA ($64 \times 64$), and LSUN Churches ($256 \times 256$). These datasets test the model's performance across varying resolutions and levels of structural complexity.

Key Results

ShortDF demonstrates a significant leap in efficiency and visual quality compared to standard baselines like DDIM.

Visual comparison between DDIM and ShortDF (Ours) at 1, 5, and 10 steps. ShortDF maintains high clarity and detail even at extremely low step counts.
  • Efficiency Gains: On CIFAR-10, ShortDF achieved an FID score of 9.08 in just 2 steps, outperforming DDIM's 10-step score of 11.14.
  • Visual Fidelity: At low step counts (1–5 steps), ShortDF avoids the typical "ghosting" or blurring artifacts seen in other fast samplers. On CelebA, 8 steps of ShortDF produced results comparable to 20 steps of DDIM.
  • Path Optimization: The results underscore the importance of the "initial residual." By optimizing the start of the denoising path, subsequent steps face significantly reduced error correction tasks.

Conclusion and Future Work

ShortDF effectively reimagines diffusion as a navigation problem, using graph theory to find the most efficient path to data reconstruction. While the training process is more resource-intensive due to the multi-state architecture, the inference speedup is substantial. Future work may explore scaling this approach to higher resolutions and applying shortest-path logic to video generation for improved temporal consistency.

Summary updated

BibTeX
@inproceedings{chen2025optimizing,
  author = {Ping Chen and Xingpeng Zhang and Zhaoxiang Liu and Huan Hu and Xiang Liu and Kai Wang and Min Wang and Yanlin Qian and Shiguo Lian},
  title = {{Optimizing for the Shortest Path in Denoising Diffusion Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01679},
}
Figure