TL;DR
All-in-One Image Restoration (AiOIR) models often fail to generalize because they accidentally learn "spurious correlations" between image content and degradation types (e.g., assuming all pictures of animals are rainy). This paper introduces CWP-Net, a novel framework that uses causal deconfounding and wavelet-based feature disentanglement to separate image semantics from degradation patterns. By applying backdoor adjustment via a wavelet prompt block, CWP-Net achieves state-of-the-art performance and robust generalization across multiple restoration tasks.
What Problem Does This Paper Address?
Standard image restoration models are usually task-specific—requiring separate models for denoising, deraining, or deblurring—which leads to high storage costs and requires prior knowledge of the degradation type. All-in-One Image Restoration (AiOIR) aims to fix this by handling multiple degradations within a single architecture.
However, existing AiOIR models suffer from two major flaws when viewed through a causal lens:
- Spurious Correlations: Datasets often have hidden semantic biases. For example, a deraining dataset might contain a high percentage of animal scenes, while dehazing datasets contain none. Degradation classifiers inadvertently learn to associate the semantic content (animals) with the degradation (rain), causing them to fail on new, unseen scenes.
- Biased Estimation: Because of these spurious correlations, models struggle to accurately estimate the true degradation type and severity, leading to poor restoration performance under real-world distribution shifts.
Methods
The authors propose the Causal-deconfounding Wavelet-disentangled Prompt Network (CWP-Net) to break these bad correlations and find the true causal relationship between a degraded image and its clean counterpart.
- Wavelet Attention Modules (WAE & WAD): Integrated into the encoder and decoder, these modules use Discrete Wavelet Transform (DWT) to split features into frequency subbands. Since degradation artifacts manifest differently across frequencies, the model uses low-frequency attention maps to explicitly isolate degradation features from semantic content.
- Wavelet Prompt Block (WPB): To handle the biased estimation of degradation patterns, the authors treat the degradation pattern as an unobservable confounder and use causal backdoor adjustment. The WPB generates an alternative adjustment variable by dynamically weighting and prompting different wavelet subbands using a Degradation-based Weight Estimator (DWE) and a Prompt-guided Weighted Spatial Feature Transform (PWSFT).
Datasets
The model was trained and evaluated on standard benchmarks across five distinct tasks:
- Denoising: WED and BSD400 for training; BSD68 for testing (with Gaussian noise $\sigma \in \{15, 25, 50\}$).
- Deraining: Rain100L.
- Dehazing: Outdoor subset of SOTS.
- Low-Light Enhancement: LOL-v1.
- Deblurring: GoPro dataset.
To rigorously test generalization, the authors also constructed a custom balanced test set where semantic domain biases were intentionally removed to simulate real-world distribution shifts.
Key Insights and Ideas
- The Dataset Bias Trap: Traditional degradation classifiers are easily tricked by background semantics. If your training data only shows rain in forests, the model might fail to remove rain in an indoor setting because it relies on the "forest" context to trigger its deraining mechanism.
- Wavelets as a Causal Shield: Frequency separation via wavelets provides a natural inductive bias for disentanglement. Because semantic structures and degradation artifacts occupy different frequency spaces, wavelets allow the network to target the degradation without altering the underlying image content.
- Backdoor Adjustment for Blind Restoration: Instead of trying to perfectly classify a degradation (which is nearly impossible in the wild), the model uses causal backdoor adjustment to mathematically bypass the unobservable degradation confounder, making the restoration robust to classification errors.
Key Results
- 5-Pattern Setting: CWP-Net achieved an average PSNR of 33.15 dB, outperforming the previous best method (Lin et al.) by 0.59 dB, with notable gains of +1.58 dB in dehazing and +1.10 dB in deraining.
- 7-Pattern Setting: CWP-Net reached an average PSNR of 30.56 dB, surpassing the state-of-the-art IDR model by 2.22 dB.
- Robustness to Distribution Shift: On the balanced test set, where competing models experienced severe performance drops due to the absence of familiar semantic cues, CWP-Net maintained high accuracy, proving its superior generalization capabilities.
Limitations and Future Work
- Lack of Contextual Understanding: Wavelet decomposition operates purely on frequency and lacks high-level semantic reasoning. If a degradation looks exactly like a semantic edge (e.g., rain streaks on a chessboard pattern), the model struggles to separate them.
- No Depth Awareness: For tasks like dehazing, the model lacks an explicit spatial-depth coupling mechanism, which can limit its ability to restore depth-consistent brightness.
- Compound Degradations: The current framework handles multiple single degradations but is not yet optimized for images suffering from mixed degradations simultaneously (e.g., an image that is simultaneously noisy, blurry, and rainy). Combining this approach with large-scale vision foundation models is a suggested future direction.
Summary updated