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.
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.
- 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