NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Photo-Realistic Image Restoration in the Wild with Controlled Vision-Language Models

Ziwei Luo, Fredrik K. Gustafsson, Zheng Zhao, Jens Sjölund, Thomas B. Schön · DOI

Abstract

Though diffusion models have been successfully applied to various image restoration (IR) tasks, their performance is sensitive to the choice of training datasets. Typically, diffusion models trained in specific datasets fail to recover images that have out-of-distribution degradations. To address this problem, this work leverages a capable vision-language model and a synthetic degradation pipeline to learn image restoration in the wild (wild IR). More specifically, all low-quality images are simulated with a synthetic degradation pipeline that contains multiple common degradations such as blur, resize, noise, and JPEG compression. Then we introduce robust training for a degradation-aware CLIP model to extract enriched image content features to assist high-quality image restoration. Our base diffusion model is the image restoration SDE (IR-SDE). Built upon it, we further present a posterior sampling strategy for fast noise-free image generation. We evaluate our model on both synthetic and real-world degradation datasets. Moreover, experiments on the unified image restoration task illustrate that the proposed posterior sampling improves image generation quality for various degradations.

Introduction: The Challenge of Real-World Degradation

Most image restoration (IR) models are trained on specific, "clean" datasets with known, simple degradations like Gaussian noise or bicubic downsampling. When these models encounter real-world images—which often suffer from a complex, unknown mix of blur, noise, and compression—they typically fail.

While recent methods have tried to leverage the "world knowledge" of large diffusion models like Stable Diffusion, they often introduce new problems: they can "hallucinate" unrecognizable text, create fake textures, or cause unrealistic color shifts. This work aims to bridge this gap by creating a model that is robust to "wild" degradations while maintaining high fidelity to the original image content, avoiding the "uncanny" feel of purely generative priors.

Methodology

The proposed framework, DACLIP-IR, introduces three primary innovations to achieve robust restoration:

1. Random Shuffle Degradation Pipeline

Unlike standard pipelines that apply degradations in a fixed order, this method randomly shuffles operations like blur, resizing, noise, and JPEG compression. It also introduces Wiener deconvolution to specifically simulate the "ringing" artifacts common in digital cameras, which standard filters often miss.

2. Robust DACLIP

The authors enhance the Degradation-Aware CLIP (DACLIP) model. By using multi-degradation text descriptions (e.g., "an image with blur and noise") and adding an $\ell_1$ loss to minimize the distance between low-quality (LQ) and high-quality (HQ) image embeddings, they force the model to extract cleaner, more useful content features to guide the restoration process.

3. Optimal Posterior Sampling for IR-SDE

Building on the Image Restoration Stochastic Differential Equation (IR-SDE) framework, the authors derive a mathematically optimal posterior sampling strategy. This allows for more efficient and higher-quality image generation during the reverse diffusion process, significantly reducing noise in the final output.

Experimental Results

The model was trained on LSDIR, a large-scale dataset of 85,000 high-quality images, and evaluated on both synthetic (DIV2K) and real-world (RealSR) benchmarks.

Quantitative Performance

DACLIP-IR consistently outperformed state-of-the-art competitors. On the DIV2K test set, it achieved a PSNR of 29.93 dB, far surpassing SUPIR (26.81 dB) and Real-ESRGAN (27.71 dB). It also led in perceptual metrics, with a FID of 15.94 (vs. SUPIR's 21.73).

Qualitative Comparison

Visual results show sharper edges and cleaner textures without the hallucinated artifacts common in Stable Diffusion-based models. For instance, in complex scenes involving faces or fine textures, DACLIP-IR maintains structural fidelity while removing heavy noise and blur.

Visual comparison of DACLIP-IR against state-of-the-art methods on synthetic and real-world degradations.

Competition Success

The effectiveness of this approach was further validated in the NTIRE 2024 "Restore Any Image Model" (RAIM) in the Wild challenge, where the team placed 5th overall.

Conclusion

By aligning image-language embeddings and optimizing the diffusion sampling process, DACLIP-IR provides a robust solution for restoring images affected by unpredictable real-world degradations. The method successfully balances the generative power of diffusion models with the strict fidelity requirements of image restoration, paving the way for more reliable "in the wild" applications.

Summary updated

BibTeX
@inproceedings{luo2024photo,
  author = {Ziwei Luo and Fredrik K. Gustafsson and Zheng Zhao and Jens Sjölund and Thomas B. Schön},
  title = {{Photo-Realistic Image Restoration in the Wild with Controlled Vision-Language Models}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  doi = {10.1109/cvprw63382.2024.00658},
}
Figure