Fixed Point Diffusion Models
Abstract
We introduce the Fixed Point Diffusion Model (FPDM), a novel approach to image generation that integrates the concept of fixed point solving into the framework of diffusion-based generative modeling. Our approach embeds an implicit fixed point solving layer into the denoising network of a diffusion model, transforming the diffusion process into a sequence of closely-related fixed point problems. Combined with a new stochastic training method, this approach significantly reduces model size, reduces memory usage, and accelerates training. Moreover, it enables the development of two new techniques to improve sampling efficiency: reallocating computation across timesteps and reusing fixed point solutions between timesteps. We conduct extensive experiments with state-of-the-art models on ImageNet, FFHQ, CelebA-HQ, and LSUN-Church, demonstrating substantial improvements in performance and efficiency. Compared to the state-of-the-art DiT model [37], FPDM contains 87% fewer parameters, consumes 60% less memory during training, and improves image generation quality in situations where sampling computation or time is limited. Our code and pretrained models are available at https://lukemelas.github.io/fixed-point-diffusion-models/.
1 Introduction
The field of image generation has experienced significant recent advancements driven by the development of large-scale diffusion models [22, 46, 37, 36, 40, 47]. Key to these advancements have been increased model size, computational power, and the collection of extensive datasets [53, 24, 4, 11, 44, 45, 15], collectively contributing to a marked improvement in generation performance.
Despite these strides, the core principles of diffusion networks have remained largely unchanged since their development [22]. They typically consist of a fixed series of neural network layers, either with a UNet architecture [41] or, more recently, a vision transformer architecture [50, 13]. However, as diffusion models are increasingly deployed in production, especially on mobile and edge devices, their large size and computational costs pose significant challenges.
This paper introduces the Fixed Point Diffusion Model (FPDM), which integrates an implicit fixed point solving layer into the denoising network of a diffusion model. In contrast to traditional networks with a fixed number of layers, FPDM is able to utilize a variable amount of computation at each timestep, with the amount of computation directly influencing the accuracy of the resulting solutions. This fixed point network is then applied sequentially, as in standard diffusion models, to progressively denoise a data sample from pure Gaussian noise.
FPDM offers efficiency gains at two levels of granularity: that of individual timesteps and that of the entire diffusion process. First, at the timestep level, it provides:
-
1.
A substantial reduction in parameter count compared to previous networks (87% compared to DiT [37]).
-
2.
Reduced memory usage during both training and sampling (60% compared to DiT [37]).
Second, at the diffusion process level, it provides:
-
1.
The ability to smoothly distribute or reallocate computation among timesteps. This contrasts with all previous diffusion models, which must perform a full forward pass at every sampling timestep.
-
2.
The capacity to reuse solutions from one fixed-point layer as an initialization for the layer in the subsequent timestep, further improving efficiency.
Our fixed-point network thereby delivers immediate benefits, in the form of reduced size and memory (Sec. 3.2), and further benefits when integrated into the diffusion process, in the form of increased flexibility during sampling (Sec. 3.3).
To realize these benefits, it is imperative to train our models using an efficient and effective differentiable fixed-point solver. Although several implicit training methods exist in the literature [5, 17, 14], we find these existing approaches to be unstable or underperformant in our setting. Hence, we develop a new training procedure named Stochastic Jacobian-Free Backpropagation (S-JFB) (Sec. 3.4), inspired by Jacobian-Free Backpropagation (JFB) [14]. This procedure is stable, highly memory-efficient, and surpasses standard JFB in performance.
We demonstrate the efficacy of our method through extensive experiments (Sec. 4) on four popular image generation datasets: LSUN-Church [53], CelebA-HQ [24], FFHQ [4], and ImageNet [11]. FPDM excels over standard diffusion models when computational resources during sampling are limited. Finally, detailed analysis and ablation studies (Sec. 5) demonstrate the efficacy of our proposed network, sampling techniques, and training methods.
2 Related Work
Diffusion Models (DMs).
Diffusion models [22, 2], or score-based generative models [47, 48], are the source of tremendous recent progress in image generation. They learn to reverse a Markovian noising process using a denoiser parametrized by a neural network, traditionally a U-Net [41]. The denoising paradigm can be seen as the discretization of a stochastic differential equation in a continuous domain [49]. Later work equipped DMs with different sampling methods [33, 52, 46] and applied conditional control from multiple modalities [12, 48, 35]. Recently, DMs with transformer-based architectures (DiTs) were shown to be highly effective [37]; FPDM builds upon the DiT architecture.
The heavy memory and computation requirements of DMs scale up quadratically with the image resolution and linearly with the number of sampling timesteps. To reduce training cost, LDM [40] proposes to downsample images with a pre-trained Variational Autoencoder [28] and perform denoising in latent space. However, the inference cost of DMs is still considered their primary drawback.
Implicit Networks and Deep Equilibrium Models.
Whereas traditional neural networks calculate outputs by performing a pass through a stack of layers, implicit neural networks define their outputs by the solutions of dynamic systems. Specifically, Deep Equilibrium Models (DEQs) [5, 16] define their output by the fixed point of an equilibrium layer . The equilibrium state of DEQs, , is equivalent to the output of an infinite-depth, weight-sharing explicit neural network: In its forward pass, the equilibrium state can be computed by applying solvers like Broyden’s method [9] or Anderson’s acceleration [3]. In the backward pass, one can implicitly differentiate through the equilibrium state , or use one of the recently-proposed accelerated training methods [17, 14]. Applications of DEQs include optical flow [7], image segmentation [6] and inverse imaging problems [19].
Recent Work Combining Diffusion and DEQs.
In the past year, two works have merged DMs and DEQs. Differently from our proposal, these approaches tried to convert the entire diffusion process into a single fixed point equation. [38] considers the entire diffusion trajectory as a single sample and solves for the fixed point of the trajectory, converting the sequential diffusion process into a parallel one. [18] distills a pretrained diffusion model into a single-step DEQ. These works are exciting but come with their own drawbacks: the former is an inference-time technique that consumes significantly more memory than standard ancestral sampling, while the latter requires a pretrained diffusion model and has not scaled to datasets larger than CIFAR-10.
3 Methods
3.1 Preliminaries
Implicit Neural Networks.
The neural network layer is the foundational building block of deep learning. While early neural networks used only a few layers [29, 31], modern networks such as large-scale transformers [50, 13] often consist of dozens of layers connected by residual blocks. Typically, these layers share a similar internal structure and dimensionality, with each having distinct set of parameters. In essence, most networks are defined explicitly: their operations are precisely defined by their layer weights. Running a forward pass always entails processing inputs with the entire set of layers.
On the other hand, implicit models define the function or procedure to be computed by the network, rather than the exact sequence of operations. This category includes models that integrate differential equation solvers (Neural ODE/CDE/SDEs; [10, 26, 27]), as well as models incorporating fixed point solvers (fixed point networks or DEQs; [5]). Our proposed FPDM belongs to this latter group.
Differentiable Fixed Point Solving.
Given a function on , a fixed point solver aims to compute such that . The computation of fixed points has been the subject of centuries of mathematical study [51], with the existence and uniqueness of a system’s fixed points often proved with the Banach fixed-point theorem and its variants [23, 20, 1].
In our case, is a differentiable function parametrized by , and we are interested in both solving for the fixed point and backpropagating through it. The simplest solving method is fixed point iteration, which iteratively applies until convergence to . Under suitable assumptions, iteration converges linearly to the unique fixed point of an equilibrium system (Thrm 2.1 in [14]). Alternative methods found throughout the literature include Newton’s method, quasi-Newton methods such as Broyden’s method, and Anderson’s acceleration. In these cases, one can analytically backpropagate through via implicit differentiation [14]. However, these methods can come with significant memory and computational costs. Recently, a new iterative solving method denoted Jacobian-Free Backpropagation (JFB) was introduced to circumvent the need for complex and costly implicit differentiation; we discuss and extend upon this method in Sec. 3.4.
3.2 Fixed Point Denoising Networks
Our proposed fixed-point denoising network (Fig. 2) integrates an implicit fixed-point layer into a diffusion transformer. The network consists of three stages: 1) explicit timestep-independent preprocessing layers , 2) a implicit timestep-conditioned fixed-point layer , and 3) explicit timestep-independent postprocessing layers . The function takes as input both the current fixed-point solution and a value called the input injection, which is the projected output of the preceding explicit layers. One can think of as a map conditional on the input injection and timestep, for which we aim to find a fixed point. The network processes an input as follows:
(1) | ||||
(2) | ||||
(3) | ||||
(4) |
The output is used to compute the loss (during training) or the input to the next timestep (during sampling).
Whereas explicit networks consume a fixed amount of computation, this implicit network can adapt based on the desired level of accuracy or even on the difficulty of the input. In this way, it unlocks a new tradeoff between computation and accuracy. Moreover, since the implicit layer replaces a large number of explicit layers, it significantly decreases its size and memory consumption.
3.3 Fixed Point Diffusion Models (FPDM)
FPDM incorporates the fixed point denoising network proposed above into a denoising diffusion process.
We assume the reader is already familiar with the basics of diffusion models and provide only a brief summary; if not, we provide an overview in the Supplementary Material. Diffusion models learn to reverse a Markovian noising process in which a sample from a target data distribution is noised over a series of timesteps . The size of each step of this process is governed by a variance schedule as where each is a Gaussian distribution. We learn the distribution using a network , which in our case is a fixed point denoising network. The generative process then begins with a sample from the noise distribution and denoises it over a series of steps to obtain a sample from the target distribution .
The primary drawback of diffusion models as a class of generative models is that they are relatively slow to sample. As a result, during sampling, it is very common to only use a small subset of all diffusion timesteps and take correspondingly larger sampling steps; for example, one might train with 1000 timesteps and then sample images with as few as , or timesteps.
Naturally, one could replace the explicit denoising network inside a standard diffusion model with a fixed point denoising network, and make no other changes; this would immediately reduce model size and memory usage, as discussed previously. However, we can further improve efficiency during sampling by exploiting the fact that we are solving a sequence of related fixed point problems across all timesteps, instead of a single one. We present two opportunities for improvement: smoothing/reallocating computation across timesteps and reusing solutions.
Smoothing Computation Across Timesteps.
The flexibility afforded by fixed-point solving enables us to allocate computation between timesteps in a way that is not possible with traditional diffusion models. For a given computational budget for sampling, we can reduce the the number of forward passes (i.e. number of fixed point iterations) used per timestep in order to use more timesteps over the sampling process (see Fig. 3). In other words, our implicit model can effectively “smooth out” the computation over more timesteps. By contrast, with explicit models such as DiT, the amount of computation directly determines the number of timesteps, since a full forward pass is needed at each timestep. Indeed, we find that when the amount of compute is relatively limited, it is highly beneficial to smooth out the compute among more timesteps than would be done with a traditional model. The effectiveness of smoothing is shown empirically in section Sec. 5.1.
Reallocating Computation Across Timesteps
Beyond smoothing out computation over timesteps, FPDM enables one to vary the number of forward passes at each timestep, thereby dynamically controlling the solving accuracy at different stages of the denoising process. This capability enables the implementation of diverse heuristics. For example, we can allocate a greater number of iterations at the start (“decreasing” heuristic) or the end (“increasing” heuristic) of the diffusion process (see Fig. 3). Additionally, FPDM supports adaptive allocations of forward passes; further discussions about adaptive algorithms can be found in the supplementary material.
Reusing Solutions.
The convergence speed of fixed point solving meaningfully depends on the initial solution provided as input. A poor guess of the initial solution would make the convergence slower. Considering each timestep independently, the usual approach would be to initialize the fixed-point iteration of each timestep using the output of the (explicit) layers. However, considering sequential fixed point problems in the diffusion process, we can reuse the solution from the fixed point layer at the previous timestep as the initial solution for the next timestep. Formally, we can initialize the iteration in Eq. 3 with rather than with .
The intuition for this idea is that adjacent timesteps of the diffusion process only differ by a small amount of noise, so their fixed point problems should be similar. Hence, the solutions of these problems should be close, and the solution of the previous timestep would be a good initialization for the current timestep. A similar idea was explored in [8], which used fixed point networks for optical flow estimation.
3.4 Stochastic Jacobian-Free Backpropagation
The final unresolved aspect of our method is how to train the network, i.e. how to effectively backpropagate through the fixed point solving layer. While early work on DEQs used expensive (Jacobian-based) implicit differentiation techniques [5], recent work has found more success using approximate and inexpensive (Jacobian-free) gradients [14].
Concretely, this consists of first computing an approximate fixed point (either via iteration or Broyden’s method) without storing any intermediate results for backpropagation, and then taking a single additional fixed point step while storing intermediate results for backpropagation in the standard way. During the backward pass, the gradient is only computed for the final step, and so it is referred to as a “1-step gradient” or Jacobian-Free Backpropagation (JFB). 111We note that this process has been referred to in the literature by many names, including the 1-step gradient, phantom gradient, inexact gradient, and Jacobian-Free backpropagation.
Formally, this approximates the gradient of the loss with respect to the parameters of the implicit layer with fixed point by
The equality above is a consequence of the Implicit Function Theorem [42] and the approximation simply drops the inverse Jacobian term. This simplification is rigorously justified by Theorem 3.1 in [14] under appropriate assumptions.
Despite the simplicity of the 1-step gradient, we found that it performed poorly in large-scale experiments. To improve performance without sacrificing efficiency, we use a new stochastic approach to compute approximate gradients.
Our approach (Algorithm 1) samples random variables and at each training step. During the forward pass, we perform fixed point iterations without gradient to obtain an approximate solution,222By “without gradient”, we mean that these iterations do not store any intermediate results for backpropagation, and they are not included in gradient computation during the backward pass., and then we perform additional iterations with gradient. During the backward pass, we backpropagate by unrolling only through the last iterations. The constants and are hyperparameters that refer to the maximum number of training iterations without and with gradient, respectively. When sampling, the number of iterations used at each timestep is flexible and can be chosen independently of or .
Compared to the 1-step gradient, our method consumes more memory and compute because it backpropagates through multiple unrolled iterations rather than a single iteration. However, it is still drastically more efficient than either implicit differentiation or using traditional explicit networks, and it significantly outperforms the 1-step gradient in our experiments (Tab. 4).
4 Experiments
4.1 Experimental Setup
Model
The architecture of FPDM is based on the current state-of-the-art in generative image modeling, DiT-XL/2 [37], which serves as a strong baseline in our experiments. Adhering to the architecture in [37], we operate in latent space using the Variational Autoencoder from [28, 40]. In addition, we have equipped both the baseline DiT and our FPDM with two advances from the recent diffusion literature: (1) training to predict velocity rather than noise [43], and (2) modifying the denoising schedule to have zero terminal signal-to-noise ratio [32]. We include these changes to show that our improvements are orthogonal to other improvements made in the diffusion literature.
Our network consists of three sets of layers: pre-layers, an implicit fixed point layer, and post-layers. All layers have the same structure and 24M parameters, except the implicit layer has an additional projection for input injection. Through empirical analysis, we find that a single pre/post layer can achieve strong results (see Sec. 5.4). Consequently, the number of parameters in our full network is only 86M, markedly lower than 674M parameters in the standard DiT XL/2 model, which has 28 explicit layers.
Training
We perform experiments on four diverse and popular datasets: Imagenet, CelebA-HQ, LSUN Church, and FFHQ. All experiments are performed at resolution 256. The ImageNet experiments are class-conditional, whereas those on other datasets are unconditional. For a fair comparison, we train our models and baseline DiT models for the same amount of time using the same computational resources. All models are trained on 8 NVIDIA V100 GPUs; the models for the primary experiments on ImageNet are trained for four days (equivalent to 400,000 DiT training steps), while those for the other datasets and for the ablation experiments are trained for one day (equivalent to 100,000 DiT steps). We train using Stochastic JFB with and provide an analysis of this setup in Sec. 5.5.
The ImageNet experiments are class-conditional, whereas those on other datasets are unconditional. For ImageNet, following DiT, we train using class dropout of , but we compute quantitative results without classifier-free guidance. We train with a total batch size of and learning rate e. We use a linear diffusion noise schedule with and , modified to have zero terminal SNR [32]. We use -prediction as also recommended by [32]. Following DiT [37], we learn the variance along with the velocity .
4.2 Sampling Quality and Cost Evaluation
To measure image quality, we employ the widely-used Frechet Inception Distance (FID) 50K metric [21]. To measure the computational cost of sampling, previous studies on diffusion model sampling have counted the number of function evaluations (NFE) [34, 25, 54]. However, given the implicit nature of our model, a more granular approach is required. In our experiments, both implicit and explicit networks consist of transformer blocks with identical size and structure, so the computational cost of each sampling step is directly proportional to the number of transformer block forward passes executed; the total cost of sampling is the product of this amount and the total number of timesteps.333To be predise the implicit layer includes an extra projection for input injection, but this difference is negligible. As a result, we quantify the sampling cost in terms of total transformer block forward passes. 444 For example, sampling from a FPDM with one pre/post-layer and 26 fixed point iterations across timesteps requires the same amount of compute/time as a FPDM with two pre/post layers and iterations using timesteps; this computation cost is also the same as that of a traditional DiT with 28 layers across timesteps. Formally, the sampling cost of FPDM is calculated by where and are the number of pre- and post-layers, the number of fixed point iterations, and the number of sampling steps.
Blocks | Model | FID | FID | Params. | Training |
---|---|---|---|---|---|
(DDPM) | (DDIM) | Memory | |||
140 | DiT | 148.0 | 110.0 | 674M | 25.2 GB |
FPDM | 85.8 | 33.9 | 85M | 10.2 GB | |
280 | DiT | 80.9 | 35.2 | 674M | 25.2 GB |
FPDM | 43.3 | 22.4 | 85M | 10.2 GB | |
560 | DiT | 37.9 | 16.5 | 674M | 25.2 GB |
FPDM | 26.1 | 19.6 | 85M | 10.2 GB |
Dataset | Model | FID | Dataset | Model | FID |
---|---|---|---|---|---|
CelebA-HQ | DiT | 65.2 | FFHQ | DiT | 58.1 |
FPDM | 11.1 | FPDM | 18.2 | ||
LSUN-Church | DiT | 65.6 | ImageNet | DiT | 80.9 |
FPDM | 22.7 | FPDM | 43.3 |
4.3 Results
In Tab. 1, we first present a quantitative comparison of our proposed FPDM against the baseline DiT, under different amounts of sampling compute. Notably, given 140 and 280 transformer block forward passes, our best model significantly outperforms DiT, with the widest performance gap given the most limited compute. Our method’s improvements are orthogonal to those gained from using better samplers; our model effectively lowers the FID score with both DDIM and DDPM. At 560 forward passes, our method outperforms DiT with DDPM but not DDIM, and for more than 560 it is outperformed by DiT. Note that the number of parameters in FPDM is only 12.9% of that in DiT, and it consumes 60% less memory during training (reducing memory from GB to only GB at a batch size of ).
Tab. 2 extends the comparison between FPDM and DiT to three additional image datasets: FFHQ, CelebA-HQ, and LSUN-Church. Our findings are consistent across these datasets, with FPDM markedly improving the FID score despite being nearly one-tenth the size of DiT.
Fig. 1 shows qualitative results of our model compared to DiT. All images are computed using the same random seeds and classes using a classifier-free guidance scale 4.0 and transformer block forward passes (20 timesteps for DiT). FPDM uses fixed point iterations per block with timestep smoothing. Our model produces sharper images with more detail, likely due to its ability to spread the computation among timesteps, as discussed in Sec. 5.1.
Train Iters. (, ) | 3 | 6 | 12 | 24 |
---|---|---|---|---|
FID | 43.0 | 43.2 | 61.5 | 567.6 |
Train iters without grad () | Method | FID |
---|---|---|
JFB (1-Step Grad) | 567.6 | |
6 | Multi-Step JFB | 48.2 |
Stochastic JFB | 43.2 | |
JFB (1-Step Grad) | 567.6 | |
12 | Multi-Step JFB | 79.9 |
Stochastic JFB | 61.5 |
Iters. per Step | 3 | 5 | 6 | 8 | 12 | 26 |
---|---|---|---|---|---|---|
Constant | 48.0 | 45.8 | 46.6 | 47.3 | 48.5 | 62.5 |
Decreasing | 48.0 | 46.3 | 47.3 | 48.3 | 49.1 | 63.2 |
Increasing | 46.7 | 44.8 | 45.9 | 45.6 | 48.0 | 61.7 |
5 Analysis and Ablation Studies
5.1 Smoothing Computation Across Timesteps
In Fig. 4 and 5, we examine the effect of smoothing timesteps as described in Sec. 3.3. We sample across a range of fixed point iterations and timesteps, kee** the total sampling cost (i.e. the total number of transformer block forward passes) constant. This explores the trade-off between the convergence of the fixed point iteration at each timestep and the discretization error of the larger diffusion process.
Balancing the number of iterations and timesteps is key to obtaining optimal performance. Intuitively, when using very few iterations per timestep, the process fails to converge adequately at each step, and the resulting error compounds. Conversely, allocating too many iterations to too few timesteps results in unnecessary computation on already converged solving iterations, resulting in discretization errors arising from larger gaps between timesteps. An ideal strategy involves using just enough fixed-point iterations to achieve a satisfactory solution, thereby maximizing the number of possible timesteps. For instance, with 280 transformer block forward passes, we see that the optimal range lies between 4 and 8 iterations per timestep.
5.2 Reallocating Computation Across Timesteps
In Tab. 5, the increasing heuristic outperforms the contant and decreasing ones; allocating resources more toward the later stages of the denoising process improves generation quality and detail. Note that such flexibility in resource allocation is a novel feature of FPDM, not possible in previous explicit diffusion models.
5.3 Reusing Solutions
As described in Sec. 3.3, we explore reusing the fixed point solution from each timestep to initialize the subsequent step. In Fig. 5(a), we see that reusing makes a big difference when performing a small number of iterations per timestep and a negligible difference when performing many iterations per timestep. Intuitively, reusing solutions reduces the number of iterations needed at each timestep, so it improves the performance when the number of iterations is severely limited. Fig. 5(b) and Fig. 5(c) illustrate the functionality of reusing by examining at the individual timestep level. For each timestep , we use the difference between the last two fixed point iterations, , as an indicator for convergence. Reusing decreases for all timesteps except a few noisiest steps, and reusing is most effective at less noisy timesteps. This observation aligns with our intuition: Adjacent timesteps with less noise tend to have highly similar corresponding fixed point systems, where reusing is more effective.
5.4 Pre/Post Layers
One of the many ways FPDM differs from prior work on DEQs is that we include explicit layers before and after the implicit fixed point layer. In Fig. 7, we conduct an ablation analysis, training networks with , , , and pre/post layers. We see that using at least explicit pre/post layer is always better than . For small compute budgets it is optimal to use pre/post layer, and for larger budgets it is optimal to use or . Broadly, we observe that using more explicit layers limits flexibility thereby reducing performance at lower compute budgets, but improves performance at higher budgets.
5.5 Training Method
In Tab. 3, we compare versions of Stochastic Jacobian-Free Backpropagation with different values of and , the upper bounds on the number of training iterations with and without gradient. and reflect a training-time tradeoff between speed and fixed point convergence. As and increase, each training step contains more transformer block forward and backward passes on average; the fixed point approximations become more accurate, but each step consumes more time and memory. We find the optimal values of and are quite low: or . Using too many iterations (e.g. ) is detrimental as it slow down training.
5.6 Limitations
The primary limitation of our model is that it performs worse than the fully-explicit DiT model when sampling computation and time are not constrained. The performance gains from our model in resource-constrained settings stem largely from smoothing and reusing, but in scenarios with saturated timesteps and iterations, the efficacy of these techniques is reduced. In such cases, our network resembles a transformer with weight sharing [39, 30], which underperform vanilla transformers. Hence, we do not expect to match the performance of DiT, which has 8 more parameters, when sampling with an unlimited amount of resources.
6 Conclusions
We introduce FPDM, a pioneering diffusion model characterized by fixed point implicit layers. Compared to traditional Diffusion Transformers (DiT), FPDM significantly reduces model size and memory usage. In the context of diffusion sampling, FPDM enables us to develop new techniques such as solution reusing and timestep smoothing, which give FPDM enhanced flexibility in computational allocation during inference. This flexibility makes it particularly effective in scenarios where computational resources are constrained. Future work could explore new ways of leveraging this flexibility as well as scaling to larger datasets such as LAION-5B [45].
References
- Agarwal et al. [2001] Ravi P Agarwal, Maria Meehan, and Donal O’regan. Fixed point theory and applications. Cambridge university press, 2001.
- Anand and Achim [2022] Namrata Anand and Tudor Achim. Protein structure and sequence generation with equivariant denoising diffusion probabilistic models. arXiv preprint arXiv:2205.15019, 2022.
- Anderson [1965] Donald G. Anderson. Iterative procedures for nonlinear integral equations. J. ACM, 12(4):547–560, 1965.
- Bai et al. [2022a] Haoran Bai, Di Kang, Haoxian Zhang, **-shan Pan, and Linchao Bao. Ffhq-uv: Normalized facial uv-texture dataset for 3d face reconstruction. ArXiv, abs/2211.13874, 2022a.
- Bai et al. [2019] Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep equilibrium models. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 688–699, 2019.
- Bai et al. [2020] Shaojie Bai, Vladlen Koltun, and J Zico Kolter. Multiscale deep equilibrium models. Advances in Neural Information Processing Systems, 33:5238–5250, 2020.
- Bai et al. [2022b] Shaojie Bai, Zhengyang Geng, Yash Savani, and J Zico Kolter. Deep equilibrium optical flow estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 620–630, 2022b.
- Bai et al. [2022c] Shaojie Bai, Zhengyang Geng, Yash Savani, and J. Zico Kolter. Deep equilibrium optical flow estimation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 610–620. IEEE, 2022c.
- Broyden [1965] C. G. Broyden. A class of methods for solving nonlinear simultaneous equations. Mathematics of Computation, 19(92):577–593, 1965.
- Chen et al. [2021] Ricky T. Q. Chen, Brandon Amos, and Maximilian Nickel. Learning neural event functions for ordinary differential equations. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021.
- Deng et al. [2009] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
- Dhariwal and Nichol [2021] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. In Advances in Neural Information Processing Systems, pages 8780–8794, 2021.
- Dosovitskiy et al. [2020] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2020.
- Fung et al. [2022] Samy Wu Fung, Howard Heaton, Qiuwei Li, Daniel McKenzie, Stanley J. Osher, and Wotao Yin. JFB: jacobian-free backpropagation for implicit networks. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelveth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 22 - March 1, 2022, pages 6648–6656. AAAI Press, 2022.
- Gadre et al. [2023] Samir Yitzhak Gadre, Gabriel Ilharco, Alex Fang, Jonathan Hayase, Georgios Smyrnis, Thao Nguyen, Ryan Marten, Mitchell Wortsman, Dhruba Ghosh, Jieyu Zhang, Eyal Orgad, Rahim Entezari, Giannis Daras, Sarah M. Pratt, Vivek Ramanujan, Yonatan Bitton, Kalyani Marathe, Stephen Mussmann, Richard Vencu, Mehdi Cherti, Ranjay Krishna, Pang Wei Koh, Olga Saukh, Alexander Ratner, Shuran Song, Hannaneh Hajishirzi, Ali Farhadi, Romain Beaumont, Sewoong Oh, Alex Dimakis, Jenia Jitsev, Yair Carmon, Vaishaal Shankar, and Ludwig Schmidt. Datacomp: In search of the next generation of multimodal datasets. CoRR, abs/2304.14108, 2023.
- Geng and Kolter [2023] Zhengyang Geng and J. Zico Kolter. Torchdeq: A library for deep equilibrium models. https://github.com/locuslab/torchdeq, 2023.
- Geng et al. [2021] Zhengyang Geng, Xin-Yu Zhang, Shaojie Bai, Yisen Wang, and Zhouchen Lin. On training implicit models. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 24247–24260, 2021.
- Geng et al. [2023] Zhengyang Geng, Ashwini Pokle, and J Zico Kolter. One-step diffusion distillation via deep equilibrium models. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
- Gilton et al. [2021] Davis Gilton, Gregory Ongie, and Rebecca Willett. Deep equilibrium architectures for inverse problems in imaging. IEEE Transactions on Computational Imaging, 7:1123–1133, 2021.
- Granas and Dugundji [2003] Andrzej Granas and James Dugundji. Fixed point theory. Springer, 2003.
- Heusel et al. [2017] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 6626–6637, 2017.
- Ho et al. [2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, pages 6840–6851, 2020.
- Istratescu [1981] V.I. Istratescu. Fixed Point Theory: An Introduction. Springer Dordrecht, Dordrecht, 1 edition, 1981. eBook Packages Springer Book Archive.
- Karras et al. [2017] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. ArXiv, abs/1710.10196, 2017.
- Karras et al. [2022] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. arXiv preprint arXiv:2206.00364, 2022.
- Kidger et al. [2020] Patrick Kidger, James Morrill, James Foster, and Terry J. Lyons. Neural controlled differential equations for irregular time series. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
- Kidger et al. [2021] Patrick Kidger, James Foster, Xuechen Li, and Terry J. Lyons. Neural sdes as infinite-dimensional gans. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, pages 5453–5463. PMLR, 2021.
- Kingma and Welling [2014] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
- Krizhevsky et al. [2012] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States, pages 1106–1114, 2012.
- Lan et al. [2019] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. Albert: A lite bert for self-supervised learning of language representations. In International Conference on Learning Representations, 2019.
- LeCun et al. [1998] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proc. IEEE, 86(11):2278–2324, 1998.
- Lin et al. [2023] Shanchuan Lin, Bingchen Liu, Jiashi Li, and Xiao Yang. Common diffusion noise schedules and sample steps are flawed. CoRR, abs/2305.08891, 2023.
- Liu et al. [2021] Lu** Liu, Yi Ren, Zhijie Lin, and Zhou Zhao. Pseudo numerical methods for diffusion models on manifolds. In International Conference on Learning Representations, 2021.
- Lu et al. [2022] Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, and Jun Zhu. Dpm-solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. arXiv preprint arXiv:2206.00927, 2022.
- Nichol et al. [2021] Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint arXiv:2112.10741, 2021.
- Nichol et al. [2022] Alexander Quinn Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob Mcgrew, Ilya Sutskever, and Mark Chen. GLIDE: Towards photorealistic image generation and editing with text-guided diffusion models. In International Conference on Machine Learning, pages 16784–16804, 2022.
- Peebles and Xie [2022] William Peebles and Saining Xie. Scalable diffusion models with transformers. CoRR, abs/2212.09748, 2022.
- Pokle et al. [2022] Ashwini Pokle, Zhengyang Geng, and J Zico Kolter. Deep equilibrium approaches to diffusion models. Advances in Neural Information Processing Systems, 35:37975–37990, 2022.
- Reid et al. [2021] Machel Reid, Edison Marrese-Taylor, and Yutaka Matsuo. Subformer: Exploring weight sharing for parameter efficiency in generative transformers. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 4081–4090, 2021.
- Rombach et al. [2022] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In IEEE Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022.
- Ronneberger et al. [2015] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015 - 18th International Conference Munich, Germany, October 5 - 9, 2015, Proceedings, Part III, 2015.
- Rudin [1976] W. Rudin. Principles of Mathematical Analysis. McGraw-Hill, 3 edition, 1976.
- Salimans and Ho [2021] Tim Salimans and Jonathan Ho. Progressive distillation for fast sampling of diffusion models. In International Conference on Learning Representations, 2021.
- Schuhmann et al. [2021] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. LAION-400M: open dataset of clip-filtered 400 million image-text pairs. CoRR, abs/2111.02114, 2021.
- Schuhmann et al. [2022] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, Patrick Schramowski, Srivatsa Kundurthy, Katherine Crowson, Ludwig Schmidt, Robert Kaczmarczyk, and Jenia Jitsev. LAION-5B: an open large-scale dataset for training next generation image-text models. In NeurIPS, 2022.
- Song et al. [2020] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2020.
- Song and Ermon [2019] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Proc. NeurIPS, 32, 2019.
- Song and Ermon [2020] Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. Proc. NeurIPS, 33:12438–12448, 2020.
- Song et al. [2021] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
- Vaswani et al. [2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017.
- Wallis [1685] J. Wallis. A Treatise of Algebra, Both Historical and Practical. John Playford, 1685.
- Watson et al. [2021] Daniel Watson, William Chan, Jonathan Ho, and Mohammad Norouzi. Learning fast samplers for diffusion models by differentiating through sample quality. In International Conference on Learning Representations, 2021.
- Yu et al. [2015] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. ArXiv, abs/1506.03365, 2015.
- Zhang and Chen [2022] Qinsheng Zhang and Yongxin Chen. Fast sampling of diffusion models with exponential integrator. arXiv preprint arXiv:2204.13902, 2022.
Supplementary Material
Appendix A Diffusion Models
As stated in Sec. 3.3, we provide an overview of diffusion models here in case any readers are not familiar with diffusion models.
Diffusion denoising probabilistic models add noise to a data sample drawn from a target data distribution . This noising process is executed in a series of steps, where each step adds a specific quantity of noise controlled by a variance schedule . At each step, the new data sample is generated from the previous one according to the distribution . The reverse diffusion process, or generative process, starts with a noisy sample from and aims to iteratively remove the noise to recover a sample from the original distribution . This reverse process is learned by a neural network, approximating the distribution as .
Appendix B Additional Qualitative Examples
We provide examples on CelebA-HQ, LSUN Church, FFHQ, and ImageNet in Figs. 8, 9, 10 and 11. For each dataset, we sample images using DDPM with 560 transformer block forward passes at resolution px. Note that the images are not cherry-picked. We also provide additional qualitative comparisons with DiT in Fig. 12.
Appendix C Description of an Adaptive Allocation Algorithm
FPDM allows for the adjustment of solution accuracy at different stages of the denoising process. As noted in Sec. 3.3, in addition to implementing straightforward heuristics such as “increasing” and “decreasing”, it supports using adaptive algorithms to allocate the forward passes across timesteps. We leave an in-depth investigation of adaptive algorithms to future work, but we give an example below to demonstrate how one such algorithm could work.
We start by considering , the difference between the last two solving solutions, as a metric of solution quality at each step. This aligns with our observation in Fig. 5(b), where decreases as more fixed point iterations (i.e. forward passes) are applied. Then a simple adaptive algorithm could be to simply set an error threshold and iterate the fixed point iteration process at each timestep continue until falls below . Then the global threshold controls the number of forward passes.
The only question left would be how to choose to match a given computational budget (i.e. a number of forward passes). For this, an online binary probing scheme can be employed: use binary search to select a , on which we perform inference for one batch of images. If the number of forward passes used to meet the threshold exceeds our budget, we increase in subsequent iterations; conversely, if the number is below our budget, we decrease . Note that only constant time of probing is needed to find a sufficiently good threshold at the beginning of the inference. This computational cost would be negligible, especially when sampling many batches of images.