Diffusion Priors for Variational Likelihood Estimation and Image Denoising

Jun Cheng, Shan Tan

Abstract

Real-world image denoising remains a significant challenge due to the complex, signal-dependent, and spatially correlated nature of noise in digital photography. While diffusion models offer powerful generative priors, existing integration methods often rely on simplistic noise assumptions or rigid data-consistency steps that degrade image quality. This paper introduces DiffusionVI, a novel framework that treats denoising as a joint inference problem. By combining Variational Bayes with the reverse diffusion process, DiffusionVI adaptively estimates noise statistics during reconstruction. The method achieves state-of-the-art performance on real-world datasets, including SIDD and FMDD, while demonstrating remarkable versatility across different noise types and resolutions.

Introduction

Most traditional image denoising research operates under the assumption of additive white Gaussian noise (AWGN). In this idealized scenario, noise is independent and identically distributed (i.i.d.). However, real-world photography involves "messy" noise that is often signal-dependent—appearing more prominently in darker regions—and spatially correlated due to camera sensor processing like demosaicking.

While pre-trained diffusion models have emerged as exceptional priors for clean image structures, applying them to real-world denoising is non-trivial. Existing approaches typically assume a fixed noise level or apply "hard" consistency steps that can lead to over-smoothing or artificial artifacts. DiffusionVI addresses this by modeling unknown, complex noise through an adaptive variational approach, allowing the model to "learn" the noise characteristics of an image as it reconstructs it.

Methodology: The DiffusionVI Framework

DiffusionVI reformulates the denoising task as a joint inference problem, alternating between estimating the clean image and the underlying noise variance. The framework consists of four primary technical components:

1. Adaptive Likelihood Estimation (ALE)

Rather than assuming a uniform noise distribution, the authors introduce an "independent, non-identically distributed" (i.ni.d.) likelihood model. By placing a Gamma hyperprior on the noise precision (the inverse of variance), the model gains the flexibility to treat every pixel's noise level as a latent variable to be inferred.

2. Variational Bayes Optimization

During each step of the reverse diffusion process, DiffusionVI executes a mini-optimization loop. This loop alternates between:

  • MAP Inference: Updating the estimate of the clean image based on the current noise estimate and the diffusion prior.
  • Variational Inference: Updating the estimate of the noise variance at every pixel.

This iterative refinement ensures that the diffusion model's generative power is guided by an increasingly accurate understanding of the specific noise present in the input.

3. Variance Rectification

To account for spatial correlation, where noise in adjacent pixels is often related, the framework employs a local Gaussian convolution on the estimated noise variance map. This rectification step smooths the noise estimate, ensuring it aligns with the physical realities of sensor noise.

4. Local Diffusion Priors

A key observation in this work is that diffusion models trained on low-resolution (LR) images (e.g., $256 \times 256$) effectively capture high-quality local texture priors. DiffusionVI leverages this by using LR-trained models to denoise high-resolution images directly. This avoids the need for complex patching strategies or retraining, as the U-Net architecture within the diffusion model learns structural statistics that are largely scale-invariant.

Experimental Evaluation

The authors evaluated DiffusionVI against several prominent real-world and synthetic datasets, including SIDD (smartphone images), PolyU, CC (natural sRGB), and FMDD (fluorescence microscopy). For synthetic testing, they utilized CBSD68 and Kodak datasets with Poisson and multiplicative Bernoulli noise.

Quantitative Results

DiffusionVI demonstrated superior performance across all major real-world benchmarks. On the SIDD validation set, it achieved a PSNR of 34.76 dB, significantly outperforming other diffusion-based competitors such as DDRM (33.14 dB) and GDP (27.65 dB). The method consistently yielded the highest average PSNR and SSIM, proving its robustness across diverse imaging conditions.

Qualitative Fidelity

Visually, DiffusionVI excels at removing severe noise while preserving intricate details. In tests involving text or complex fabric patterns, the method maintained sharp edges and fine textures that competing algorithms often blurred or distorted with color artifacts. Furthermore, the framework proved versatile enough to be adapted for image demosaicking, where it also outperformed specialized algorithms.

Discussion and Insights

The success of DiffusionVI stems from its "balancing act." The final reconstructed image is essentially a weighted average (a convex combination) of the noisy input and the diffusion model’s prediction. These weights are determined dynamically: in areas where the estimated noise variance is high, the system relies more heavily on the diffusion prior; where noise is low, it stays closer to the original data. This adaptive weighting prevents the model from over-relying on the prior in clean areas while allowing the prior to "fill in" details in heavily corrupted regions.

Limitations and Future Work

The primary bottleneck for DiffusionVI is computational efficiency. Like many diffusion-based methods, it is relatively slow, requiring approximately 230 seconds to denoise a single $256 \times 256$ image on an Nvidia 2080Ti. This is due to the 1,000 diffusion steps required for high-quality results; reducing the step count (e.g., to 250) currently results in a noticeable drop in quality.

Future research will focus on integrating advanced sampling strategies, such as GAN-distilled diffusion models or consistency models, to reduce inference time. Achieving real-time performance would make DiffusionVI a viable candidate for integration into consumer photography pipelines and professional imaging software.

Summary updated

BibTeX
@inproceedings{cheng2024diffusion,
  author = {Jun Cheng and Shan Tan},
  title = {{Diffusion Priors for Variational Likelihood Estimation and Image Denoising}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=OuKW8cUiuY},
}
Figure