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

Yinhuai Wang, Jiwen Yu, Jian Zhang

This paper introduces DDNM (Denoising Diffusion Null-Space Model), a zero-shot framework that allows a single pre-trained diffusion model to solve almost any linear image restoration task—from super-resolution to colorization—without any additional training or fine-tuning.

The Challenge of Image Restoration

Image Restoration (IR) involves recovering a high-quality image from a degraded version, such as a blurry, low-resolution, or grayscale photo. Traditionally, this required training a specific neural network for every single task. If you wanted to perform 4x super-resolution, you trained one model; for 8x, you trained another entirely.

While generative models like GANs and Diffusion Models have shown they can "imagine" realistic details, existing zero-shot methods often struggle with data consistency. They might produce a beautiful, realistic face that looks nothing like the person in the original low-resolution input. The core challenge is balancing "realness" (looking like a natural image) with "faithfulness" (matching the provided evidence).

The DDNM Solution: Range-Null Space Decomposition

DDNM leverages the mathematical concept of range-null space decomposition to turn off-the-shelf diffusion models into versatile image restorers.

  1. The Math: Any linear degradation can be represented as $y = Ax$. Mathematically, an image $x$ can be split into two parts: the range-space (which is directly related to the measurement $y$) and the null-space (the parts that the operator $A$ "destroys" or ignores).
  2. The Insight: To restore an image perfectly, we should keep the range-space part exactly as it is in $y$ and only "invent" the null-space part. The paper demonstrates that the "identity" and "structure" of an image live in the range-space, while the "texture" and "high-frequency details" live in the null-space.
  3. The Algorithm: During the reverse diffusion process (where noise is turned into an image), DDNM takes the model's estimate of the clean image ($x_0$) at each step and "rectifies" it. It replaces the range-space portion of the estimate with the actual data from the input $y$ using a pseudo-inverse operator ($A^\dagger$).

Most models try to learn how to be consistent with the input. DDNM treats consistency as a hard mathematical constraint. By using the pseudo-inverse, consistency is guaranteed by the laws of linear algebra, leaving the diffusion model free to focus entirely on "realism."

DDNM+ for Complex and Noisy Inputs

The authors also introduce an enhanced version, DDNM+, that handles noisy inputs and includes a "time-travel" trick. This trick involves jumping back and forth in the diffusion timeline to ensure that the newly generated null-space content harmonizes globally with the fixed range-space content.

Key Results and Versatility

Because the degradation operator $A$ is just a matrix or function provided at inference time, the same model can switch from being a colorizer to a super-resolution tool instantly. DDNM outperformed other zero-shot methods like DDRM and ILVR across five major tasks (Super-Resolution, Deblurring, Colorization, Compressed Sensing, and Inpainting) in terms of PSNR, SSIM, and FID.

Extreme Super-Resolution Progression

Remarkably, the model successfully performed up to 256x extreme super-resolution, producing recognizable faces from just a few pixels. In these extreme cases, the range-space content is so sparse that the diffusion model can get "confused." By repeating steps via the time-traveling trick, the model gets multiple chances to refine the null-space to fit the sparse range-space anchors.

Restoration of noisy and degraded inputs

DDNM+ also proved highly effective at real-world applications like "Old Photo Restoration," where it simultaneously handled colorization, super-resolution, and scratch removal by treating them as a single compound linear operator. Furthermore, unlike some competing methods that require expensive gradient calculations at every step, DDNM is nearly as fast as standard diffusion sampling.

Limitations and Future Directions

While highly effective, DDNM has a few limitations:

  • Linearity Constraint: The current theory relies on the degradation being a linear operator. Some real-world degradations (like JPEG compression artifacts) are non-linear.
  • Inference Speed: Like all diffusion-based methods, DDNM requires dozens or hundreds of neural network passes, making it slower than "one-shot" GAN-based restorers.
  • Operator Knowledge: The method assumes the degradation operator $A$ is known. In "blind" restoration, DDNM would require an initial estimation of the blur kernel.

Future work may extend this framework to video restoration and explore non-linear pseudo-inverses to handle a wider array of real-world distortions.

Summary updated

BibTeX
@inproceedings{wang2023zero,
  author = {Yinhuai Wang and Jiwen Yu and Jian Zhang},
  title = {{Zero-Shot Image Restoration Using Denoising Diffusion Null-Space Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=mRieQgMtNTQ},
}
Figure