Abstract
Diffusion-based generative models are extremely effective in generating high-quality images, with generated samples often surpassing the quality of those produced by other models under several metrics. One distinguishing feature of these models, however, is that they typically require long sampling chains to produce high-fidelity images. This presents a challenge not only from the lenses of sampling time, but also from the inherent difficulty in backpropagating through these chains in order to accomplish tasks such as model inversion, i.e. approximately finding latent states that generate known images. In this paper, we look at diffusion models through a different perspective, that of a (deep) equilibrium (DEQ) fixed point model. Specifically, we extend the recent denoising diffusion implicit model (DDIM; Song et al. 2020), and model the entire sampling chain as a joint, multivariate fixed point system. This setup provides an elegant unification of diffusion and equilibrium models, and shows benefits in 1) single image sampling, as it replaces the fully-serial typical sampling process with a parallel one; and 2) model inversion, where we can leverage fast gradients in the DEQ setting to much more quickly find the noise that generates a given image. The approach is also orthogonal and thus complementary to other methods used to reduce the sampling time, or improve model inversion. We demonstrate our method's strong performance across several datasets, including CIFAR10, CelebA, and LSUN Bedrooms and Churches.
Introduction
Diffusion models, such as Denoising Diffusion Probabilistic Models (DDPM) and Denoising Diffusion Implicit Models (DDIM), have established a new state-of-the-art in generative modeling. By learning to reverse a gradual noise process, these models generate high-fidelity images that often exceed the quality of Generative Adversarial Networks (GANs). However, their primary drawback is a "speed limit" imposed by their sequential nature. Generating a single image typically requires hundreds or thousands of serial denoising steps, preventing these models from fully exploiting the parallel processing power of modern GPUs.
Furthermore, tasks such as model inversion—identifying the specific latent noise vector that produces a given real-world image—are computationally expensive. Traditional inversion requires backpropagating through the entire sampling chain, which is both memory-intensive and slow. This paper introduces a framework that reimagines the sequential sampling process as a joint fixed-point system using Deep Equilibrium (DEQ) models, effectively turning a serial bottleneck into a parallelizable optimization problem.
Methodology: The DEQ-DDIM Framework
The authors propose DEQ-DDIM, a method that treats the entire diffusion sampling chain as a single, multivariate fixed-point problem. This approach shifts the perspective from a step-by-step iterative process to a global system where all states are solved simultaneously.
1. The Fixed-Point Shift
In standard DDIM, states are calculated sequentially: $x_{T-1}$ is derived from $x_T$, then $x_{T-2}$ from $x_{T-1}$, and so on. DEQ-DDIM rearranges these equations into a "fully-lower-triangular" system. In this formulation, the entire sequence of states ($x_0, \dots, x_T$) is treated as a single variable. The equilibrium point of this system represents a valid sampling trajectory where all denoising equations are satisfied across all timesteps.
2. Accelerated Convergence
To find this equilibrium, the researchers employ black-box solvers like Anderson acceleration. Unlike simple iteration, these solvers use the history of previous estimates to find the fixed point more efficiently. The authors found that initializing the solver with the starting noise ($x_T$) rather than zeros resulted in a 3x speedup in convergence.
3. Efficient Inversion via the Implicit Function Theorem (IFT)
One of the most significant advantages of the DEQ formulation is its application to model inversion. By leveraging the Implicit Function Theorem (IFT), gradients for optimization can be computed without storing the intermediate computational graph. This results in $O(1)$ memory complexity relative to the depth of the sampling chain. To ensure stability, the authors utilized a "1-step gradient" trick—a damped version of the Jacobian-free gradient—which proved more robust than computing exact inverse Jacobians in ill-conditioned settings.
4. Stochastic Extension
The framework is further extended to stochastic models (DEQ-sDDIM). In this version, the injected noise at each step is treated as an "input injection" to the DEQ system, maintaining the fixed-point structure even in non-deterministic settings.
Experimental Results
The researchers evaluated DEQ-DDIM across four standard benchmarks: CIFAR10 ($32 \times 32$), CelebA ($64 \times 64$), LSUN Bedrooms ($256 \times 256$), and LSUN Outdoor Churches ($256 \times 256$). They utilized pre-trained U-Net architectures to ensure that performance gains were attributable to the DEQ framework rather than architectural changes.
Generation Speed
On CIFAR10 and CelebA, DEQ-DDIM achieved up to a 2x speedup in wall-clock time for single-image generation compared to standard sequential DDIM. By solving for the joint equilibria, the model generates better estimates of intermediate states early in the process, accelerating the path to the final image.
Inversion Accuracy and Quality
The DEQ approach demonstrated a massive improvement in model inversion tasks. On the CIFAR10 dataset, the reconstruction loss was approximately 20x lower (0.76 vs. 15.74) than the baseline, while the process was nearly 4x faster. Qualitatively, the inverted images captured significantly finer details—such as skin textures and complex foliage—that were typically lost or blurred by naive sequential inversion methods.
Discussion and Limitations
While DEQ-DDIM offers a powerful alternative to sequential sampling, it introduces new trade-offs:
- Memory Overhead: Although DEQ provides $O(1)$ memory for model weights, this formulation requires storing all image states ($x_{0:T}$) simultaneously. This may present a bottleneck for very high-resolution images or exceptionally long sampling chains.
- Batch Size Dynamics: The benefits of DEQ are most pronounced in single-image or small-batch scenarios. For very large-batch inference, standard sequential sampling may still be more efficient due to how it utilizes GPU memory and compute kernels.
Conclusion
By unifying diffusion models with deep equilibrium fixed-point systems, this work provides a path toward parallelizing the fundamentally serial process of diffusion sampling. The DEQ-DDIM framework not only accelerates image generation but also provides a memory-efficient, highly accurate method for model inversion. Future work may involve training specialized DEQ models to predict noise at specific timesteps, further reducing the computational cost of high-fidelity generative modeling.
Summary updated