This paper uncovers a surprising mathematical property of Denoising Diffusion Probabilistic Models (DDPMs) that allows them to be parallelized without any loss in sample quality. By proving that diffusion increments are "secretly exchangeable," the authors introduce a new algorithm called Autospeculative Decoding (ASD) that speeds up inference by 1.8x to 4x across image generation and robotics tasks.
The Sequential Bottleneck in Diffusion
Diffusion models are the backbone of modern generative AI, but they are notoriously slow. Generating a single image or a robot motion sequence typically requires 100 to 1,000 sequential steps. Each step depends on the previous one, creating a massive computational bottleneck.
Existing solutions usually involve a trade-off:
- Fewer steps (e.g., DDIM, Distillation): Faster, but often results in lower image quality or requires expensive retraining.
- Parallelization (e.g., Picard iterations): Breaks the sequential chain but introduces small, tunable errors into the final sample.
The core challenge addressed in this work is how to speed up diffusion models without retraining them and without sacrificing a single bit of sample quality.
Methods: Exchangeability and Autospeculative Decoding
The researchers bridge the gap between DDPMs and a mathematical framework called Stochastic Localization (SL) to develop their solution.
- Hidden Exchangeability: They prove that after a specific reparameterization (a change in time and scale), the increments of a DDPM denoising trajectory are exchangeable. This means the joint probability of these increments doesn't change if you swap their order.
- Autospeculative Decoding (ASD): In Large Language Models (LLMs), "Speculative Decoding" uses a small "draft" model to guess future tokens, which the big model then verifies in parallel. ASD adapts this to diffusion but with a twist: it doesn't need a draft model. Because of exchangeability, the main model can use its current state to speculate future increments for itself in a single parallel call.
- Verification via Rejection Sampling: The algorithm uses a "Gaussian Rejection Sampler" to verify these speculations. If the speculations are accurate, the model jumps forward multiple steps at once. If they aren't, it "corrects" the first disagreement and tries again. Crucially, this process is mathematically guaranteed to produce samples from the exact same distribution as the sequential version.
Key Results and Performance
The authors evaluated ASD across two distinct domains: Image Generation (StableDiffusion-v2 on COCO2017, LSUN Church) and Robotics (Robomimic tasks using Diffusion Policies).
- Wall-Clock Speedup: For Stable Diffusion v2, they achieved up to a ~1.8x speedup using multiple GPUs. For robotics tasks, they achieved roughly a 4x speedup on a single GPU by batching the speculations.
- Algorithmic Efficiency: In robotics, ASD offered a 6-7x reduction in the number of sequential neural network calls.
- Zero Quality Loss: Quantitative metrics like CLIP scores (for image-text alignment) and FID scores (for image realism) remained identical to the sequential baseline. Qualitative results show that the images generated are indistinguishable from the original process.
The paper provides a rigorous proof that ASD achieves a parallel runtime speedup of $\tilde{O}(K^{1/3})$ over $K$ sequential steps. This is the first parallel inference algorithm for DDPMs with a theoretically guaranteed speedup that doesn't require restrictive assumptions like Lipschitz continuity of the model.
Limitations and Future Work
While ASD provides a mathematically sound way to parallelize diffusion, there are practical considerations:
- Hardware Overheads: In the multi-GPU image generation setup, the time spent moving data between GPUs limits the "real-world" wall-clock speedup compared to the theoretical "algorithmic" speedup. Faster interconnects would make ASD even more effective.
- Continuous vs. Discrete: This work focuses on diffusion in continuous spaces (Euclidean). Extending this to discrete diffusion models (like those used for text) is a promising next step.
- Speculation Length: There is a "sweet spot" for how many steps to speculate. Speculating too far ahead increases the chance of rejection, while speculating too little leaves performance on the table. Finding ways to adaptively tune this length during inference remains an open area for research.
Summary updated