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:
- 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.
- Scene-Aware Contextual Descriptions: Detailed textual descriptions of the image content help the model preserve semantic meaning and structural integrity during restoration.
- 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.
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).
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