Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Beyond Degradation Redundancy: Contrastive Prompt Learning for All-in-One Image Restoration

About

All-in-One Image Restoration (AiOIR), which addresses diverse degradation types with a unified model, presents significant challenges in designing task-aware prompts that effectively guide restoration across multiple degradation scenarios. While adaptive prompt learning enables end-to-end optimization, it often yields overlapping or redundant task representations. Conversely, explicit prompts derived from pretrained classifiers enhance discriminability but discard critical visual information needed for reconstruction. To address these limitations, we introduce Contrastive Prompt Learning (CPL), a framework that aims to improve prompt-task alignment through two complementary components: a Sparse Prompt Module (SPM) that efficiently captures degradation-aware representations while reducing redundancy, and a Contrastive Prompt Regularization (CPR) that explicitly strengthens task boundaries by incorporating negative prompt samples across different degradation types. Unlike previous approaches that focus primarily on degradation classification, CPL directly optimizes the interaction between prompts and the restoration model. Extensive experiments across five benchmarks show that CPL consistently boosts the performance of strong AiOIR baselines across diverse scenarios. Our approach achieves state-of-the-art average performance on these benchmarks, providing a general and robust solution for AiOIR. The code is available at https://github.com/Aitical/CPLIR

Gang Wu, Junjun Jiang, Kui Jiang, Xianming Liu, Liqiang Nie• 2025

Related benchmarks

TaskDatasetResultRank
Image DenoisingBSD68
PSNR29.3
404
DerainingRain100L
PSNR30.32
196
Image DehazingSOTS Outdoor
PSNR16.62
124
Image DehazingSOTS Indoor
PSNR12.06
83
Low-light Image EnhancementLOL v1.0 (test)
PSNR7.79
35
Image RestorationCDD 11 (test)
PSNR (Low)15.27
29
Low-light Image EnhancementLOL_Blur Low-light 1.0 (test)
PSNR8.73
22
DerainingRain13K Rain100H
PSNR17.71
12
DerainingRain13K (Test100)
PSNR22.63
12
DerainingRain13K (Test1200)
PSNR26.78
12
Showing 10 of 15 rows

Other info

Follow for update