Divide-and-Conquer Posterior Sampling for Denoising Diffusion Priors

Recent advancements in solving Bayesian inverse problems have spotlighted denoising diffusion models (DDMs) as effective priors. Although these have great potential, DDM priors yield complex posterior distributions that are challenging to sample. Existing approaches to posterior sampling in this context address this problem either by retraining model-specific components, leading to stiff and cumbersome methods, or by introducing approximations with uncontrolled errors that affect the accuracy of the produced samples. We present an innovative framework, divide-and-conquer posterior sampling, which leverages the inherent structure of DDMs to construct a sequence of intermediate posteriors that guide the produced samples to the target posterior. Our method significantly reduces the approximation error associated with current techniques without the need for retraining. We demonstrate the versatility and effectiveness of our approach for a wide range of Bayesian inverse problems. The code is available at \url{https://github.com/Badr-MOUFAD/dcps}

Paper

References (67)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer GK7d7/10 · confidence 3/52024-07-01

Summary

The topic of using a pre-trained diffusion model as a prior for a Bayesian posterior sampling problem is considered. This formulation is compelling (particularly for images) as it combines the powerful generative capacities of large-scale diffusion models with the coherent inference under certainty provided by Bayes’ theorem. The paper refines the diffusion posterior sampler of Chung et al by replacing a point mass approximation with a variational Gaussian approximation to the conditional transition distributions. *Chung et al: Diffusion posterior sampling for general noisy inverse problems, ICLR, 2023*

Strengths

The paper tackles an interesting problem and is mathematically compelling as the point mass approximation is likely to be crude in practice. The experiments are practical and varied - investigating various likelihoods (linear+Gaussian, Poisson, JPEG decoding). And the results for the introduced sampler are promising.

Weaknesses

The paper is (perhaps understandably quite dense), in particular, I think some more clarity on the use of twisted potentials and how this differs (or to what extent) from the Chung et al approach would aid the reader. The resulting algorithm is somewhat complex and it is not clear how sensitive the algorithm is to the choice of twisting potential and hyperparameters, in particular the number of internal Langevin (M) and VI gradient steps (K). Additionally, as noted by the authors, the choice of twisting potentials considered is bespoke in that they have to be specified for each problem. A more general-purpose posterior sampling pipeline that fully separates likelihood and data specification from (automated) posterior sampling would be highly desirable. Although understandably as a future direction in the considered work. *Chung et al: Diffusion posterior sampling for general noisy inverse problems, ICLR, 2023*

Questions

Would MAP estimation (over posterior sampling) also be feasible/performative in this setting? And perhaps computationally easier? It's not clear to me how exactly the proposed DCPS algorithm is "divide-and-conquer". Over which axis does it divide? And which computational bottleneck does this speed-up? How does this compare to other computational bottlenecks? (I.e. is it dominating)

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have addressed key limitations of the work. I see no potential for negative societal impact.

Reviewer af3x7/10 · confidence 4/52024-07-04

Summary

This work proposes a new posterior sampling scheme for unconditional diffusion models. The sampling algorithm, named divide-and-conquer posterior sampling (DCPS), combines Langevin Monte Carlo and Gaussian variational inference to operate the transitions between noise levels along the reverse diffusion process. The authors apply their sampling scheme to several inverse problems and compare their results with several previous works. DCPS seems to improve upon these works, both quantitatively and qualitatively.

Strengths

* The manuscript is well written for the most part. * The subject of posterior sampling algorithms in diffusion models is interesting and relevant for the ML and scientific communities. * The proposed algorithm seems sound, albeit too complex in my opinion (see weaknesses). * The experiments are well described and the results are clearly presented. * The code is provided, although it is not documented and instructions to reproduce experiments are minimal.

Weaknesses

* The proposed method, although presented quite differently, is very similar to the predictor-corrector approach proposed by Rozet et al. [1], where the predictor is a classic DDPM/DDIM step which approximates the transition from one noise level to the next, while the corrector is a number of Langevin Monte Carlo (LMC) iterations. The similarity is striking, especially when noticing that the DDPM step is a Gaussian approximation of the transition. The authors do not discuss nor mention Rozet et al. [1]. The authors should highlight the differences between their posterior sampling algorithm and the one of Rozet et al. [1] and compare their results. * Even if it were correct, the link between diffusion posterior sampling and Feynman-Kac (FK) models in Section 2 is not relevant and confusing. Unlike the authors state (line 110), the overwhelming majority of diffusion/score-based posterior sampling literature uses either a Markov chain or a stochastic differential equation (SDE) representation. Furthermore, this link with FK models is not even leveraged as part of the method, which only relies on Markov chain properties. * As mentioned by the authors, intermediate potentials should be designed for each problem, which could be difficult for some inverse problems. In addition the convolution of these potentials with the bridge kernel (Eq. (3.6)) should be (cheaply) tractable and differentiable. * There are two aspects to the proposed algorithm: the LMC iterations and the intermediate potentials/posteriors. It is hard to assess the contribution of each aspect in the results. My hypothesis is that most of the quality gains are due to the LMC iterations. My rationale is that the potentials $g^l_m(x_m) = \mathbb{E} [ g_{k_l}(x_{k_l}) \mid x_m ]$ are actually user-defined potentials, just like $g_m(x_m) = g_0(x_m)$ or $g_m(x_m) = \mathbb{E} [ g_0(x_0) \mid x_m ]$. As long as they converge to $g_0$ when $m \to 0$, the algorithm should work. ### Comments * I am not sure to understand the reference to "divide-and-conquer" from dynamic programming. * At line 80, $t$ is undefined. * At line 143, Finzi et al. [2] are the first to propose to use the Jacobian of the denoiser to estimate the covariance. Boys et al. [3] later proposed an approximation using the diagonal of the Jacobian. * In Algorithm 1, I think there is a typo in "for $j = \ell + 1 - 1$ to $\ell$ do". * Table 5 should be Figure 5. * At line 232, "resort to a optimizing" -> "resort to optimizing". * At line 258, $K$ is not defined in the main text. * At line 334, if I understand correctly DCPS is not limited to linear inverse problems. [1] Rozet et al. "Score-based Data Assimilation". In Advances in Neural Information Processing Systems. 2023. [2] Finzi et al. "User-defined Event Sampling and Uncertainty Quantification in Diffusion Models for Physical Dynamical Systems". In Proceedings of the 40th International Conference on Machine Learning. 2023. [3] Boys et al. "Tweedie Moment Projected Diffusions for Inverse Problems". 2024.

Questions

See weaknesses.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

See weaknesses.

Reviewer xni94/10 · confidence 5/52024-07-10

Summary

This paper aims to solve the inverse problem within the Bayesian framework. The authors propose DCPS, which approximately samples from the posterior. DCPS creates a sequence of intermediate posterior distributions to approach the target posterior step by step. The authors showcase the effectiveness of DCPS on inverse problems like image restoration and trajectory prediction.

Strengths

1. Good empirical results on Gaussian mixture problems. 2. DCPS is computationally efficient.

Weaknesses

1. No justification for the design of the intermediate potentials. They are approximations of $g^*_k$ defined in line 122. But why are they good approximations? The manuscript will benefit from a theoretical analysis of the approximation error. 2. In general, it is unclear how to design intermediate potential for nonlinear forward models. DCPS seems limited to linear problems. 4. Only LPIPS is reported in the image restoration tasks. The experiment section would benefit from adding evaluation metrics such as PSNR and SSIM. 5. DCPS generates pseudo observations in a similar way to the prior work FPS [1]. I believe this is an important baseline to discuss and compare. 6. Overall, the paper is hard to parse, with many long sentences, redundant phrases, and inconsistent notation usage. Just list some of the issues here. I believe a major revision is needed to make this paper more accessible. 1. Typos in Algorithm 1: "$X^l_{l+1}\leftarrow X_l+1$" and"for $j=l+1-1$ to $l$" 2. $l$ is used in subscript and superscript together, which is very confusing. For example, $X^l_{l+1}$ in Algorithm 1, $\pi^l_{k_l}$ in Eq. (3.4). 3. Line 66: remove the comma before "and illustrate" 4. Line 64: "describe theoretically" -> "theoretically describe" 5. Line 70: "generate efficiently" -> "efficiently generate" 6. Line 158: a comma is missing before "we find" 7. The authors use $N(x;\mu, \Sigma)$ to represent the Gaussian density. I suggest the conventional notation $\mathcal{N}$ from the literature for better consistency with the field. 8. Calling $g_k$ as the potential is confusing when it's actually a likelihood function. 9. The use of upper case $X$ and lower case $x$ is confusing throughout the paper. For example, in line 85, it's $X_k=x_k$. 10. Redundant phrases and long sentences should be revised for clarity. For example, line 62-71, line 96-99, line 151-153, line 160-163. 11. Line 102: "where $\mathcal{Z}=\int g_0(x_0)p_0(dx_0)$" -> "where $\mathcal{Z}=\int g_0(x_0)p_0(x_0)dx_0$" 12. Incorrect inline citations throughout the paper. [1]: Dou, Zehao, and Yang Song. "Diffusion posterior sampling for linear inverse problem solving: A filtering perspective." _The Twelfth International Conference on Learning Representations. 2024.

Questions

1. the unadjusted Langevin is a biased sampler for any finite time step. Why not include the Metroplis-Hasting correction? 2. Why is L much smaller than n? How does the value of L affect the final performance? 3. In the image restoration experiments, the authors claim to use only 5 Langevin steps. It is very unlikely that the algorithm is sampling from the right distribution within 5 Langevin steps. Langevin Monte Carlo is known for slow convergence for high-dimensional problems, which takes hundreds of steps even on simple low-dimensional problems. How can the proposed DCPS work with only 5 Langevin steps?

Rating

4

Confidence

5

Soundness

2

Presentation

1

Contribution

2

Limitations

1. Problem-specific intermediate potentials must be designed, limiting DCPS's application from a wider range of inverse problems. 2. While the goal of this paper is posterior sampling, the proposed DCPS is a biased sampler that does not converge to the true posterior.

Authorsrebuttal2024-08-07

[1] Wang, Y., Yu, J. and Zhang, J. Zero-shot image restoration using denoising diffusion null-space model. International Conference on Learning Representations (ICLR) 2023. [2] Kawar, B., Elad, M., Ermon, S. and Song, J., 2022. Denoising diffusion restoration models. Advances in Neural Information Processing Systems. [3] Zhang, G., Ji, J., Zhang, Y., Yu, M., Jaakkola, T. and Chang, S., 2023, July. Towards Coherent Image Inpainting Using Denoising Diffusion Implicit Models. In International Conference on Machine Learning (ICML) 2023 [4] Song, J., Vahdat, A., Mardani, M. and Kautz, J., 2023, May. Pseudoinverse-guided diffusion models for inverse problems. In International Conference on Learning Representations. [5] Dou, Z. and Song, Y., 2024. Diffusion posterior sampling for linear inverse problem solving: A filtering perspective. In The Twelfth International Conference on Learning Representations. [6] Cardoso, G., Le Corff, S. and Moulines, E., 2023. Monte Carlo guided Denoising Diffusion models for Bayesian linear inverse problems. In The Twelfth International Conference on Learning Representations. [7] Trippe, B.L., Yim, J., Tischer, D., Baker, D., Broderick, T., Barzilay, R. and Jaakkola, T.S., Diffusion Probabilistic Modeling of Protein Backbones in 3D for the motif-scaffolding problem. In The Eleventh International Conference on Learning Representations. [8] Durmus, Alain, and Eric Moulines. "Nonasymptotic convergence analysis for the unadjusted Langevin algorithm." (2017): Annals of Applied Probability, 1551-1587. [9] Lamberton, Damien, and Gilles Pages. “Recursive computation of the invariant distribution of a diffusion.” (2002): Bernoulli, 367-405.

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

Summary

This paper presents a sampling algorithm (DCPS) that leverages diffusion models as priors to solve linear inverse problems. DCPS defines and recursively solves a series of intermediate inverse problems that converge to the original inverse problem. In each iteration, a sample is drawn from the next posterior distribution following a combination of Langevin dynamics and an inhomogeneous Markov chain. DCPS shows nice results in synthetic inverse problems and also image restoration tasks.

Strengths

- DCPS is well-motivated by intuition to mitigate the approximation error of the conditional distribution, which is supported by solid theoretical evidence in Proposition 3.1. - The experimental results on synthetic data validate the claim of accurate posterior sampling.

Weaknesses

The experiments on images are not convincing enough. DCPS performs slightly better than DPS and DDRM, while recent works like DDNM[1], DiffPIR[2], and ReSample[3] have claimed much better posterior sampling quality on image restoration tasks but are not compared as baselines. [1] Yinhuai Wang, Jiwen Yu, and Jian Zhang. Zero-shot image restoration using denoising diffusion null-space model. ICLR, 2023. [2] Yuanzhi Zhu, Kai Zhang, Jingyun Liang, Jiezhang Cao, Bihan Wen, Radu Timofte, and Luc Van Gool. Denoising diffusion models for plug-and-play image restoration. CVPR, 2023. [3] Bowen Song, Soo Min Kwon, Zecheng Zhang, Xinyu Hu, Qing Qu, Liyue Shen. Solving Inverse Problems with Latent Diffusion Models via Hard Data Consistency. ICLR, 2024.

Questions

- It is noted for the Gaussian mixture experiments that DCPS does not beat MCGDiff in terms of accurate posterior sampling. However, it outperforms MCGDiff by a large margin in image restoration tasks. What are the pros and cons of DCPS compared to MCGDiff? And what makes synthetic inverse problems and image restoration tasks so different? - Would it be possible to apply DCPS to more realistic inverse problems in other domains? What are the possible limitations of this work when adapted to more complicated inverse problems?

Rating

7

Confidence

3

Soundness

3

Presentation

2

Contribution

4

Limitations

The authors address the limitations and provide possible future directions in their paper.

Reviewer af3x2024-08-07

Thank you for your response and taking the time to implement [1]. I do not agree with your interpretation of SDA [1]. Even though $\hat{p}(y \mid x_t)$ is an approximation of $p(y \mid x_t)$, it is also a likelihood function and therefore defines a series of intermediate posteriors $\hat{p}(x_t \mid y)$. The DDIM step (predictor) is an approximation of the transition from $\hat{p}(x_t \mid y)$ to $\hat{p}(x_{t - \Delta} \mid y)$ and the $C$ Langevin steps (corrector) "ensure" a sample from $\hat{p}(x_{t - \Delta} \mid y)$. In this light, DCPS and SDA's sampling algorithm are quite similar, especially regarding the Langevin steps which are used to "correct" the transition errors. These similarities should be discussed in the main text. There are also major differences, obviously. Notably, 1. The likelihood function $g^l_m(x_m)$ is chosen as $\mathbb{E}[g_{k_l}(x_{k_l}) \mid x_m]$ instead of a (very) rough approximation to $\mathbb{E}[g_0(x_0) \mid x_m]$. 2. The "predictor" step spans several diffusion steps and consists in a sequence of variational Gaussian approximations, which is indeed quite different from a DDIM step. Concerning the choice of potentials, I very much agree that bad potentials could lead to unstable sampling. However, I still believe that most of the quality gains of DCPS are due to the Langevin steps and not to the potentials $g^l_m(x)$. My intuition is that potentials $g_m(x)$ defined as in Eq. (3.9), (3.10) or (3.11) but with $m$ instead of $k_l$ would work nearly as well.

Authorsrebuttal2024-08-08

Thank you for taking the time to respond to our rebuttal. Regarding your first point, we agree that SDA also defines a sequence of posterior distributions that are sampled sequentially. However, except for this similarity, our work differs significantly from [SDA]: First, regarding the number of elements of this sequence (the number $L$), second and more importantly, regarding how these distributions are defined and the way we sample from them. In the revised version of the paper we will make sure to highlight these two distinctions and discuss SDA. Furthermore, let us still argue that even the way we use Langevin is different. More precisely, as you have said, SDA proceeds by first drawing a sample from an approximate transition of $\hat{p}(x_t | y)$ to $\hat{p}(x_{t-\Delta} | y)$, then proceeds to correct this sample by running Langevin steps targeting the same distribution $\hat{p}(x_{t-\Delta} | y)$. On the other hand, in DCPS, when we sample from a transition within a block, *we never correct* the sample using Langevin steps. Langevin steps happen *only* at the end of the block and their purpose is the following; first, right before the end of the block we draw an approximate sample from the transition that goes from $\pi^\ell \_{k_\ell + 1}$ to $\pi^\ell \_{k_\ell} = \pi \_{k_\ell}$ using our variational approach. Afterwards, we run Langevin steps but their purpose is not to correct to ensure that it is distributed according to $\pi \_{k_\ell}$. Their purpose is to ensure that the sample is distributed according to the next distribution $\pi^{\ell - 1} \_{k_\ell}$, which is the initial distribution of the next block, as per eq. 3.4. As such, the Langevin steps in our algorithm are not used as correction steps but are rather used to transition to a different posterior (that has the same prior). In our imaging experiments we only use a small number of Langevin steps overall (5 * L in total) so as to have a lower computational cost than the main competitors. We have found that even using no Langevin steps in between the blocks still performs well. Increasing the number of steps further improves the performance. In the table below you can find the LPIPS results on FFHQ with the Half mask and 0.05 observation std. DCPS-M refers to our algorithm with $M$ Langevin steps in between the blocks (the other parameters are similar to those used in our main experiments). We also compare with SDA with no Langevin steps. As is show, DCPS is still competitive when no Langevin steps are used. We list some other competitors from the table in the PDF for comparison. | Method | DCPS-0 | DCPS-5 | DCPS-50 | DCPS-500 | SDA-0 | SDA-2 | DDNM | FPS | MCGDIFF | |-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|-----------| | LPIPS | 0.22 | 0.20 | 0.20 | **0.19** | 0.28 | 0.22 | 0.22 | 0.28 | 0.36 | As stated in our rebuttal, we firmly believe that the main gains stem essentially from our choice of potentials and the KL minimization step. The Langevin steps help further improve the performance. For your second point: “My intuition is that potentials $g_m(x)$ defined as in Eq. (3.9), (3.10) or (3.11) but with $m$ instead of $k_\ell$ would work nearly as well.” We have already experimented with the setting you suggest and found that it doesn’t compare favorably with DCPS. Finally, we would like to highlight that our procedure introduces several novel aspects, and our empirical results demonstrate that it performs well against nine competitors (as shown in the PDF in the main rebuttal), including some well-established methods. Given these findings, we are genuinely surprised by your rating of our contribution (1/4) and the resulting recommendation for weak rejection. We would greatly appreciate if you could provide additional clarification regarding your decision.

Reviewer af3x2024-08-08

Thank you for your answer. > As such, the Langevin steps in our algorithm are not used as correction steps but are rather used to transition to a different posterior (that has the same prior). I see. That is a subtlety I did not catch. > As is show, DCPS is still competitive when no Langevin steps are used. Thank you for running this additional experiment. This indeed supports your claims. My intuition failed me it seems. > Given these findings, we are genuinely surprised by your rating of our contribution (1/4) and the resulting recommendation for weak rejection. We would greatly appreciate if you could provide additional clarification regarding your decision. My rating was mainly influenced by my concern of the similarities between DCPS and [1]. But thanks to your clarifications, I now see that they have less in common than I had initially taught. The additional results in the attached PDF also strengthen your claims of improved sampling. A remaining concern would be the relative complexity of the method, but this is quite minor. Based on my current assessment, I now argue for acceptance and will therefore raise my score to 7 (previously 4).

Authorsrebuttal2024-08-13

Thank you very much for taking the time to review our manuscript and especially for your engagement during the rebuttal period. We believe that your comments and suggestions have significantly improved the quality of our paper.

Reviewer vN6C2024-08-11

Thanks for your detailed response to my questions. The new experimental results have resolved my previous concerns. I appreciate the discussion and clarification of the pros and cons of DCPS compared to MCGDiff. The potential applications of DCPS to realistic inverse problems are also intriguing. Overall, my opinion on this work has not changed so I will keep my rating the same (Accept).

Authorsrebuttal2024-08-13

Thank you for reviewing our additional experimental results and for your feedback, which has been instrumental in improving the paper.

Reviewer GK7d2024-08-12

Thanks to the authors for their thoughtful rebuttal. I think the revision would be improved by more clearly discussing that the divide-and-conquer strategy arises from solving $L$ simpler posterior problems rather than the straight-to-time-zero conditional distribution approximated by DPS. Overall, I think this is a nice paper tackling an interesting and modern problem (using a large pre-trained model as a prior) with very strong benchmarks. I have increased my score to a 7 (previously 6).

Authorsrebuttal2024-08-13

Thank you for your helpful feedback and suggestions. We will clarify the intuition in the revision of the paper. We’re glad you found our work valuable, and we appreciate the improved score. Your input has been very helpful in improving the paper.

Reviewer xni92024-08-13

Thank the authors for the response. I appreciate the clarification on the intermediate potentials, FPS, and MH correction. I've raised the score to 4. However, there are a few major questions or concerns that are ignored or not directly responded to. 1. DCPS seems limited to linear problems except for JPEG. The generic design principle of intermediate potential in the general rebuttal makes sense for the linear forward model, but it is hard to justify its use in nonlinear problems. 2. Question 3 is not directly responded to. The concern is that the algorithm with only 5 LMC steps is uncontrolledly biased. It behaves more like an optimization procedure rather than a sampling algorithm. 3. Relying on a single metric is not a good practice, as one may easily tune the algorithm to overfit it. The point of using multiple metrics is to avoid overfitting to a single metric. Of course, no metric is perfect. A good LPIPS value does not reflect sampler performance either. Saying PSNR or SSIM is not a perfect metric does not justify the problem of using LPIPS only for the experiments. Also, PSNR and SSIM are good for SR and denoising problems, which are heavily studied in this paper.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC