Robust Posterior Diffusion-based Sampling via Adaptive Guidance Scale

Liav Hen, Tom Tirer, Raja Giryes, Shady Abu-Hussein · DOI

Introduction

Solving imaging inverse problems—such as super-resolution or deblurring—involves recovering a high-quality image $x$ from a degraded observation $y$. Diffusion models have emerged as powerful priors for this task, leveraging their ability to model the distribution of natural images. However, a persistent challenge in posterior sampling is balancing the prior (image realism) with data fidelity (matching the observation).

Existing methods typically rely on a manually tuned "guidance scale" hyperparameter. If this scale is misconfigured, the results either suffer from severe artifacts or fail to respect the input data. Furthermore, these scales often lack robustness across different diffusion step counts or noise levels, requiring tedious manual re-tuning for every new task or model configuration.

AdaPS: Alignment-Aware Scaling

To address these limitations, we introduce AdaPS (Adaptive Posterior diffusion Sampling), a hyperparameter-free approach that adaptively scales the guidance step. The core innovation lies in an "alignment-aware" scaling rule that determines the step size based on the agreement between different mathematical approximations of the likelihood gradient.

Overview of the AdaPS framework, illustrating how it adaptively weights the guidance step by comparing different likelihood approximations.

The method employs a two-surrogate strategy to decide how big of a step to take toward the data:

  1. Standard Gradient Estimate ($g_t$): A direction estimate similar to those used in prior works like DPS or $\Pi$GDM.
  2. MAP-based Residual ($d_t$): A newly proposed surrogate based on Maximum A Posteriori (MAP) estimation.

By calculating the alignment (the inner product) between these two surrogates, AdaPS determines the reliability of the guidance. When the surrogates agree on the direction, the algorithm takes a confident, larger step. When they disagree, it assumes the guidance is unreliable and takes a smaller, more conservative step. Crucially, AdaPS utilizes a Jacobian-free approximation for the magnitude term, ensuring the method remains computationally efficient and scalable.

Experimental Results

We evaluated AdaPS on the CelebA-HQ and ImageNet-256 datasets across three main tasks: 4x super-resolution, Gaussian deblurring, and motion deblurring, under various noise conditions.

Quantitative comparison of AdaPS against baselines on ImageNet-256 and CelebA-HQ, showing the trade-off between PSNR and LPIPS.

As shown in the performance plots, AdaPS consistently achieves state-of-the-art perceptual quality, often reaching the lowest LPIPS scores (a metric for human-like quality) while maintaining competitive PSNR. Unlike baseline methods that often require re-tuning for different noise levels or step counts, AdaPS adapts automatically. Notably, it resolves the "step count paradox" where increasing diffusion steps previously led to performance degradation in methods like $\Pi$GDM; with AdaPS, performance remains stable or improves with more refinement steps.

Qualitatively, AdaPS produces sharper textures in hair, skin, and complex backgrounds, avoiding the "ghosting" or over-smoothing artifacts common in other posterior sampling techniques. It effectively finds the "sweet spot" between realism and fidelity without human intervention.

Conclusion and Future Directions

AdaPS represents a significant step toward robust, "out-of-the-box" inverse problem solving with diffusion models. By replacing manual tuning with data-driven adaptive scaling, it simplifies the deployment of these models for various restoration tasks. While currently optimized for pixel-domain diffusion, future work includes extending this framework to Latent Diffusion Models (LDMs) and further refining the theoretical derivation of the empirical bias correction factors used in the current implementation.

Summary updated

BibTeX
@article{hen2026robust,
  author = {Liav Hen and Tom Tirer and Raja Giryes and Shady Abu-Hussein},
  title = {{Robust Posterior Diffusion-based Sampling via Adaptive Guidance Scale}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure