ProRes: Exploring Degradation-aware Visual Prompt for Universal Image Restoration

Jiaqi Ma, Tianheng Cheng, Guoli Wang, Qian Zhang, Xinggang Wang, Lefei Zhang

TL;DR

ProRes introduces "Degradation-aware Visual Prompts" to create a universal image restoration model capable of handling multiple distortions (noise, blur, rain, low light) within a single, simple Vision Transformer (ViT) architecture. By simply adding learned, image-sized tensors to the input, the model gains the unique ability to "mix and match" restoration tasks and adapt to entirely new degradations through efficient prompt tuning.

What Problem Does This Paper Address?

Traditionally, image restoration is a "specialist" field. If you want to remove noise, you use a denoising model; if you want to fix motion blur, you use a deblurring model. While researchers have tried to build "universal" models, they often face two hurdles:

  1. Interference: Training one model on many tasks can lead to "task-interference," where the requirements for denoising conflict with those for deblurring, leading to mediocre results across the board.
  2. Lack of Control: Universal models are often "black boxes." If an image is both dark and rainy, a standard universal model might prioritize one over the other, or produce an unpredictable result because it lacks a mechanism to "steer" the restoration process.

ProRes aims to solve this by introducing a controllable, task-agnostic framework that uses visual prompts to tell the model exactly what kind of degradation it is looking at.

Methods

The core innovation is the Degradation-aware Visual Prompt (DAVP).

  • The Prompt: Unlike text prompts in models like CLIP, these are "visual prompts"—tensors of the same size as the input image ($H \times W \times 3$). These prompts are learned parameters that encode the "essence" of a specific degradation (e.g., a "rain prompt" or a "blur prompt").
  • The Mechanism: To restore an image, you simply add the corresponding visual prompt to the degraded input image. This "prompted image" is then fed into a vanilla Vision Transformer (ViT-Large).
  • The Decoder: Because ViT is an encoder, the authors use a very simple 2-convolution "pixel decoder" to reconstruct the final RGB image.
  • Control via Linear Combination: Because the prompts are additive, they can be combined. If an image has both rain (D) and low-light (E) issues, you can feed the model a weighted sum: $\alpha D + (1-\alpha)E$. This allows for "customized" restoration.
  • Prompt Tuning: To adapt to a new task (like dehazing), the authors freeze the entire ProRes model and only train a new, randomly initialized visual prompt. This is computationally "cheap" compared to full model fine-tuning.

Datasets

The authors trained ProRes on a massive joint dataset spanning four major tasks:

  • Denoising: SIDD (Smartphone Image Denoising Dataset).
  • Low-light Enhancement: LOL dataset.
  • Deraining: A merged dataset including Rain800, Rain1800, Rain14000, etc.
  • Deblurring: A merged dataset including GoPro, HIDE, and RealBlur.

For testing transferability, they used:

  • FiveK: For new low-light enhancement scenarios.
  • RESIDE-6K: For image dehazing (a task the model never saw during initial training).

Key Insights and Ideas

  • Simplicity is a Feature: ProRes uses a "vanilla" ViT without the complex, task-specific architectural "bells and whistles" (like multi-stage processing or specialized attention blocks) common in SOTA restoration models. This proves that the prompt, not just the architecture, carries the heavy lifting for task identification.
  • The Additive Property: The most surprising finding is that visual prompts behave linearly. By adjusting the weights of combined prompts, users can manually "dial in" the amount of enhancement or deraining, providing a level of interpretability and control rarely seen in deep learning restoration.
  • Prompt Tuning vs. Fine-tuning: The paper demonstrates that a frozen "foundation" restoration model can learn a new task (dehazing) just by optimizing a single input tensor. This suggests that the model learns a general "language" of image reconstruction that can be unlocked with the right key (the prompt).

Key Results

  • Competitive Performance: Despite its simple architecture, ProRes achieves results comparable to state-of-the-art specialized models like Restormer and MAXIM. For example, on the SIDD denoising benchmark, it achieved a PSNR of 39.28 dB, very close to Restormer’s 40.02 dB.
  • Superior to Previous Universal Models: ProRes significantly outperformed Painter, another recent universal vision model, across all four primary tasks.
  • Effective Adaptation: In the dehazing task (RESIDE-6K), ProRes with prompt tuning achieved a PSNR of 21.47 dB. While not beating specialized dehazing SOTA, it showed a massive improvement over the base model, proving the prompt tuning strategy works for domain transfer.

Limitations and Future Work

  • Architectural Ceiling: The authors explicitly state that their goal wasn't to beat every SOTA benchmark but to explore the potential of prompts. Using a more sophisticated backbone (like a Swin Transformer or a specialized restoration architecture) would likely yield even higher numbers.
  • Prompt Initialization: The performance is somewhat sensitive to how prompts are initialized. The authors found that pre-training prompts using a lightweight model (like MPRNet) yielded better results than random initialization.
  • Future Directions: The authors suggest that scaling up the training data (large-scale "foundation" datasets) could further boost the "zero-shot" or "few-shot" capabilities of ProRes, potentially leading to a model that can fix any image degradation with minimal human intervention.

Summary updated

BibTeX
@misc{ma2023prores,
  author = {Jiaqi Ma and Tianheng Cheng and Guoli Wang and Qian Zhang and Xinggang Wang and Lefei Zhang},
  title = {{ProRes: Exploring Degradation-aware Visual Prompt for Universal Image Restoration}},
  year = {2023},
  eprint = {2306.13653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.13653},
}
Figure