BELM: Bidirectional Explicit Linear Multi-step Sampler for Exact Inversion in Diffusion Models

The inversion of diffusion model sampling, which aims to find the corresponding initial noise of a sample, plays a critical role in various tasks. Recently, several heuristic exact inversion samplers have been proposed to address the inexact inversion issue in a training-free manner. However, the theoretical properties of these heuristic samplers remain unknown and they often exhibit mediocre sampling quality. In this paper, we introduce a generic formulation, \emph{Bidirectional Explicit Linear Multi-step} (BELM) samplers, of the exact inversion samplers, which includes all previously proposed heuristic exact inversion samplers as special cases. The BELM formulation is derived from the variable-stepsize-variable-formula linear multi-step method via integrating a bidirectional explicit constraint. We highlight this bidirectional explicit constraint is the key of mathematically exact inversion. We systematically investigate the Local Truncation Error (LTE) within the BELM framework and show that the existing heuristic designs of exact inversion samplers yield sub-optimal LTE. Consequently, we propose the Optimal BELM (O-BELM) sampler through the LTE minimization approach. We conduct additional analysis to substantiate the theoretical stability and global convergence property of the proposed optimal sampler. Comprehensive experiments demonstrate our O-BELM sampler establishes the exact inversion property while achieving high-quality sampling. Additional experiments in image editing and image interpolation highlight the extensive potential of applying O-BELM in varying applications.

Paper

Similar papers

Peer review

Reviewer HZYw7/10 · confidence 4/52024-07-12

Summary

This paper introduces a systematic framework, referred to as BELM, that is designed for the specific task of exact inversion of diffusion sampling. This framework encompasses several existing intuitive exact inversion samplers as its special cases. Subsequently, the authors derive an optimal variant within this framework via local truncation error minimization, named O-BELM, and investigate its theoretical properties, including zero-stability and convergence. Experimental results demonstrate that O-BELM can achieve exact inversion and high-quality sampling. The authors further explore its potential applications in downstream computer vision tasks.

Strengths

1 This paper represents the first attempt to formalize the task of exact inversion of diffusion sampling as a rigorous mathematical problem. It highlights that bidirectional explicit property is a sufficient condition for a general sampler to achieve exact inversion. 2 This paper introduces O-BELM as an efficient sampler intended for practical use. Additionally, the paper offers theoretical guarantees for the newly proposed sampler, albeit under mild assumptions. 3 This paper derived the form of local truncation error for general linear multistep samplers within the context of diffusion models. 4 A comprehensive range of experiments has been conducted to confirm that the O-BELM exhibits both exact inversion and high-quality sampling capabilities. 5 This paper is well-articulated and clearly presented.

Weaknesses

1 There is a typographical error in the caption of Table 3. 2 The information regarding the scheduler setting used in the experiments has not been included. 3 Some mathematical derivations in the paper are too succinct, making them difficult to follow. For instance, the transition from equation (30) to equation (31) is not straightforward as it involves a series of Taylor's expansions.

Questions

1 This paper examines the zero-stable property of the O-BELM algorithm and baseline samplers. However, I've noticed that there are other stability properties, such as Absolute-stability or Butcher-stability, for ODE solvers. I'm interested in knowing how the samplers discussed in this paper fare in regards to these stability terms. 2 I'm curious to understand how adopting this new sampler might affect the marginal distribution of the diffusion models. Could you elaborate on the potential impacts this could have?

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have acknowledged the unexplored semi-linear structure as a limitation in the design of the BELM. Also, the effects of utilizing O-BELM in advanced image editing like P2P remain unexplored, which is a limitation of O-BELM as well. Additionally, the impact of the paper is primarily confined to the sampling sub-area within the diffusion-based model community.

Reviewer eBdS6/10 · confidence 5/52024-07-12

Summary

This paper introduces a novel method for inverting real images into a diffusion model. It presents Bidirectional Explicit Linear Multi-step (BELM) samplers aimed at minimizing the mismatch in DDIM inversion.

