# From Controlled Scenarios to the Real World: Cross-Domain Degradation Pattern Matching for All-in-One Image Restoration

**Authors:** Junyu Fan, Chuanlin Liao, Endi Xie, Dongyue Guo, Xiaolin Gou, Duan Wei, Junyang Hu, Yi Lin

PMC · DOI: 10.34133/research.1191 · Research · 2026-03-27

## TL;DR

This paper introduces a new image restoration model that improves generalization to real-world scenarios by learning robust degradation patterns.

## Contribution

The paper proposes UDAIR, a model that learns universal degradation prototypes and adapts to real-world data using cross-sample contrastive learning and test-time adaptation.

## Key findings

- UDAIR achieves state-of-the-art performance on 10 open-source datasets for All-in-One Image Restoration.
- The model's degradation prototypes effectively identify and handle multiple degradation patterns.
- Test-time adaptation significantly improves robustness in real-world scenarios.

## Abstract

As a fundamental imaging task, All-in-One Image Restoration (AiOIR) aims to achieve image restoration caused by multiple degradation patterns via a single model with unified parameters. However, existing methods typically rely on sample-wise supervision, which tends to entangle degradation features with image content. Furthermore, the inevitable distribution shift between training data (source domain) and real-world samples (target domain) weakens degradation awareness, severely limiting the generalization capability of models in real-world scenarios. To address this, a Unified Domain-Adaptive Image Restoration (UDAIR) computer vision model is proposed by achieving the transition from learning unstable local features to learning robust universal prototypes. To decouple degradation from content, a Cross-Sample Contrastive Learning mechanism is implemented by a codebook-based module. By contrasting samples with shared degradations but diverse content, the proposed model learns discrete embeddings as degradation prototypes. Furthermore, to actively bridge the distribution gap during inference, a correlation alignment-based test-time adaptation mechanism is designed to dynamically pull drifting target features toward their corresponding degradation cluster centers to effectively eliminate residual alignment discrepancies. Experimental results on 10 open-source datasets demonstrate that UDAIR achieves new state-of-the-art performance for the AiOIR task, in which each technical module contributes to the desired performance improvement. Most importantly, the feature cluster validates the degradation identification under multiple degradation patterns, and qualitative comparisons showcase robust generalization to real-world scenarios.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC13022318/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13022318/full.md

## References

49 references — full list in the complete paper: https://tomesphere.com/paper/PMC13022318/full.md

---
Source: https://tomesphere.com/paper/PMC13022318