Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model

Yinhuai WangJiwen YuJian Zhang

article2023ICLR807 citations

Introduces the Denoising Diffusion Null-Space Model (DDNM), a zero-shot framework that solves arbitrary linear image restoration tasks without retraining by refining only the null-space contents of pre-trained diffusion models during reverse sampling.

Listen

Real-world image restoration—such as repairing damaged photos, colorizing grayscale images, and enhancing low-resolution pictures—has traditionally required dedicated deep learning models trained separately for each specific task. These task-specific models demand vast amounts of paired training data, generalize poorly to unfamiliar image degradations, and often struggle to balance visual realness with strict consistency to the original degraded input. The article addresses these core challenges by proposing a flexible, unified restoration framework that operates without task-specific re-training.

The article demonstrates the Denoising Diffusion Null-Space Model (DDNM) and its enhanced variant, DDNM+, as zero-shot image restoration methods. The main objective is to evaluate whether off-the-shelf, pre-trained generative diffusion models can solve arbitrary linear image restoration problems without any model fine-tuning, architectural modifications, or additional training data.

The evaluated approach uses range-null space decomposition to separate the restoration process mathematically into two independent components: the known data portion (range space) and the missing detail portion (null space). The framework analytically enforces strict fidelity to the input measurement in the range space while utilizing a standard pre-trained diffusion model solely to generate realistic missing details in the null space. The authors evaluated DDNM across diverse tasks—including super-resolution, deblurring, colorization, inpainting, and compressed sensing—using standard benchmark datasets (ImageNet and CelebA at 256x256 resolution) and compared the results against state-of-the-art zero-shot and supervised restoration techniques.

The key findings demonstrate that DDNM outperforms existing zero-shot baseline methods across multiple degradation types. By mathematically fixing the range-space component, DDNM achieved exact data consistency (reaching 0.0 consistency error in inpainting tasks) while generating higher visual quality and lower distortion scores across both CelebA and ImageNet benchmarks. Second, the enhanced DDNM+ framework successfully removed synthetic and real-world noise; in challenging tasks like 16x noisy super-resolution, DDNM+ improved peak signal-to-noise ratio from 13.10 dB to 19.44 dB and dramatically improved visual realness metrics over standard DDNM. Third, incorporating an iterative 'time-travel' sampling trick restored global coherence in extreme settings, such as 32x super-resolution and compressed sensing with only 10% sampling rates. Finally, DDNM maintained identical computational and memory footprints to base diffusion generation (requiring approximately 11.9 seconds per image on standard hardware), avoiding the heavy mathematical matrix operations required by alternative methods.

These findings imply significant practical value for digital image restoration pipelines. Organizations can eliminate the substantial development costs, timelines, and storage overhead associated with training and maintaining separate neural network models for distinct restoration tasks. A single pre-trained generative diffusion model can now be deployed across diverse restoration workflows, seamlessly handling complex compound degradations—such as old photo repair involving simultaneous inpainting, colorization, denoising, and upscaling.

Practitioners should implement DDNM+ when deploying zero-shot restoration pipelines, especially for workflows involving noisy inputs or compound linear degradations. Operators can construct basic linear degradation operators and their mathematical inverses directly by hand for standard tasks like pooling and masking. For wide-aspect or large-format image processing, teams should adopt the proposed mask-shift division technique to prevent visible boundary seams across image patches.

Users should note several limitations and operational constraints. The framework assumes linear or approximately linear degradation operators, meaning non-linear degradations require manual approximations. In addition, the system requires manual tuning of the input noise variance parameter to strike an optimal balance between aggressive noise cleaning and detail preservation. While confidence in the framework's mathematical consistency is high, processing speeds remain constrained by iterative diffusion sampling times, and final generation quality remains strictly bounded by the underlying capacity of the pre-trained diffusion model used.

No sufficiently relevant recommendations were found.

Cover for Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model

Abstract

Most existing Image Restoration (IR) models are task-specific, which can not be generalized to different degradation operators. In this work, we propose the Denoising Diffusion Null-Space Model (DDNM), a novel zero-shot framework for arbitrary linear IR problems, including but not limited to image super-resolution, colorization, inpainting, compressed sensing, and deblurring. DDNM only needs a pre-trained off-the-shelf diffusion model as the generative prior, without any extra training or network modifications. By refining only the null-space contents during the reverse diffusion process, we can yield diverse results satisfying both data consistency and realness. We further propose an enhanced and robust version, dubbed DDNM+, to support noisy restoration and improve restoration quality for hard tasks. Our experiments on several IR tasks reveal that DDNM outperforms other state-of-the-art zero-shot IR methods. We also demonstrate that DDNM+ can solve complex real-world applications, e.g., old photo restoration.

Table of Contents

  • 1 Introduction
  • 2 Background
  • 2.1 Review the Diffusion Models
  • 2.2 Range-Null Space Decomposition
  • 3 Method
  • 3.1 Denoising Diffusion Null-Space Model
  • 3.2 Examples of Constructing 𝐀\mathbf{A} and 𝐀†\mathbf{A}^{\dagger}
  • 3.3 Enhanced Version: DDNM+
  • 4 Experiments
  • 4.1 Evaluation on DDNM
  • 4.2 Evaluation on DDNM+
  • 4.3 Real-World Applications
  • 5 Related Work
  • 5.1 Diffusion Models for Image Restoration
  • 5.2 Range-Null Space Decomposition in Image Inverse Problems
  • 6 Conclusion & Discussion
  • 7 Mask-Shift Trick
  • References
  • A Time & Memory Consumption
  • B Comparing DDNM with Supervised Methods
  • C Limitations
  • D Solving Real-World Degradation Using DDNM+
  • E PyTorch-Like Code Implementation
  • F Details of The Degradation Operators
  • G Visualization of The Intermediate Results
  • H Comparing DDNM With Recent Diffusion-Based IR methods
  • H.1 RePaint and ILVR.
  • H.2 DDRM
  • H.3 Other Diffusion-Based IR Methods
  • I Solving noisy Image Restoration Precisely
  • J Additional Results

Citation

MLA
Wang, Y., et al. “Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model”. arXiv, 2022, http://arxiv.org/abs/2212.00490v2.
APA
Wang, Y., Yu, J., & Zhang, J. (2022). Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model. arXiv. http://arxiv.org/abs/2212.00490v2
Chicago
Wang, Y., J. Yu, and J. Zhang. 2022. “Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model”. arXiv. http://arxiv.org/abs/2212.00490v2.
Harvard
Wang, Y., Yu, J. and Zhang, J. (2022) “Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model”, arXiv [Preprint]. Available at: http://arxiv.org/abs/2212.00490v2.
Vancouver
1. Wang Y, Yu J, Zhang J (2022) Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model. arXiv

BibTeX

@article{wang2022zero,
  title = {Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model},
  author = {Wang, Yinhuai and Yu, Jiwen and Zhang, Jian},
  year = {2022},
  journal = {arXiv},
  url = {http://arxiv.org/abs/2212.00490v2},
  eprint = {2212.00490}
}
Metadata:arXiv

Source Code

This paper has an official code repository available. Click below to access the source code.

View Repository

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: Authors