Any Image Restoration via Efficient Spatial-Frequency Degradation Adaptation

Bin Ren, Eduard Zamfir, Zongwei Wu, Yawei Li, Yidi Li, Danda Pani Paudel, Radu Timofte, Ming-Hsuan Yang, Luc Van Gool, Nicu Sebe

TL;DR

AnyIR is a lightweight, prompt-free "All-in-One" image restoration framework capable of handling multiple degradations (like noise, blur, haze, and rain) within a single model checkpoint. By utilizing an innovative channel-splitting strategy and parallel spatial-frequency fusion, it achieves state-of-the-art performance while slashing parameters by 84% and FLOPs by 80% compared to baseline architectures.

What Problem Does This Paper Address?

Real-world images frequently suffer from multiple, overlapping distortions—such as a low-light photo that is also blurry and obscured by rain. Traditional image restoration (IR) networks are highly specialized, requiring separate models for denoising, deblurring, or deraining. Deploying a fleet of these specialized models on resource-constrained edge devices (like smartphones) creates massive storage and computational overhead.

To solve this, recent "All-in-One" methods have emerged. However, they typically rely on multiple task-specific encoders, complex visual prompts, or heavy large language models (LLMs) to guide the network. These additions significantly bloat model size and increase inference latency. AnyIR addresses this gap by introducing a pure "one-to-one" mapping framework (one encoder, one decoder) that implicitly learns to separate degradation artifacts from clean image structures without any external prompts or routing mechanisms.

Figure 1: Mathematical formulations of mainstream paradigms for All-in-One image restoration. (a) m×(1−1) mapping: each degradation type zi requires an independent encoder–decoder pair (Ei, Di). (b) m−1 mapping with shared decoder: multiple task-specific encoders Ei share a single decoder D. (c) 1−1 mapping with prompts: a unified encoder–decoder (E, D) is conditioned on external prompts p(z). (d) Our proposed 1−1 mapping: a pure unified framework where (E, D) directly learns degradation-invariant yet discriminative representations, without prompts or multiple encoders.

Methods

The core architecture of AnyIR relies on a U-Shaped network built out of a novel Degradation Adaptation Block (DAB). The block achieves its extreme efficiency through three main mechanisms:

  1. Skip-Split Partitioning: Instead of passing all feature channels through computationally heavy self-attention layers, AnyIR interleaves and splits the channels into two halves. One half is routed to a global attention branch to capture long-range dependencies, while the other half goes to a localized gated branch. This reduces the quadratic complexity of the attention mechanism.
  2. Gated Degradation Adaptation (GatedDA): The local branch utilizes a gated convolutional block that dynamically adjusts an internal "temperature" based on the input's channel-wise mean and standard deviation. This allows the network to adaptively respond to non-uniform, region-specific degradation intensities (e.g., localized rain streaks or uneven haze).
  3. Spatial-Frequency Parallel Fusion: To merge the global and local pathways, AnyIR processes features across both spatial and frequency domains in parallel. The frequency branch utilizes a lightweight 2D Fast Fourier Transform (FFT) to stabilize global statistics and structural alignment, which is especially effective for compound degradations.
Overall framework of the proposed AnyIR and the Degradation Adaptation Block (DAB).

Datasets

The authors evaluated AnyIR across several diverse benchmarks:

  • 3-Degradation Benchmark: Composed of BSD400 + WED (for denoising), Rain100L (for deraining), and SOTS (for dehazing). Tested on standard datasets like BSD68 and Urban100.
  • 5-Degradation Benchmark: Extends the 3-degradation setup by adding the GoPro dataset (for deblurring) and the LOL-v1 dataset (for low-light enhancement).
  • CDD11 (Composited Degradations): A challenging benchmark combining mixed real-world distortions (e.g., low-light + haze + rain).
  • Zero-Shot Evaluation: Evaluated on the CSD dataset (for desnowing) and the UIEB dataset (for underwater image enhancement) to test out-of-domain generalization.

Key Insights and Ideas

  • Scaling Down is the New Advantage: While the broader computer vision field is focused on scaling up model sizes or injecting massive multi-modal priors, AnyIR demonstrates that tight architectural constraints and domain-specific design (like spatial-frequency balancing) can outperform brute-force scaling.
  • Interleaved Splitting Preserves Diversity: Directly splitting channels into contiguous halves often leads to uneven feature distributions. Interleaving them via a "skip-split" ensures that both the global attention and local convolution pathways maintain a diverse, representative sample of the latent space.
  • Dynamic Local Temperature Tuning: By computing simple channel-wise statistics (mean and variance) on the fly, a lightweight convolutional block can mimic the degradation-awareness of heavy prompt-based networks.
Structure of the GatedDA module.

Key Results

  • Massive Efficiency Gains: Compared to the baseline PromptIR, AnyIR-T (Tiny) slashes parameters by 83.9% (5.74M vs 35.59M) and reduces FLOPs by 80.3% (26G vs 132G).
  • Superior Restoration Quality: On the 3-degradation benchmark, AnyIR outperforms PromptIR by an average of 0.74 dB PSNR, showing particularly strong gains on deraining (+2.14 dB).
  • Excellent Zero-Shot Generalization: When tested on completely unseen underwater images (UIEB), AnyIR-S achieved a PSNR of 16.78 dB, outperforming the previous best method (MoCE-IR) by +0.87 dB despite being significantly more compact.

Limitations and Future Work

  • Data Distribution Imbalance: The benchmark training sets suffer from an imbalanced composition where certain degradations (like dehazing) dominate the sample count. This can bias the model, an issue the authors hope to fix using curriculum-style degradation scheduling or data reweighting.
  • Domain-Specific Assumptions: The spatial-frequency fusion strategy assumes that distortions provide complementary cues across both domains. If a degradation is purely uniform and strictly confined to a single domain (e.g., purely frequency-structured noise), the performance gains of this dual-branch approach may be limited.

Summary updated

BibTeX
@article{ren2026any,
  author = {Bin Ren and Eduard Zamfir and Zongwei Wu and Yawei Li and Yidi Li and Danda Pani Paudel and Radu Timofte and Ming-Hsuan Yang and Luc Van Gool and Nicu Sebe},
  title = {{Any Image Restoration via Efficient Spatial-Frequency Degradation Adaptation}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure