Learning Where and What to Restore for Composite Image Restoration

Jiachen Jiang, Tianyu Ding, Ke Zhang, Jinxin Zhou, Tianyi Chen, Ilya Zharkov, Zhihui Zhu, Luming LiangNeurIPS 2026

TL;DR

Real-world photos rarely suffer from just one neat problem; a nighttime dashcam shot in a storm is dark, hazy, and rainy all at once. This paper introduces CART, an image restoration network that stops treating every pixel and every degradation equally. By dynamically routing tough image patches to heavier-duty compute blocks and untangling overlapping corruptions into their core ingredients, CART delivers cleaner restorations while running faster than existing all-in-one models.

What Problem Does This Paper Address?

Most "all-in-one" image restoration models operate under a polite fiction: an image is either blurry, or noisy, or rainy. In reality—think autonomous driving or outdoor surveillance—corruptions pile up simultaneously.

Figure 2: Real-world samples [59] contain multi- ple co-occurring degradations rather than one dom- inant corruption; proportions are predicted by our channel mixer (Section 3.2).

Existing models struggle with this composite image restoration setting for two reasons:

  1. Uniform spatial effort: A flat patch of hazy sky takes much less effort to fix than a rain-streaked, intricately textured building edge. Yet standard architectures spend the exact same compute budget on every single pixel, wasting energy on easy spots and starving complex ones.
  2. Collapsed task identity: Many models rely on a single global prompt or label to figure out what's wrong with an image. When haze and rain co-occur, collapsing them into one blended signal—or treating every possible combination as an isolated, unrelated category—prevents the network from sharing knowledge across overlapping tasks.

Methods

Built on a standard four-level U-Net encoder-decoder backbone, CART (Composite-Adaptive Routing and Task Conditioning) alternates between two novel Mixture-of-Experts (MoE) modules to jointly decide where to work hard and what to fix.

Figure 1: Composite image restoration requires jointly deciding where and what to restore. The degraded input (center) is processed along two complementary axes. Left (where): each spatial patch is routed to one of the capacity-graded experts (e.g. E1 to E4, simple to complex). Flat regions are handled by lightweight experts, while detailed regions activate higher-capacity ones. Right (what): the expert chosen at each decoder block traces a curve across capacity levels; each elemental degradation (Low-light, Rain) follows its own characteristic trajectory, and the composite Low+Rain path (dashed) blends those of its single-degradation constituents.
  • Spatial Mixer (Where): Instead of a simple binary "easy vs. hard" switch used in prior dynamic networks, each spatial block houses $K=4$ windowed self-attention experts with linearly increasing hidden dimensions (a graded capacity spectrum). A lightweight router looks at local patch features, fine-grained structural cues from early encoder layers, and spatial coordinates, assigning each patch to a single expert. During training, Gumbel-Softmax makes these hard choices differentiable, paired with a standard load-balancing loss so the router doesn't lazily dump everything onto one expert.
  • Channel Mixer (What): At the U-Net's bottleneck, a module extracts a global task feature. Crucially, the authors supervise this feature using multi-hot binary cross-entropy—predicting independent probabilities for each base degradation (e.g., [Low-light: 1, Haze: 1, Rain: 0, Snow: 0]) rather than a single softmax class over all $2^M - 1$ combinations. A stop-gradient keeps this classification loss from corrupting the shared encoder's reconstruction features. In the decoder, a router uses this compositional task feature to steer the whole image through one of $K$ channel-attention experts per block, requiring zero manual labels at inference time.

Datasets

No new datasets are introduced; the authors evaluate on established synthetic and real-world benchmarks:

  • CDD-11 (Composite Restoration): Contains images with 11 combinations (4 single, 5 two-way, and 2 three-way mixtures) of low-light, haze, rain, and snow.
  • Conventional 3-Task (3D) & 5-Task (5D) Benchmarks: Standard single-degradation suites testing Gaussian denoising (BSD400, WED, BSD68), deraining (Rain100L), and dehazing (SOTS), with 5D adding deblurring (GoPro) and low-light enhancement (LOL-v1).
  • WeatherBench: A real-world adverse weather dataset used for zero-shot transfer testing.

Key Insights and Ideas

  • Difficulty sorting emerges naturally: Nobody tells the spatial router which patches are "hard." Yet when the authors measured the actual error (MSE) between degraded and clean patches, patches routed to the smallest expert ($E_1$) had the lowest error, scaling monotonically up to the largest expert ($E_4$). Scrambling these learned assignments at test time immediately tanked image quality, proving the routing—not just having extra parameters—does the heavy lifting.
  • Compositional geometry in latent space: Because of the multi-hot supervision, PCA projections of the bottleneck task features show that "Haze+Rain" clusters sit neatly between pure "Haze" and pure "Rain." Consequently, when a composite image travels through the decoder, its chosen path of channel experts naturally blends the trajectories of its individual ingredients. Replacing multi-hot supervision with an 11-way single-label classifier caused the single biggest performance drop in their ablations ($-0.80$ dB PSNR).

Key Results

  • Composite State-of-the-Art: On CDD-11, CART achieves an average PSNR of 29.95 dB, beating the strongest prior baseline (MoCE-IR) by +0.90 dB overall, with massive margins on tough mixtures like Haze+Snow (+2.09 dB) and Haze+Rain (+1.68 dB).
  • Single-Task Generalization: It leads on standard single-degradation benchmarks too, hitting 33.10 dB (+0.37 dB) on 3D and 30.87 dB (+0.29 dB) on 5D.
  • Speed & Efficiency: Because each patch or image activates only one expert per block, CART uses 19.47 GFLOPs (26% less compute than MoCE-IR) and runs fastest among all tested methods at 32.11 ms per image. The trade-off is memory: storing all $K$ experts bumps parameter count to 32.58M (vs. MoCE-IR's 25.35M).

Limitations and Future Work

  • Closed-world assumption: CART only untangles mixtures made from elemental degradations it saw during training. It hasn't been tested on completely unseen corruption types (out-of-distribution generalization).
  • The synthetic-to-real gap: When tested zero-shot on real-world WeatherBench images, CART beats MoCE-IR (21.66 dB vs. 19.96 dB PSNR), but the low absolute numbers highlight a clear gap between synthetic training data and messy real-world physics.
  • Future directions: The authors point toward training directly on real-world data, slimming down expert parameter footprints for real-time edge deployment, and extending CART to video restoration—where keeping patch routing temporally stable from frame to frame without flickering will be a fascinating puzzle.

Summary updated

Abstract

Real-world degraded images often contain multiple co-occurring degradation types, making composite image restoration fundamentally different from the single-degradation setting assumed by most existing all-in-one methods. These methods typically apply uniform spatial computation and single-label task conditioning, limiting both spatial adaptivity and explicit modeling of degradation mixtures. We propose **CART** (**C**omposite-**A**daptive **R**outing and **T**ask Conditioning), a unified framework that jointly decides *where* to spend computation and *what* degradation cues should guide restoration: a spatial mixer routes patches to graded-capacity experts by local restoration difficulty, and a channel mixer routes each image through degradation-specific experts, conditioned on a global task feature with multi-hot classification supervision. Empirically, CART achieves state-of-the-art performance for composite degradation restoration on CDD-11 and remains competitive on the conventional 3-task and 5-task all-in-one benchmarks.
BibTeX
@inproceedings{jiang2026learning,
  author = {Jiachen Jiang and Tianyu Ding and Ke Zhang and Jinxin Zhou and Tianyi Chen and Ilya Zharkov and Zhihui Zhu and Luming Liang},
  title = {{Learning Where and What to Restore for Composite Image Restoration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zUZcE6BopT},
}
Figure