Stimulating the Diffusion Model for Image Denoising via Adaptive Embedding and Ensembling

Tong Li, Hansen Feng, Lizhi Wang, Zhiwei Xiong, Hua Huang · DOI

Abstract

Image denoising has long faced a trade-off between pixel-level accuracy (distortion) and visual realism (perception). While traditional discriminative models excel at the former, they often produce over-smoothed results. Conversely, generative diffusion models offer high perceptual quality but struggle with structural consistency and "hallucinations." This paper introduces DMID (Diffusion Model for Image Denoising), a novel framework that utilizes pre-trained, unconditional diffusion models for denoising without task-specific retraining. By employing Adaptive Embedding to align noisy inputs with the diffusion process and Adaptive Ensembling to mitigate generative artifacts, DMID achieves state-of-the-art performance across both synthetic and real-world benchmarks.

Introduction

Image denoising is a fundamental task in computer vision, traditionally dominated by discriminative models like DnCNN or Restormer. These models are typically trained using pixel-level losses (e.g., $L_1$ or $L_2$), which prioritize Peak Signal-to-Noise Ratio (PSNR). However, this focus often leads to the loss of fine textures, resulting in images that appear unnaturally smooth to human observers.

Generative models, particularly Diffusion Models, have emerged as a powerful alternative due to their ability to synthesize highly realistic textures. Yet, applying them to denoising presents two significant hurdles: Input Inconsistency, where the model expects pure Gaussian noise but receives structured noisy images, and Content Inconsistency, where the stochastic nature of the model generates details not present in the original scene. DMID addresses these challenges by treating the diffusion process as a form of iterative classical denoising.

Methodology

The DMID strategy is built upon two core technical pillars designed to bridge the gap between generative modeling and image restoration.

1. Adaptive Embedding

Standard diffusion models begin the reverse process from a state of pure Gaussian noise at timestep $T$. DMID instead embeds the noisy image into an intermediate timestep $N$, where the model's inherent denoising capability matches the specific noise level of the input.

To handle real-world, non-Gaussian noise, the authors implement an unsupervised noise transformation. Using a VAE-like encoder-decoder structure, the input noise is mapped into a Gaussian distribution. The optimal starting timestep $N$ is determined automatically using Stein’s Unbiased Risk Estimator (SURE), allowing the model to function without requiring ground-truth clean images for noise estimation.

2. Adaptive Ensembling

To combat the "hallucinations" inherent in generative processes, DMID utilizes Adaptive Ensembling. By running the denoising process multiple times via Monte Carlo sampling and averaging the results through Minimum Mean Square Error (MMSE) ensembling, the framework stabilizes the output. This process effectively suppresses stochastic artifacts while preserving the high-frequency details generated by the diffusion model.

Two variants are provided: DMID-d, which is optimized for low distortion (high PSNR), and DMID-p, which is optimized for high perceptual quality (low LPIPS).

Experimental Results

Performance Benchmarks

DMID was evaluated against both synthetic Gaussian noise (CBSD68, Kodak24, McMaster, Urban100) and real-world datasets (CC, PolyU, FMDD). The core diffusion model was pre-trained on ImageNet (256×256).

  • Distortion Metrics: DMID-d consistently outperformed leading discriminative models. On the McMaster dataset ($\sigma=50$), DMID-d achieved a PSNR of 35.72 dB, surpassing Restormer’s 35.55 dB.
  • Perceptual Metrics: In real-world scenarios like the PolyU dataset, DMID-p achieved an LPIPS score of 0.067, a significant improvement over Restormer’s 0.102. This indicates a much higher degree of visual fidelity and texture reconstruction.

Qualitative Analysis

Visual comparisons demonstrate that while traditional models often blur intricate patterns—such as animal fur or grass—DMID successfully reconstructs these fine details. Unlike GAN-based approaches, DMID avoids common "checkerboard" artifacts, producing cleaner and more natural results.

Discussion and Conclusion

DMID represents a significant shift in how pre-trained generative models can be "stimulated" for restoration tasks. By viewing the diffusion timestep as a proxy for noise levels, the authors provide a mathematical bridge to classical iterative denoising.

Despite its success, the method faces certain limitations. The computational cost is higher than single-pass networks due to the iterative nature of diffusion and the multiple passes required for ensembling. Additionally, the accuracy of the initial noise estimation is critical; errors in choosing the starting timestep $N$ can lead to sub-optimal denoising.

Future work will explore extending this adaptive embedding strategy to other inverse problems, such as image deblurring and super-resolution, further unlocking the potential of unconditional diffusion models in the field of image restoration.

Summary updated

BibTeX
@article{li2024stimulating,
  author = {Tong Li and Hansen Feng and Lizhi Wang and Zhiwei Xiong and Hua Huang},
  title = {{Stimulating the Diffusion Model for Image Denoising via Adaptive Embedding and Ensembling}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2024.3432812},
}
Figure