Listening to the noise: Blind Denoising with Gibbs Diffusion

David Heurtel-Depeiges, Charles Margossian, Ruben Ohana, Bruno Régaldo-Saint Blancard

Gibbs Diffusion (GDiff) is a novel framework designed to solve the "blind denoising" problem—cleaning a signal when the noise's strength or structure is unknown. By alternating between a conditional diffusion model to recover the signal and a Monte Carlo sampler to estimate noise parameters, GDiff provides a mathematically rigorous way to simultaneously reconstruct data and characterize interference. This approach outperforms state-of-the-art denoisers in both natural imaging and complex cosmology tasks.

The Challenge of Blind Denoising

In classical signal processing, denoising algorithms usually assume exact knowledge of the "dirt" corrupting the data—for example, assuming white Gaussian noise with a specific standard deviation ($\sigma$). In the real world, this is rarely the case. "Blind denoising" is the challenge of cleaning a true signal ($x$) from an observation ($y$) when the noise parameters ($\phi$) are entirely unknown.

While modern diffusion models are incredible at denoising, they typically require the noise level to be fixed and known during the sampling process. Guessing the noise level incorrectly often leads to failed reconstructions. This creates a chicken-and-egg problem: you need the noise parameters to find the signal, but you need the clean signal to accurately measure the noise.

The Gibbs Diffusion (GDiff) Method

To overcome this limitation, the authors introduce GDiff, which treats both the signal ($x$) and the noise parameters ($\phi$) as random variables within a unified Bayesian framework.

Graphical model illustrating the dependencies between the clean signal, noise parameters, and the final observation.

The core of the method is a Gibbs sampler that iterates through two main steps:

  1. The Diffusion Step: Given the current estimate of the noise parameters ($\phi$), the algorithm uses a conditional diffusion model to sample a possible clean signal ($x$). Unlike standard diffusion models trained on a single noise level, this model is "noise-aware" and takes $\phi$ as a conditioning input.
  2. The HMC Step: Given the current estimate of the signal ($x$), the "noise" is simply the residual ($\epsilon = y - x$). The algorithm then uses Hamiltonian Monte Carlo (HMC) to sample the parameters $\phi$ that best describe that residual.

The secret to GDiff's success is that the diffusion model acts as a natural posterior sampler. By treating the noise parameters as variables to be inferred, the model effectively "listens" to the residual being removed from the image, ensuring it matches the expected statistical properties of the noise.

Key Insights: Realism vs. Accuracy

A fascinating insight from the paper is the inherent trade-off between visual realism and mathematical accuracy (like PSNR).

Comparison showing the noisy input, true image, a single denoised sample, and the posterior mean.

If the goal is the highest mathematical accuracy (e.g., maximizing PSNR), one should look at the posterior mean ($E[x|y]$), which averages out uncertainty but can appear slightly blurry. Conversely, if the goal is a highly realistic image that looks like it belongs in the training set, taking a single sample ($\hat{x}$) is preferable, though it may have a lower PSNR. GDiff's Bayesian nature gives users the flexibility to extract both.

Datasets and Key Results

The researchers evaluated GDiff across two vastly different domains, demonstrating its versatility:

  • Natural Images: Trained on ImageNet and validated on CBSD68, the model was tested against "colored" noises (pink, white, and blue) with unknown amplitudes and spectral indices. GDiff consistently outperformed standard baselines like BM3D (a classical non-blind method) and DnCNN (a deep learning blind denoiser). For instance, on ImageNet corrupted with blue noise, GDiff achieved a PSNR of 30.60 dB, significantly higher than competing methods.
  • Cosmology: Using simulated Cosmic Microwave Background (CMB) data, the "noise" parameters actually represent fundamental constants of the universe (like the Hubble constant, $H_0$). In this context, GDiff didn't just clean the maps; it successfully recovered the underlying cosmological parameters with high precision, turning denoising into a powerful tool for scientific discovery.

Furthermore, using Simulation-Based Calibration (SBC), the authors demonstrated that their inference pipeline is statistically well-calibrated, meaning the uncertainties it reports are trustworthy.

Limitations and Future Work

While powerful, GDiff has a few notable limitations:

  • Computational Weight: Because it relies on iterative Gibbs sampling combined with the already-slow sampling process of diffusion models, GDiff is computationally expensive compared to "one-shot" denoisers.
  • Gaussian Assumption: The current framework assumes the noise is parametric Gaussian (even if colored or spatially varying). Extending this to non-Gaussian or highly non-linear noise remains an open challenge.
  • Score Approximation Bias: Theoretical analysis suggests that small errors in the diffusion model's learned score can lead to slight biases in the estimated noise parameters. Future improvements in precise score-matching techniques could further refine GDiff's accuracy.

Summary updated

BibTeX
@inproceedings{heurteldepeiges2024listening,
  author = {David Heurtel-Depeiges and Charles Margossian and Ruben Ohana and Bruno Régaldo-Saint Blancard},
  title = {{Listening to the noise: Blind Denoising with Gibbs Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=rmEgJ7bhuZ},
}
Figure