[Paper Review] PromptIR: Prompting for All-in-One Blind Image Restoration
PromptIR introduces a plug-in prompt block that interactively conditions a restoration network with degradation-aware prompts, enabling all-in-one blind restoration across denoising, deraining, and dehazing with state-of-the-art results.
Image restoration involves recovering a high-quality clean image from its degraded version. Deep learning-based methods have significantly improved image restoration performance, however, they have limited generalization ability to different degradation types and levels. This restricts their real-world application since it requires training individual models for each specific degradation and knowing the input degradation type to apply the relevant model. We present a prompt-based learning approach, PromptIR, for All-In-One image restoration that can effectively restore images from various types and levels of degradation. In particular, our method uses prompts to encode degradation-specific information, which is then used to dynamically guide the restoration network. This allows our method to generalize to different degradation types and levels, while still achieving state-of-the-art results on image denoising, deraining, and dehazing. Overall, PromptIR offers a generic and efficient plugin module with few lightweight prompts that can be used to restore images of various types and levels of degradation with no prior information on the corruptions present in the image. Our code and pretrained models are available here: https://github.com/va1shn9v/PromptIR
Motivation & Objective
- Address the need for a single model that can handle multiple unknown degradations without prior degradation information.
- Leverage lightweight, learnable prompts to encode degradation context and guide restoration.
- Develop a plug-in prompt block that can be integrated into existing restoration architectures.
- Demonstrate state-of-the-art performance on denoising, deraining, and dehazing under all-in-one and single-task settings.
Proposed method
- Propose a plug-in prompt block comprising a Prompt Generation Module (PGM) and a Prompt Interaction Module (PIM) to inject degradation-conditioned information into the restoration network.
- Use learnable prompt components P_c that are dynamically weighted by PGM using input features via GAP, a channel-downscaling step, and softmax to produce input-conditioned prompts P.
- Concatenate P with intermediate features and process through a Transformer block (MDTA-GDFN) to guide decoding at multiple levels of a UNet-like encoder-decoder, enabling degradation-aware restoration.
- Adopt a 4-level encoder-decoder with prompts inserted between decoder levels; compute prompts with bilinear upsampling to handle different resolutions.
- Train end-to-end without pre-training, using L1 loss and Adam optimization, on both all-in-one and single-task settings.
- Demonstrate improvements across dehazing, deraining, and denoising compared to prior all-in-one methods (e.g., AirNet) and task-specific baselines.

Experimental results
Research questions
- RQ1Can a single all-in-one model restore images degraded by unknown mixtures of atmospheric and sensor degradations (noise, rain, haze) without explicit degradation labels?
- RQ2Do input-conditioned prompts enable dynamic, degradation-aware adaptation that improves restoration across multiple tasks?
- RQ3Is the prompt block a generic plug-in that can be integrated with existing restoration backbones to achieve state-of-the-art results?
- RQ4How does the placement of prompt blocks within the decoder affect performance?
- RQ5How well does PromptIR generalize to unseen degradation levels and spatially varying degradations?
Key findings
- PromptIR achieves state-of-the-art performance in all-in-one restoration, outperforming AirNet by about 0.86 dB average PSNR across tasks.
- In single-task settings, PromptIR yields substantial gains over AirNet, e.g., ~8.13 dB improvement in dehazing and ~2.13 dB in deraining.
- PromptIR shows strong generalization to unseen degradation levels (e.g., ~7 dB PSNR gain over AirNet on σ=100 for denoising).
- Ablations show dynamic prompts (via PGM) outperform fixed prompts, and placing prompt blocks between decoder levels yields the best results.
- PromptIR maintains competitive or superior performance for spatially variant degradations compared to baselines.
![Figure 2: The figure shows tSNE plots of the degradation embeddings used in PromptIR (ours) and the state-of-the-art AirNet [ 29 ] . Distinct colors denote different degradation types. In our case, the embeddings for each task are better clustered, showing the effectiveness of prompt tokens to learn](https://ar5iv.labs.arxiv.org/html/2306.13090/assets/figures/tsneplots-1.png)
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.