A Unified Conditional Framework for Diffusion-based Image Restoration

Yi Zhang, Xiaoyu Shi, Dasong Li, Xiaogang Wang, Jian Wang, Hongsheng Li

Introduction

Image restoration—recovering a clean image from a noisy, blurry, or compressed version—is a classic ill-posed problem. Traditional regression-based models often minimize average error, leading to blurry outputs that lack realistic fine details. While Diffusion Probabilistic Models (DPMs) excel at generating realistic imagery, adapting them for restoration requires precise guidance to ensure generated details match the original scene. Furthermore, high-resolution processing in DPMs often introduces "grid artifacts" at patch boundaries.

Proposed Framework

The authors introduce a unified conditional framework that combines a lightweight initial predictor with a diffusion model designed to learn spatially-adaptive residuals. This approach shifts the generative task from creating an image from scratch to refining a coarse estimate.

Architecture and Guidance

The process begins with an initial predictor (a lightweight UNet) that generates a coarse restoration. The diffusion model then learns the residual between this coarse guidance and the ground truth, stabilizing the generative task.

The unified conditional framework and detailed diffusion model block architecture.

A key component is the Conditional Integration Module (CIM), which prepares spatial guidance and auxiliary information (e.g., time steps) for the diffusion blocks. This is coupled with the Adaptive Kernel Guidance Block (AKGB). Unlike standard convolutions, the AKGB generates dynamic, pixel-wise kernels based on fused conditional information. This allows the model to adapt its restoration strategy locally, applying different processing to different image regions based on local degradation needs.

Inter-step Patch-splitting

To handle high-resolution images without memory constraints or boundary seams, the framework employs inter-step patch-splitting. By splitting and merging patches within the diffusion loop at every step, rather than just once at the beginning, the model maintains global consistency and eliminates the visible "grid" artifacts common in standard patch-based methods.

Experimental Results

The framework was evaluated across three challenging tasks: extreme low-light denoising (SID Sony), image deblurring (GoPro), and JPEG restoration (ImageNet).

Performance and Visual Fidelity

The method consistently outperformed strong regression baselines like Restormer and Uformer. In low-light denoising, the model achieved an LPIPS score of 0.222, significantly better than Restormer's 0.342, indicating superior perceptual quality that aligns better with human vision.

Qualitative comparison of low-light denoising results. The proposed method (Ours) recovers significantly clearer textures and colors compared to regression baselines.

Visual comparisons demonstrate that the framework recovers sharp textures and vivid colors where other methods produce muddy or overly smooth regions. The inter-step patch-splitting strategy also successfully produces artifact-free high-resolution outputs, maintaining seamless transitions across the entire image.

Conclusion

This unified framework demonstrates that effective guidance and spatially-adaptive conditioning are crucial for diffusion-based restoration. By learning residuals through dynamic kernels, the model achieves state-of-the-art perceptual results. Future work may focus on improving sampling speed and reducing the "hallucination" of fine details to further enhance semantic accuracy.

Summary updated

BibTeX
@inproceedings{zhang2023unified,
  author = {Yi Zhang and Xiaoyu Shi and Dasong Li and Xiaogang Wang and Jian Wang and Hongsheng Li},
  title = {{A Unified Conditional Framework for Diffusion-based Image Restoration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ZgVJvaAS2h},
}
Figure