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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wu, Gang, Jiang, Junjun, Jiang, Kui, Liu, Xianming, Nie, Liqiang
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909978375225344
author Wu, Gang
Jiang, Junjun
Jiang, Kui
Liu, Xianming
Nie, Liqiang
author_facet Wu, Gang
Jiang, Junjun
Jiang, Kui
Liu, Xianming
Nie, Liqiang
contents 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
format Preprint
id arxiv_https___arxiv_org_abs_2504_09973
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Degradation Redundancy: Contrastive Prompt Learning for All-in-One Image Restoration
Wu, Gang
Jiang, Junjun
Jiang, Kui
Liu, Xianming
Nie, Liqiang
Computer Vision and Pattern Recognition
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
title Beyond Degradation Redundancy: Contrastive Prompt Learning for All-in-One Image Restoration
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2504.09973