Training-Free Large Model Priors for Multiple-in-One Image Restoration

Xuanhua He, Lang Li, Yingying Wang, Hui Zheng, Ke Cao, Keyu Yan, Rui Li, Chengjun Xie, Jie Zhang, Man ZhouarXiv 2024 · DOI

Abstract

LMDIR (Large Model Driven Image Restoration) is a novel "all-in-one" framework that leverages the zero-shot reasoning of Large Multi-modal Language Models (MMLMs) and the generative power of Diffusion Models to restore degraded images. By extracting high-quality "priors" from these massive foundation models without any additional fine-tuning, LMDIR achieves state-of-the-art performance across multiple restoration tasks—including denoising, deraining, and low-light enhancement—and handles "out-of-distribution" scenarios with significantly higher robustness than previous methods.

Introduction

Image restoration tasks like removing rain, reducing noise, or brightening low-light photos typically require specialized models for each specific degradation. While recent "all-in-one" models attempt to handle multiple tasks simultaneously, they often struggle with two core challenges: accurately identifying the specific degradation (e.g., distinguishing rain streaks from scene geometry) and the high cost of complex two-stage training or fine-tuning large encoders like CLIP.

LMDIR addresses these challenges by arguing that we do not need to explicitly "teach" a model what rain or noise looks like if we can leverage foundation models that already possess this knowledge.

Methodology

The LMDIR framework utilizes three distinct "training-free" priors to guide the restoration process:

  1. Global Degradation & Content Knowledge: The system prompts an MMLM (such as GPT-4o) to describe both the degradation and the scene. These descriptions are converted into embeddings using a CLIP encoder to guide the restoration network.
  2. Scene-Aware Contextual Descriptions: Detailed textual descriptions of the image content help the model preserve semantic meaning and structural integrity during restoration.
  3. Fine-Grained Reference Images: The system uses a Diffusion Model (SDXL) to generate a high-quality, clean version of the image based on the MMLM's description. This "hallucinated" clean image serves as a reference for realistic textures and fine details.
The LMDIR framework overview, illustrating how MMLMs and Diffusion models provide global and fine-grained priors to the restoration engine.

To integrate these priors, the authors designed a specialized architecture featuring a Query-based Prompt Encoder that refines text embeddings against low-level image features, and specialized Transformer Blocks (Degradation, Content, and Reference-Aware) that inject this knowledge at the encoder, bottleneck, and decoder stages.

Experimental Results

LMDIR was evaluated on standard benchmarks including Rain100L (deraining), BSD68/Urban100 (denoising), and the LOL dataset (low-light enhancement). It consistently outperformed state-of-the-art (SOTA) competitors such as Restormer, PromptIR, and DA-CLIP.

Quantitative and Qualitative Performance

  • Deraining: LMDIR achieved an average improvement of 2.3 dB PSNR over PromptIR.
  • Denoising/Low-Light: The model showed marked improvements in both PSNR/SSIM metrics and visual quality, producing sharper edges and more accurate color reproduction.
  • Robustness (OOD): In "Out-of-Distribution" tests involving severe degradations not seen during training (e.g., Rain100H), LMDIR maintained high performance (17.51 dB) while other models' results degraded significantly (e.g., PromptIR at 13.60 dB).
Qualitative comparison of LMDIR against SOTA methods across noise, low-light, and rain tasks, demonstrating superior detail recovery and color fidelity.

Discussion and Conclusion

A key insight of this work is that MMLMs, despite being designed for high-level reasoning, are surprisingly effective at describing low-level image features. Furthermore, using Diffusion models as a "texture bank" provides realistic priors for clean surfaces even when the reference image isn't a perfect pixel-match.

While the framework introduces some computational overhead due to external API calls for GPT-4o and SDXL, it offers a unique user-in-the-loop capability, allowing users to manually guide restoration via text prompts. Future work will focus on improving the efficiency of integrating these large-scale priors to reduce latency while maintaining high restoration quality.

Summary updated

BibTeX
@misc{he2024training,
  author = {Xuanhua He and Lang Li and Yingying Wang and Hui Zheng and Ke Cao and Keyu Yan and Rui Li and Chengjun Xie and Jie Zhang and Man Zhou},
  title = {{Training-Free Large Model Priors for Multiple-in-One Image Restoration}},
  year = {2024},
  eprint = {2407.13181},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.13181},
}
Figure