Diffusion Posterior Sampling (DPS) provides a principled Bayesian approach to inverse problems by sampling from $p(x_0 \mid y)$. However, in practice, the goal of inverse problem solving is not to cover the posterior but to recover the most accurate reconstruction, where optimization-based diffusion solvers often excel despite lacking a clear probabilistic foundation. We introduce Local MAP Sampling (LMAPS), a new inference framework that iteratively solving local MAP subproblems along the diffusion trajectory. This perspective clarifies their connection to global MAP estimation and DPS, offering a unified probabilistic interpretation for optimization-based methods. Building on this foundation, we develop practical algorithms with a probabilistically interpretable covariance approximation, a reformulated objective for stability and interpretability, and a gradient approximation for non-differentiable operators. Across a broad set of image restoration and scientific tasks, LMAPS achieves state-of-the-art performance, including $\geq 2$ dB gains on motion deblurring, JPEG restoration, and quantization, and $>1.5$ dB improvements on inverse scattering benchmarks.
- Paper ID: 2510.07343
- Title: Local MAP Sampling for Diffusion Models
- Authors: Shaorong Zhang (UC Riverside), Rob Brekelmans (Vector Institute), Greg Ver Steeg (UC Riverside)
- Classification: cs.GR cs.AI eess.IV
- Publication Date/Venue: Preprint (Under review)
- Paper Link: https://arxiv.org/abs/2510.07343
Diffusion Posterior Sampling (DPS) provides a principled Bayesian approach to inverse problems by sampling from p(x0∣y). However, in practice, the objective of inverse problem solving is not to cover the posterior distribution, but to recover the most accurate reconstruction results. Optimization-based diffusion solvers typically excel at this task, despite lacking clear probabilistic foundations. This paper introduces Local MAP Sampling (LMAPS), a novel inference framework that iteratively solves local MAP subproblems along the diffusion trajectory. This perspective clarifies the connections between these methods and global MAP estimation and DPS, providing a unified probabilistic interpretation for optimization-based approaches. Building on this foundation, we develop practical algorithms featuring probabilistically interpretable covariance approximations, reformulated objectives with improved stability and interpretability, and gradient approximations for non-differentiable operators.
Diffusion models face two major challenges in inverse problem solving:
- Objective Mismatch: DPS aims to sample from the posterior distribution p(x0∣y), but the actual objective of inverse problem solving is to obtain the most accurate reconstruction, not diverse samples
- Missing Theoretical Foundation: Optimization-based diffusion solvers (such as Resample, DiffPIR, DCDP, etc.) demonstrate excellent performance but lack clear probabilistic theoretical foundations
- Practical Orientation: Inverse problem evaluation protocols typically compare against a single ground truth reference and do not reward coverage or diversity
- Theoretical Unification: There is a need to provide probabilistic interpretations for optimization methods and clarify their relationships with MAP estimation and DPS
- Performance Improvement: Achieve better reconstruction performance while maintaining theoretical foundations
- Theoretical Contribution: Proposes the Local MAP Sampling (LMAPS) framework that iteratively solves local MAP subproblems along the diffusion trajectory, analyzes its relationship with global MAP and DPS, and unifies TMPD and optimization-based inverse problem methods
- Methodological Contribution:
- Provides probabilistically interpretable covariance approximations to replace heuristic choices in existing solvers
- Introduces objective reformulation to achieve interpretable parameters and improved stability
- Develops gradient approximation strategies for non-differentiable operators
- Experimental Contribution: Validates the method on 10 image restoration tasks and 3 scientific inverse problems, achieving best results in 46/60 FFHQ/ImageNet cases, with ≥2dB PSNR improvements on motion deblurring, JPEG restoration, and quantization tasks
The inverse problem aims to recover an unknown image or signal x0∈Rn from a prior distribution π(x0) and noisy measurements y∈Rm:
y=H(x0)+z
where H(⋅):Rn→Rm is the forward operator and z∼N(0,σy2I) is measurement noise.
Global MAP directly optimizes the complete posterior:
x0MAP:=argmaxx0p(x0∣y)
Local MAP solves a conditional optimization problem at each time step t:
x0∗(t,xt,y):=argmaxp(x0∣xt,y)xt−Δt=g(x0∗,xt,ϵ),ϵ∼N(0,I)
- DPS: Uses conditional mean E[x0∣xt,y]
- DAPS: Samples from p(x0∣xt,y)
- LMAPS: Uses conditional mode argmaxp(x0∣xt,y)
Key Insight: DPS and LMAPS are equivalent only when p(x0∣xt,y) is Gaussian.
Employs isotropic approximation:
Σ0∣t≈SNRkI,SNR:=σt2αt2
Reformulates the original objective:
x0∗=argmin{kSNR∥x0−m0∣t∥2+σy21∥y−H(x0)∥2}
into:
x0∗=argmin{(1−μt)21∥x0−m0∣t∥2+μtk2∥y−H(x0)∥2}
where μt=σt2+k12σt2∈(0,1), achieving:
- Convex Combination Interpretation: Weights of (1−μt) and μt
- Automatic Annealing: Transitions from measurement-driven to prior-driven as σt2 decreases
- Numerical Stability: Avoids extreme SNR scaling
For non-differentiable tasks such as JPEG restoration and quantization, uses surrogate gradients:
∇x0∥y−H(x0)∥2≈2JH′(x0)T(H(x0)−y)
For quantization, adopts H′(x0)=x0, simplifying to:
∇x0∥y−H(x0)∥2≈2(H(x0)−y)
- Image Restoration: FFHQ 256×256 and ImageNet 256×256, using 100 test images each
- Scientific Inverse Problems: InverseBench dataset including fluorescence microscopy images (linear inverse scattering), GRMHD data (black hole imaging), fastMRI knee data (compressed sensing MRI)
- Image Restoration: PSNR, SSIM, LPIPS
- Scientific Inverse Problems: Primarily PSNR, supplemented with task-specific metrics
Includes DDNM, DDRM, ΠGDM, DPS, LGD, PnP-DM, FPS, MCG-diff, RedDiff, DAPS, DiffPIR, DCDP, DMPlug and 12 other methods
- Diffusion steps: typically 200
- Gradient update steps: 20-200 (task-dependent)
- Learning rate: 0.01-1.0 (task-related)
- Parameters k1: 0-10, k2: 0.01-30000
In Table 1, LMAPS achieves best performance in 49 out of 60 results:
- Motion Deblurring: 32.62 dB on FFHQ vs. 29.66 dB for DAPS (+2.96 dB)
- JPEG Restoration: 27.25 dB on FFHQ vs. 25.04 dB for ΠGDM (+2.21 dB)
- Quantization: 29.51 dB on FFHQ vs. 25.82 dB for ΠGDM (+3.69 dB)
In Table 2, LMAPS achieves best PSNR on all tasks:
- Linear Inverse Scattering (NR=360): 38.07 dB vs. 36.56 dB for RED-diff (+1.51 dB)
- Linear Inverse Scattering (NR=180): 37.19 dB vs. 35.41 dB for RED-diff (+1.78 dB)
- Linear Inverse Scattering (NR=60): 30.75 dB vs. 27.07 dB for RED-diff (+3.68 dB)
Figure 4 shows the trade-off between optimization steps and diffusion steps:
- Best performance typically observed at NFE=200-500
- Increasing optimization steps per diffusion step significantly improves performance
- LMAPS achieves similar performance to SITCOM (600 NFEs) with fewer computational resources
Table 3 shows LMAPS sampling time on deblurring tasks:
- LMAPS (200 diffusion steps, 100 optimization steps): 61 seconds/image, 30.88 dB
- DAPS (200 diffusion steps, 100 optimization steps): 110 seconds/image, 29.19 dB
- SITCOM (600 steps): 73 seconds/image, 29.93 dB
DPS and its variants solve inverse problems by directly sampling from the posterior distribution p(x0∣y), including methods such as TMPD, DDNM, ΠGDM, etc.
Methods such as Resample, DiffPIR, DCDP, DMPlug solve inverse problems through alternating denoising, optimization, and resampling, demonstrating excellent performance but lacking theoretical foundations.
Recent work has begun focusing on MAP estimation under diffusion priors, but is primarily limited to linear inverse problems.
- Theoretical Unification: LMAPS provides a unified probabilistic interpretation for optimization-based diffusion methods
- Performance Improvement: Achieves significant PSNR improvements on multiple tasks, particularly on challenging non-linear and non-differentiable tasks
- Computational Efficiency: Demonstrates better computational efficiency compared to existing methods
- Convergence: Local MAP sequences do not necessarily converge to global MAP
- Diversity: LMAPS may produce less output diversity compared to DPS
- Hyperparameter Sensitivity: Requires task-specific tuning of parameters k1 and k2
The paper notes that the critical role of global MAP in Bayesian inference has been greatly overlooked, and efficiently solving global MAP under diffusion priors remains an open challenge. While MAP may reduce output diversity by concentrating on a single mode, it provides higher determinism and better alignment with observed data.
- Significant Theoretical Contribution: First to provide clear probabilistic interpretation for optimization-based diffusion methods
- Comprehensive Experiments: Covers 10 image restoration tasks and 3 scientific inverse problems with complete experimental setup
- Obvious Performance Improvements: Achieves significant improvements of over 2dB on multiple challenging tasks
- Practical Method: Provides effective strategies for handling non-differentiable operators
- Clear Writing: Both theoretical analysis and method descriptions are well-presented
- Limited Theoretical Analysis Depth: While providing probabilistic interpretation, analysis of convergence and theoretical guarantees is relatively limited
- Hyperparameter Complexity: Requires task-specific tuning of multiple hyperparameters, potentially affecting method generalization
- Computational Overhead: While more efficient than some methods, still requires multiple gradient updates at each time step
- Evaluation Limitations: Primarily focuses on reconstruction quality with insufficient assessment of uncertainty quantification
- Academic Value: Provides new theoretical perspective for diffusion model applications in inverse problems
- Practical Value: Has direct application value in image restoration and scientific computing domains
- Inspirational: May inspire further research on MAP estimation for diffusion models
- Inverse problems requiring high-quality reconstruction rather than diversity
- Tasks involving non-differentiable forward operators (e.g., JPEG restoration, quantization)
- Inverse problem solving in scientific computing
- Real-time applications with certain computational efficiency requirements
The paper cites important works in diffusion models, inverse problem solving, and Bayesian inference, including original papers of key methods such as DPS, DAPS, and TMPD, providing a solid literature foundation for related research.