TL;DR
This paper introduces BaryIR, a novel framework for "all-in-one" image restoration that tackles the challenge of generalizing to unseen degradations. BaryIR achieves this by learning a disentangled representation space: one part captures degradation-agnostic image content using Wasserstein Barycenters, while the other part preserves degradation-specific details. This approach leads to state-of-the-art performance and significantly improved robustness on diverse and novel image degradations.
What Problem Does This Paper Address?
Modern image restoration models aim to fix various image flaws (like noise, blur, rain, haze) within a single, unified network. While these "all-in-one" models have advanced significantly, they often struggle when faced with degradations they haven't seen during training (out-of-distribution or OOD degradations). This limits their real-world applicability, where image conditions are unpredictable. The core problem is that current methods tend to overfit to the specific degradations they were trained on, failing to capture the underlying, invariant structures of clean images that are common across all degradation types.
Methods
The key innovation in BaryIR is its approach to learning a disentangled latent representation space for degraded images. This is achieved through two main components:
- Wasserstein Barycenter (WB) Space: BaryIR models a degradation-agnostic distribution by finding the "average" distribution of multisource degraded features in a Wasserstein Barycenter space. This space is learned using a neural network-based barycenter map that minimizes the average Wasserstein distance to all input degraded feature distributions. This effectively filters out degradation-specific noise and captures invariant content.
- Residual Subspaces: To retain degradation-specific information that the WB space might discard, BaryIR introduces residual subspaces. These subspaces capture the "difference" between the original degraded features and their WB-space counterparts. Crucially, these residual embeddings are encouraged to be mutually contrasted (different degradations have distinct residuals) and orthogonal to the WB embeddings, ensuring a clear separation of information.
An adversarial max-min optimization strategy is employed to train the barycenter map and associated potential functions, guided by a combined loss function that includes the MWB loss, an inter-residual contrastive loss (IRC), and a barycenter-residual orthogonal loss (BRO).
Datasets
BaryIR was trained and evaluated on a variety of datasets covering different degradation types:
- Synthetic Degradations: BSD400, WED (for denoising), Rain100L (for deraining), SOTS (for dehazing), GoPro (for deblurring), LOL-v1 (for low-light enhancement).
- Real-World Degradations: O-HAZE, SPANet, LOL-v2-real.
- Mixed Degradations: CDD-11 dataset, and real-world images from Lai and SPANet.
The paper also evaluates generalization to unseen degradation types like JPEG artifact correction (using BSD500 with QF=10) and underwater image enhancement (using UIEB).
Key Insights and Ideas
- Disentanglement is Key for Generalization: The core idea is that separating degradation-agnostic content (WB space) from degradation-specific details (residual subspaces) is crucial for robust generalization to unseen degradations.
- Wasserstein Barycenters as a Degradation-Agnostic Anchor: Using WB to find a "central" distribution for all degraded features provides a powerful, invariant representation that is less prone to overfitting.
- Orthogonality Enhances Disentanglement: Forcing residual subspaces to be orthogonal to the WB space ensures that they capture distinct information, preventing leakage and improving the clarity of each representation.
- BaryIR as a Plug-in: The framework is designed to be flexible and can be integrated into existing restoration architectures (like Restormer or PromptIR), demonstrating its broad applicability.
- Robustness to Limited Training Data: BaryIR shows remarkable robustness even when trained on a limited number of degradation types, highlighting its efficient learning of generalizable features.
Key Results
- State-of-the-Art Performance: BaryIR achieves competitive or superior performance compared to existing state-of-the-art all-in-one image restoration methods across various benchmarks. For instance, it shows an average PSNR gain of 0.81 dB over PromptIR on a three-degradation task.
- Superior Generalization to Unseen Degradations: BaryIR significantly outperforms other methods on unseen degradation types (JPEG artifacts, underwater enhancement) and levels (higher noise, different rain intensities), demonstrating its strong OOD capabilities. For example, it achieves a PSNR gain of 2.09 dB on O-HAZE compared to the second-best method.
- Robustness to Mixed Degradations: The model performs well on real-world images with complex, mixed degradations, outperforming competitors in metrics like PSNR, SSIM, LPIPS, and FID.
- Efficiency: Despite its advanced capabilities, BaryIR introduces only a moderate increase in parameters and computational cost, maintaining fast inference times.
Limitations and Future Work
- Empirical Barycenter Weights: The paper notes that the barycenter weights ($\lambda_k$) are currently determined empirically based on the number of training samples per source. Future work aims to provide theoretical justifications for weight selection and develop more adaptive strategies.
- Failure Cases in Severe Mixed Degradations: In extremely challenging mixed degradation scenarios (e.g., rain streaks with high intensity), the model can still struggle to fully remove artifacts, potentially due to the residual space not being sensitive enough to localized intensity outliers.
- Generalization to Multimodal Data: The authors express interest in extending the barycenter-driven framework to multimodal data (beyond images) and applying it to broader tasks like multimodal understanding and generation.
Summary updated