All-in-One Image Restoration via Causal-Deconfounding Wavelet-Disentangled Prompt Network

Bingnan Wang, Bin Qin, Jiangmeng Li, Fanjiang Xu, Fuchun Sun, Hui Xiong

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:

  1. 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.
  2. 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.
Fig. 1. (a) The illustration of spurious correlation. We present the statistical analysis of four selected categories in the training data of five tasks. Detailed dataset information is provided in Sec. V-A. (b) The prediction accuracy of five degradation patterns on imbalanced test data and balanced test data. ResNet-34 [20], VGG-16 [21], and DA-CLIP [15] are utilized as degradation classifiers. The training and testing data used in conventional AiOIR models are considered imbalanced. Balanced means that the task data is not limited to the scenarios present in the training set, but rather it is rich and comprehensive. All classifiers are trained on imbalanced training data. The balanced test data is constructed with details outlined in Sec. V-D.

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.

The CWP-Net Architecture
  • 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

Abstract

Image restoration represents a promising approach for addressing the inherent defects of image content distortion. Standard image restoration approaches suffer from high storage cost and the requirement towards the known degradation pattern, including type and degree, which can barely be satisfied in dynamic practical scenarios. In contrast, all-in-one image restoration (AiOIR) eliminates multiple degradations within a unified model to circumvent the aforementioned issues. However, according to our causal analysis, we disclose that two significant defects still exacerbate the effectiveness and generalization of AiOIR models: 1) the spurious correlation between non-degradation semantic features and degradation patterns; 2) the biased estimation of degradation patterns. To obtain the true causation between degraded images and restored images, we propose Causal-deconfounding Wavelet-disentangled Prompt Network (CWP-Net) to perform effective AiOIR. CWP-Net introduces two modules for decoupling, i.e., wavelet attention module of encoder and wavelet attention module of decoder. These modules explicitly disentangle the degradation and semantic features to tackle the issue of spurious correlation. To address the issue stemming from the biased estimation of degradation patterns, CWP-Net leverages a wavelet prompt block to generate the alternative variable for causal deconfounding. Extensive experiments on two all-in-one settings prove the effectiveness and superior performance of our proposed CWP-Net over the state-of-the-art AiOIR methods.
BibTeX
@article{wang2026all,
  author = {Bingnan Wang and Bin Qin and Jiangmeng Li and Fanjiang Xu and Fuchun Sun and Hui Xiong},
  title = {{All-in-One Image Restoration via Causal-Deconfounding Wavelet-Disentangled Prompt Network}},
  journal = {IEEE Trans. Image Process.},
  year = {2026},
  doi = {10.1109/tip.2026.3675478},
}

Loading related content...

Figure