Strengths

The proposed Bidirectional Explicit Linear Multi-step (BELM) samplers seems reasonable, and outputforms DDIM sampler.

Weaknesses

1. The paper lacks discussion and comparison with several related works such as NMG, EDICT, DirectingInv, ProEdit, ReNoise, and others. These works also aim to address the limitations of DDIM inversion through various proposed solutions. It is essential for the authors to provide a thorough discussion and comparative analysis with these existing methods. 2. The evaluation metrics used in the paper may not be sufficiently convincing. DirectingInv, for example, introduces several metrics specifically tailored for evaluating editing tasks, which are generally considered more reliable. Furthermore, DirectingInv also establishes a standard benchmark dataset for diffusion inversion tasks. It would be beneficial for the authors to conduct experiments using this benchmark dataset to ensure a comprehensive study and rigorous evaluation of their proposed method. 3. In terms of reconstruction performance compared to AE, EDICT, and BDIA, O-BELM does not demonstrate any improvement.

Questions

Please see in weakness

Rating

6

Confidence

5

Soundness

2

Presentation

3

Contribution

2

Limitations

N/A

Authorsrebuttal2024-08-13

Looking forward for further discussions.

Dear Reviewer [eBdS], Thank you again for your constructive feedback. Our research is the first to construct a theoretical well-posed IVP modeling for the general inversion problem in diffusion sampling, as outlined in **Equation 11** and **Proposition 1**. Based on this IVP view, we have innovatively identified the Bidirectional Explicit condition, a sufficient prerequisite for achieving a mathematically precise inversion, as stated in **Proposition 2**. This condition does not merely reduce inversion error, but ensures exactness. Building on this condition, we have developed a generic formula for the general exact inversion samplers, which we have termed as Bidirectional Explicit Linear Multi-step (BELM) samplers, as detailed in **Equation 14**. These samplers incorporate several previous methods as special cases, as noted in **Remark 1**. We have conducted a thorough analysis of the Local Truncation Error (LTE) within the BELM framework, as described in **Proposition 3** and **Corollary 1**, and have proposed the optimal variants, O-BELM, as delineated in **Proposition 4**. We have also demonstrated that O-BELM possesses the advantageous property of zero-stability, as outlined in **Proposition 5**, which ensures its robustness to initial values. Additionally, O-BELM exhibits the beneficial characteristic of global convergence, also stated in **Proposition 5**, which prevents O-BELM from diverging during sampling. In regard to downstream tasks, we have taken your insightful advice into account and conducted experiments on the **standard image editing benchmark**, **PIE-Bench**. Additionally, during our interactions with Reviewer [QGyL] and Reviewer [brf4], we have conducted further experiments to provide support for the effectiveness and robustness of our methods. These additional tests include the **ControlNet-based editing task** and the **style transfer task**, further showcasing the effectiveness and robustness of our approach. We sincerely hope to engage in further discussions with you. Thank you for your time and consideration!

Authorsrebuttal2024-08-14

Dear Reviewer [eBdS], we are eager for your feedback

Dear Reviewer [eBdS], Since the discussion period will end in a few hours, we will be online waiting for your feedback on our rebuttal, which we believe has addressed your concerns. We would highly appreciate it if you could take into account our response when having discussions with AC and other reviewers. Thank you so much for your time and efforts. Sorry for our repetitive messages, but we're eager to your feedback. Authors of Submission 2649

Reviewer brf46/10 · confidence 3/52024-07-12

Summary

The paper introduces the Bidirectional Explicit Linear Multi-step (BELM) sampler framework for exact inversion in diffusion models. The authors systematically investigate the Local Truncation Error (LTE) within the BELM framework and propose an optimal variant, O-BELM, which minimizes LTE for high sampling quality. Comprehensive experiments validate O-BELM's effectiveness in tasks like image reconstruction, editing, and interpolation.

Strengths

