On Accelerating Diffusion-Based Sampling Processes via Improved Integration Approximation
A new technique for accelerating diffusion-based sampling processes such as EDM, DDIM, and DPM-Solver by optimizing the stepsizes in front of the gradients
摘要
评审与讨论
This paper proposes improved integration approximation (IIA) for diffusion model sampling. The core idea is to use past gradients in approximating the update term in diffusion ODEs. The parameters before past gradients are settled by minimizing MMSE to the fine-grained Euler approximation. The proposed IIA technique is only a sampling technique and does not require any modification of the pretrained model. Extensive experiments are conducted to illustrate the performance of this technique.
优点
Originality: The authors studies a sampling technique in diffusion models. The key idea is to approximate ODE more precise to generate better images. This work focuses on a small task but the originality is good.
Quality: The presentation of this work is quite clear.
Significance: The technique is useful for generating high-quality images, and has potential to be integrated into SOTA diffusion realizations. However, as I'm not an expert in empirical diffusion models literature, the performance should be more carefully evaluated by other reviewers.
缺点
Some parts of the algorithm can be more clearly discussed:
- In experiments (Table 2) the authors mostly use , that is, only use past two gradients to estimate the integration term. It is better to discuss why to choose such a parameter, probably with some numerical illustrations. In addition, only for BIIA-EDM is chosen, I wonder if it is because of bad performance. Choice of fine-grained timesteps is also not discussed.
- Personally I think the IIA idea resembles that of "Anderson Acceleration" in optimization literature, but that's not referred in the paper. The authors may gain some insights from it.
- The authors could illustrate more about the difference between BIIA and IIA. It seems IIA only decomposes the gradient form into two terms, and treat the coefficients of such two terms as optimization parameters so as to add flexibility. I wonder how the performance of IIA is compared to BIIA with larger , i.e., with more previous approximations included in MMSE optimization.
问题
Discussed above.
- In experiments (Table 2) the authors mostly use , that is, only use past two gradients to estimate the integration term. It is better to discuss why to choose such a parameter, probably with some numerical illustrations.
Thank you for this comment. In Appendix D.1 and D.2 of the revision, we explain through ablation studies that the setup does generally not improve the FID scores of the setup (see also our response to your Comment-5).
- In addition, is chosen only for BIIA-EDM over FFHQ64, I wonder if it is because of bad performance.
Thank you for the comment. For BIIA-EDM over FFHQ64, the setup performs slightly better than . We emphasize that the performance for is still much better than that of EDM (see Table 3 in appendix D.1 in the revision for detailed FID comparison).
- Choice of fine-grained timesteps is also not discussed.
Thank you for the comment. Please refer to our response to Comment-4 of reviewer SzoU.
- Personally I think the IIA idea resembles that of "Anderson Acceleration" in optimization literature, but that's not referred in the paper. The authors may gain some insights from it.
Thank you for this insightful comment. We note that when we were preparing the manuscript, we were not aware of "Anderson Acceleration" in the optimization literature. We have briefly studied "Anderson Acceleration" in the last few days. The Anderson Acceleration considers minimizing a weight summation of a number of recent residual errors w.r.t. the weighting factors. The weighting factors are constrained to have a unit summation. In our work, we only consider minimizing one single residual error in the MSE for the current timestep w.r.t. to a set of coefficients. To obtain the smallest residual error, we avoid placing any constraint on the set of coefficients. Another difference is that in our work, the residual errors to be optimized are different for different timesteps. On the other hand, the list of recent residual errors being optimized by Anderson Acceleration essentially focuses on a single objective function.
One future research direction would be to apply Anderson Acceleration to existing ODE solvers in diffusion process to see if it can perform better than IIA based ODE solvers.
- The authors could illustrate more about the difference between BIIA and IIA. It seems IIA only decomposes the gradient form into two terms, and treats the coefficients of such two terms as optimization parameters so as to add flexibility. I wonder how the performance of IIA is compared to BIIA with larger , i.e., with more previous approximations included in MMSE optimization.
Thank you for the comment. We have performed an additional experiment to evaluate the performance of BIIA-EDM and IIA-EDM with for CIFAR10. The results are summarized in Appendix D.2 of the revision. It is found that when increases from to , the differences in the FID scores of each sampling method are very small. The performance gain of IIA-EDM over BIIA-EDM is still significant for .
The paper proposes an improvement to the diffusion model integration procedure in order to make the sampling procedure faster. In particular, in order to accelerate the numerical time integration over an interval t_i to t_{i+1}, an optimization problem is solved that optimizes the weights over gradients evaluated at a coarse grid, in order to minimize the error with respect to the integration using a fine grid. Using the optimized weights, the inference procedure becomes faster by decreasing the number of steps, while the accuracy is kept consistent. The paper illustrates the performance of the algorithm, highlighting its computational gain, over several experiments.
优点
- The paper discusses an important and timely topic.
- The contributions of the paper are clearly described
- Extensive numerical experiments are provided to support the contributions.
缺点
-
The choice of several hyper-parameters is not clear. How does one choose the number and location of grid points for the coarse and find grids? What are the limitations? What will be the computational overhead if one has to search for suitable parameters? How does the computational gain vary as one changes these parameters?
-
There is no discussion or comparison with other numerical integration methods. Numerical integration is a classical topic. It will be helpful to include discussion about why the existing methods are not appropriate.
问题
Please see the comments above.
- The choice of several hyper-parameters is not clear. How does one choose the number and location of grid points for the coarse and find grids?
Thank you for the comment. See our response to Comment-4 of reviewer SzoU. In principle, a large value of would lead to a high accuracy of the integration approximation in the IIA based ODE solvers. On the other hand, a large value would require a high one-time computational overhead when performing MMSE. The additional ablation study in Appendix D.3 indicates that when is larger than a threshold (it is in Table~6 in the revision), the obtained FID scores and the averaged residual errors of the MSE remain roughly the same.
In all of our experiments, the fine-grained timesteps were evenly distributed within each time-interval (see Appendix D and Section 5). We do not suggest to search for the optimal fine-grained timesteps, which is time-consuming. The resulting performance gain likely is marginal for the IIA based ODE solvers.
- What will be the computational overhead if one has to search for suitable parameters? How does the computational gain vary as one changes these parameters?
Thank you for the comment. Assume for a given value, the fine-grained timesteps within each coarse time-interval are selected to be evenly distributed instead of searching. In general, the one-time computational overhead would increase linearly as M increases for a pretrained model with a set of timesteps. This is because the NFEs increase linearly as increases (see the evidence of Table 6 in the revision). In practice, one can stop searching for when the residual error of the associated MSE remains roughly the same when increases. As an example, Table 6 indicates the time spent for investigating the performance for in a sampling procedure of 19 NFEs for a pre-trained model is roughly 3 minutes, which is acceptable from a practical point of view.
- There is no discussion or comparison with other numerical integration methods. Numerical integration is a classical topic. It will be helpful to include discussion about why the existing methods are not appropriate.
Thank you for the comment. We have added a new paragraph (in blue and red color) at the beginning of Section 3 in the revision. In the new paragraph, we argue that the format of existing state-of-the-art diffusion ODE solvers (e.g., EDM and DPM-Solver++) is fixed irrespective of the number of time-steps and pre-trained models. It is likely that the coefficients of ODE solvers are not always optimal. We then explain the basic design principle for incorporating IIA into existing ODE solvers.
I appreciate the author's response and answering my questions.
Thank you for carefully checking our responses to your comments.
This paper proposed to use the improved integration approximation(IIA) technique to numerically solve the reverse ODEs that appears in the ODE-based sampling processes, including EDM, DDIM and DPM-Solver. The authors introduced numerical algorithms based on IIA and explain the algorithms from both the theoretical and experimental perspective.
-
Theoretically, algorithms based on IIA are designed for EDM, DDIM and DPM-Solver. In these algorithms, gradient at each step is estimated by a linear combination of several most-recent gradients, which is expected to be more accurate than to only use one or two most recent gradients. The coefficients in the linear combination are obtained by solving an optimization problem, minimizing the MSE to some highly accurate integral approximation.
-
Experimentally, they verify the effectiveness of these algorithms on EDM, DDIM and DPM-Solver. It is observed that the IIA-based algorithms improves the sampling qualities for low NFEs().
优点
-
This paper introduces new numerical algorithms for ODE-based sampling processes based on IIA. Although this paper focuses on EDM, DDIM and DPM-Solver, same idea applied to other ODE-based sampling processes as well.
-
The theoretical formulations of the algorithms are clear.
-
Experimental results are provided and they show the improvements of such algorithms in some cases(small NFEs).
缺点
-
The paper doesn't provide any theoretical result showing the effectiveness of the IIA-based algorithms.
-
According to the experiments, the improvement of the algorithms in FID only happen when NFE is small. It is also not clear why there is no significant improvement on FID with big NFE.
问题
Questions:
-
Comparing the integration approximation in and , why do we preserve the factor in but ignore the two step-size in when we derive ? If we include the two factors into the coefficients in , how would it affect the numerical results?
-
The MSE optimization is based on a high-accuracy integration approximation. How to choose the and fine-grained time-step in the high accuracy integration? Would the pre-trained time-step affect the parameters in the high-accuracy integration approximation?
Comment:
- Typo in the second integral in .
- The paper doesn't provide any theoretical result showing the effectiveness of the IIA-based algorithms.
Thank you for this comment. We agree that the paper does not provide a theoretical result quantifying to what extent the accuracy of integration approximation per timestep can be improved when applying the IIA technique to an existing ODE solver. On the other hand, we propose, for the first time in our paper, to compute the optimal stepsizes in an existing ODE solver by solving a set of quadratic optimization problems. In practice, one can easily verify the effectiveness of the IIA technique by checking if the residual errors of the quadratic functions after stepsize optimization are reduced notably or not without a need for computing the FID. Extensive results in our paper indicate that the sampling performance of DDIM, DPM-Solver++, and EDM can be improved significantly when NFE is small (e.g., less than 25). This implies that the coefficients in DDIM, DPM-Solver++, and EDM are not optimal at least for small NFEs even though they have strong mathematical motivations. The coefficients can advantageously be learned by data-driven methods such as the proposed IIA technique. We hope our work sheds light on opportunities for future research work on the design of more effective data-driven learning methods.
- According to the experiments, the improvement of the algorithms in FID only happen when NFE is small. It is not clear why there is no significant improvement on FID with big NFE.
Thank you for the comment. One major research challenge in diffusion models for the time being is how to improve the sampling quality when NFE is small. Such research work would lead to many industrial applications if the developed methods are effective. Our research work provides an efficient approach towards the above objective by solving a set of quadratic optmization problems for a pretrained model with a set of timesteps. The performance gain of our approach is obtained by improving the accuracy of the integration approximation per timestep by means of stepsize optimization. In principle, when the NFE is large, the integration approximation of existing ODE solvers is relatively accurate, leaving little room to improve the accuracy further. Therefore, there is no significant improvement in FID with large NFE. We have added a new paragraph (in red color) at the end of Section 6 in the revision to explain this.
- Regarding the factor in (9)
Thank you for the comments. In principle, the factor can be absorbed into each coefficient . We keep in the expression to make it more readable. Absorbing the two factors into each coefficient in (9) (which becomes (13) in the revision) will not affect the numerical results because after stepsize optimization, the residual error in the MSE should remain the same. The new optimal solution for each coefficient would simply be the original optimal solution scaled by .
- How to choose the and fine-grained time-step in the high accuracy integration? Would the pre-trained time-step affect the parameters in the high-accuracy integration approximation?
Thank you for the comments. In principle, a large value of would lead to a high accuracy of the integration approximation in the IIA based ODE solvers. On the other hand, a large value would also require a high one-time computational overhead when performing MMSE. In the revision, we performed an ablation study on how the parameter affects the performance of IIA-EDM for both 11 and 19 NFEs over CIFAR10. The results were summarized in Table 6 in the revised paper. It is found that when the value is above a threshold (it is in Table 6), the FID scores and the averaged residual errors remain roughly the same. This implies that in practice there is no need to make approach infinity. It is also found that the one-time computational overhead increases linearly with .
In all of our experiments, the fine-grained timesteps were selected to be evenly distributed within each time-interval for simplicity (see Appendix D and Section 5 for details). At the moment, we do not suggest searching for the optimal fine-grained timesteps within each time-interval. Firstly, one needs to come up with some criterion for the search procedure and it is not clear to us how to design such a criterion. Secondly, even if there exists a good criterion for the optimal fine-grained timesteps, we believe the performance gain is marginal for the IIA based ODE solvers.
Finally, we do not fully understand your final question "Would the pre-trained time-step affect the parameters in the high-accuracy integration approximation?". It would be great if you could elaborate on this question.
- Typo in the 2nd integral in (10)
Thank you for the comment. We have corrected the typo in the revision.
Thanks for the response. I really appreciate the discussions added in the revision.
Regarding my question , I was asking if the fine-grained timesteps are not uniform, how would it affect the close-form solution to ?
Overall, I agree with the authors that even if theoretical quantification of the improvement is not studied, the experimental improvement is significant and this paper can inspire future research along its direction. Based on this, I will willing to change my original rating to 6.
Thank you very much for carefully reading our responses to your comments and for raising your score up.
Regarding the performance for the case of non-uniform fine-grained timesteps, we think that if the number of fine-grained timesteps is sufficiently large and if the steps are properly distributed in each time-interval, the performance would also be good. The real question is what criterion should be used to optimize the non-uniform fine-grained timesteps. This is an interesting research question that we do not currently know the answer to.
This work proposes IIA solvers by estimating the coefficients of diffusion ODE solvers. Instead of using the previous analytical coefficients, this work use the ground truth solution (by solving with many steps) at each interval to estimate the coefficients with a MSE loss, and then further accelerate the sampling procedure of diffusion ODEs, which can be understood as "distill the coefficients".
优点
- The proposed method is easy to understand and the writing is easy to follow.
- The proposed method can be used for any previous ODE solvers and further improve them.
缺点
- Major:
- The design for IIA solvers seem to be lack of a principle. For example:
- In IIA-EDM, why is the "first gradient"? It is the gradient of what? Because the "2nd gradient" is the difference of two , it is natural to understand the "first gradient" is itself, but not . So what is the basic principle for designing it?
- Why DDIM use data-pred model and noise-pred model for IIA? As data-pred model can be equivalently rewritten to noise-pred model, it seems to be equivelent to a linear combination of and .
- The design for IIA solvers seem to be lack of a principle. For example:
- Minor:
- Table 1, Column 6, should be "IIA-DPM-Solver" instead of "IIA-PDM-Solver".
- As far as I known, the dpm variant for SD v2 is 2nd-order multi-step DPM-Solver++, not DPM-Solver. Please clarify the detailed setting.
问题
Please clarify the common design principle for IIA for different solvers. Is there any common principle such that we do not need to one-by-one design them?
====================
Thanks for the authors' revisions. I think the revised version addressed my concerns to some extent, so I raise my score to 6.
- The design for IIA solvers seem to be lack of a principle?
Thank you for the comment. We have refined our paper accordingly. In the revision, we have added a new paragraph at the beginning of Section 3 to explain the basic design principles for incorporating IIA into existing ODE solvers. Basically, we point out that the selected quantities in an IIA-based ODE solver are appropriate as long as the residual error of the MSE after stepsize optimization is reduced notably compared to that of the original ODE solver. When we incorporate IIA into DDIM, DPM-Solver++, and EDM by following the above guidance, we focus on a particular proper selection of quantities for each sampling method instead of finding the set of quantities that produces the smallest residual error. The particular design of IIA-DDIM, IIA-DPM-Solver++, and IIA-EDM in our paper is because the resulting residual errors are reduced notably compared to those of the original ODE solvers. We leave the research for finding the optimal set of quantities to future work.
- In IIA-EDM, why is the "first gradient"? It is the gradient of what? Because the "2nd gradient" is the difference of two , it is natural to understand the "first gradient" is itself, but not .
Thank you for this comment. In the revision for IIA-EDM (see (17) in the revised paper), we have changed "1st gradient" to "1st quantity" and "2nd gradient" to "2nd quantity" to avoid any ambiguity. It is noted that the original stepsizes in front of the two quantities are and at timestep . We argue that we can optimize the two stepsizes in front of the two quantities by MMSE. As we explained earlier, the basic design principle is to ensure that after stepsize optimization, the resulting residual error of the corresponding MSE is reduced. It is clear from Fig. 4 in the paper that the average residual error after stepsize optimization in IIA-EDM is reduced significantly compared to that of EDM.
- Why DDIM use data-pred model and noise-pred model for IIA? As data-pred model can be equivalently rewritten to noise-pred model, it seems to be equivalent to a linear combination of and .
Thank you for the comments. We have conducted additional experiments in the revision showing that IIA-DDIM with data-pred models alone also works well in practice. The results are summarized in Appendix D.4. In particular, we investigated the FID scores and the averaged residual errors of IIA-DDIM with one quantity and two quantities. The IIA-DDIM with one quantity only considers the difference of data-pred models at timestep while IIA-DDIM with two quantities considers both and at timestep . It is found that IIA-DDIM with two quantities performs slightly better than IIA-DDIM with one quantity w.r.t. both the FID scores and the averaged residual errors. We also show in Appendix D.4 (see (26)) that cannot be represented in terms of and .
- Table 1, Column 6, should be "IIA-DPM-Solver" instead of "IIA-PDM-Solver".
Thank you for pointing out the typo. We have corrected it in the revision to be "IIA-DPM-Solver++".
- As far as I known, the dpm variant for SD v2 is 2nd-order multi-step DPM-Solver++, not DPM-Solver. Please clarify the detailed setting.
Thank you for spotting the typos in our paper. It should be multi-step DPM-Solver++ instead of multi-step DPM-Solver. We have corrected the typos in the main paper and Appendix C which describes the design principle of IIA-DPM-Solver++.
Thanks for the authors' revisions. I think the revised version addressed my concerns to some extent, so I raised my score to 6.
Thank you very much for carefully checking the modifications introduced in the revised version and for raising your score up.
Dear reviewers,
Firstly, thank you for finding that our proposed IIA technique is innovative and promising for improving the performance of existing ODE solvers in diffusion models for small NFEs (e.g., less than 25).
(1): We have added a new paragraph (in blue and red color) in the beginning of Section 3 of the revised paper, studying the limitations of existing ODE solvers and explaining the design principle of the IIA technique. Basically, the selected quantities are appropriate when applying IIA to an existing ODE solver as long as the residual error of the MSE after stepsize optimization is reduced notably compared to that of the original ODE solver. (2): We have added a new paragraph (in red) at the end of Section 5, explaining why there is no large FID improvement when applying the IIA technique to an existing ODE solver for large NFEs. (3): We have performed a number of additional ablation studies of the IIA technique in Appendix D. In particular, we have studied how the parameter affects the performance of BIIA-EDM and IIA-EDM by using a pre-trained model for CIFAR10. We have also examined how the parameter affects the performance of IIA-EDM by using a pre-trained model for CIFAR10. It is found from the ablation study that once is larger than a threshold, the obtained FID scores and averaged squared residual errors remain constant. Finally, we have investigated the performance of IIA-DDIM with one quantity (i.e., using only estimated clean data) and two quantities (i.e., using both the estimated clean data and estimated Gaussian noises) using a pre-trained model for CIFAR10.
This paper focuses on the numerical simulation of probabilistic flow, which is the ODE version of the backward process of pre-trained diffusion generative model. A numerical integration method is proposed for accelerated generation speed, based on optimizing certain coefficients of the numerical integration scheme at each time step. Reviewers and AC reached a consensus that this idea is interesting despite of the existence of minor concerns. Therefore, acceptance is recommended. However, AC urges the authors to revise the paper where appropriate, based on the discussion with the reviewers.
为何不给更高分
Multiple reviewers raised concerns such as missing a theoretical comparison of the proposed method against existing numerical schemes, and I agree.
为何不给更低分
Reviewers unanimously recommended acceptance and I agree with their rationale.
Accept (poster)