Abstract: Diffusion models suffer from slow sample generation at inference time. Despite recent efforts, improving the sampling efficiency of stochastic samplers for diffusion models remains a promising direction. We propose Splitting Integrators for fast stochastic sampling in pre-trained diffusion models in augmented spaces. Commonly used in molecular dynamics, splitting-based integrators attempt to improve sampling efficiency by cleverly alternating between numerical updates involving the data, auxiliary, or noise variables. However, we show that a naive application of splitting integrators is sub-optimal for fast sampling. Consequently, we propose several principled modifications to naive splitting samplers for improving sampling efficiency and denote the resulting samplers as Reduced Splitting Integrators. In the context of Phase Space Langevin Diffusion (PSLD) on CIFAR-10, our stochastic sampler achieves an FID score of 2.36 in only 100 network function evaluations (NFE) as compared to 2.63 for the best baselines.
Introduction
Diffusion models have revolutionized generative AI but remain bottlenecked by slow inference speeds. Generating high-quality images typically requires hundreds of sequential network function evaluations (NFEs). While deterministic solvers offer speed, stochastic samplers (SDEs) are often preferred for their ability to produce more diverse and high-quality samples. This work focuses on accelerating stochastic sampling, particularly for Augmented Diffusion models like Phase Space Langevin Diffusion (PSLD), which utilize auxiliary variables (momentum) to enhance sampling dynamics.
Methods: Reduced Splitting Integrators
The core contribution of this work is the adaptation of Splitting Integrators from molecular dynamics to the diffusion setting. These integrators decompose the complex motion of the SDE into simpler, solvable components:
- Update A: Changes based on data and score.
- Update B: Changes based on momentum.
- Update O: The Ornstein-Uhlenbeck component for noise injection.
While a "Naive" application of these updates (e.g., NOBA) provides some benefits, it is sub-optimal for fast sampling. We introduce Reduced Splitting Integrators, which incorporate three key modifications:
- Score Reuse: Reusing the neural network's score output between updates to effectively halve the NFEs per step.
- Timestep Refinement: Adjusting internal time parameters to minimize discretization errors.
- Controlled Stochasticity: Using a parameter $\lambda_s$ to precisely tune the noise level injected into the data space, ensuring stability and quality.
Experimental Results
We evaluated our samplers on CIFAR-10 and CelebA-64 using pre-trained PSLD models. Our best sampler demonstrates state-of-the-art performance for fast stochastic sampling.
Performance on CIFAR-10
On CIFAR-10, the proposed Reduced Splitting Integrator achieved an FID score of 2.36 in just 100 NFEs. This is a significant improvement over standard baselines like Euler-Maruyama (FID 7.83) and even optimized stochastic samplers like EDM (FID 2.63-2.71).
Key Insights
- Error Cancellation: Theoretical analysis reveals that score reuse does more than save time; it helps cancel out specific discretization errors, leading to more stable trajectories.
- Momentum Benefits: By exploiting the coupling between "position" (image pixels) and "momentum" (auxiliary variables), splitting integrators can navigate high-dimensional spaces more efficiently than standard solvers.
Conclusion
Reduced Splitting Integrators provide a principled and efficient framework for fast stochastic sampling in augmented diffusion models. By cleverly reusing network evaluations and controlling noise injection, we achieve high-quality image generation with a fraction of the computational cost of traditional methods. Future work will explore automating hyperparameter tuning and extending these techniques to standard, non-augmented diffusion models.
Summary updated