Novel Framework: The BELM framework generalizes existing exact inversion samplers and introduces a bidirectional explicit constraint to ensure exact inversion. Theoretical Rigor: The paper provides a thorough theoretical analysis of the Local Truncation Error (LTE) and the stability and convergence properties of the proposed samplers. Practical Applications: Demonstrates the practical potential of O-BELM in various tasks such as image reconstruction, editing, and interpolation.

Weaknesses

1. As for downstream applications of diffusion inversion, style transfer [1] should also be included. I encourage the author could apply this method to some style transfer to show the robustness and effectiveness of this framework. 2. Many punctuation marks at the end of the formulas are omitted by the authors. It is suggested to careful revise this article. 3. The comparative analysis of qualitative and quantitative results is deficient. It is suggested that the authors provide detail comparative analysis and conclusion in experiment section.

Questions

See weakness.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

This paper does not explore the integration of high-accuracy exact inversion samplers such as O-BELM with more powerful image editing pipelines. Additionally, the application of high-accuracy exact inversion samplers like O-BELM to tasks beyond image processing remains uninvestigated in this work.

Reviewer QGyL7/10 · confidence 3/52024-07-13

Summary

This manuscript introduces a generic formulation named ``Bidirectional Explicit Linear Multi-step'' (BELM) samplers for exact inversion of diffusion sampling. In contrast to DDIM Inversion, BELM inversion establishes the relationship between $x_{i-1}$, $x_i$, $x_{i+1}$, and $\epsilon_\theta(x_i, i)$. The authors prove that BELM is the generic version of EDICT and BDIA.

Strengths

1. The authors propose a new variable-stepsize-variable-formula (VSVF) linear multi-step scheme for exact inversion. 2. The paper investigates the Local Truncation Error (LTE) within the BELM framework. 3. O-BELM is designed by minimizing LTE to ensure minimized local error, and the experiments on COCO validate the exact inversion property of O-BELM.

Weaknesses

1. How about the computation cost and latency of 2-step O-BELM compared with BDIA and EDICT? 2. Lack of more applications such as ControlNet-based Image Editing exemplars, and more failure cases is better for analyzing the limitation of BELM. 3. The local error of O-BELM seems higher than BDIA. Besides, for BDIA, $\gamma$ is tuned for different quality and effect, when $\gamma=1$, BDIA seems zero-stable and global convergence.

Questions

Please see the weakness part.

Rating

7

Confidence

3

Soundness

3

Presentation

4

Contribution

3

Limitations

Yes.

Reviewer QGyL2024-08-12

Thank you for your rebuttal, my concern about experimental results has been well addressed. After reading the other comments and the corresponding rebuttal, I prefer to raise my score to accept.

Reviewer HZYw2024-08-14

After reading the careful response and other reviews, I will keep my score. Thank the authors for their response.

Authorsrebuttal2024-08-14

Concluding Response

Dear Reviewers, AC, SAC, and PC, We would like to begin by expressing our sincere gratitude for your engagement throughout the rebuttal process, which has significantly enhanced the quality of our paper. In response to reviewers, we have revised the following contents in our manuscript: - Typographical: The typographical errors in punctuation marks and captions have been corrected, as suggested by Reviewers [brf4] and [HZYw]. - Detailed Mathematical Derivation: A more comprehensive math derivation has been provided, as suggested by Reviewer [HZYw]. - Additional Experiments: In response to the advice of Reviewers [QGyL], [brf4], and [eBdS], we have incorporated further qualitative and quantitative comparative experiments in style-transfer, ControlNet-based image editing, and standard benchmark image editing to demonstrate the effectiveness of O-BELM. - Clarification: We have incorporated comprehensive explanations for several elements, including time costs (Reviewer [QGyL]), BDIA performance (Reviewer [QGyL]), reconstruction error (Reviewer [eBdS]), and time scheduler (Reviewer [HZYw]). We are immensely grateful for your feedback and suggestions for improving our manuscript. We kindly request your generous consideration of these points in the final evaluation of our paper. Sincerely, Authors of Submission 2649

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC