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.
Existing models struggle with this composite image restoration setting for two reasons:
- 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.
- 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.
- 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