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 · OpenReview

Abstract

Restoring any degraded image efficiently via just one model has become increasingly significant and impactful, especially with the proliferation of mobile devices. Traditional solutions typically involve training dedicated models per degradation, resulting in inefficiency and redundancy. More recent approaches either introduce additional modules to learn visual prompts, significantly increasing model size, or incorporate cross-modal transfer from large language models trained on vast datasets, adding complexity to the system architecture. In contrast, our approach, termed AnyIR, takes a unified path that leverages inherent similarity across various degradations to enable both efficient and comprehensive restoration through a joint embedding mechanism, without scaling up the model or relying on large language models. Specifically, we examine the sub-latent space of each input, identifying key components and reweighting them first in a gated manner. To fuse the intrinsic degradation awareness and the contextualized attention, a spatial-frequency parallel fusion strategy is proposed for enhancing spatial-aware local-global interactions and enriching the restoration details from the frequency perspective. Extensive benchmarking in the all-in-one restoration setting confirms AnyIR's SOTA performance, reducing model complexity by around 82% in parameters and 85% in FLOPs.

Introduction

Image restoration (IR) is a fundamental challenge in computer vision, aiming to recover clean images from various degradations such as noise, rain, or haze. Traditionally, researchers built specialized models for every specific problem—one for denoising, one for dehazing, and so on.

The recent trend has shifted toward "all-in-one" models that can handle multiple tasks simultaneously. However, these often come with a "complexity tax," typically relying on task-specific encoders, external prompting (text or visual cues), or massive architectures borrowed from large language models (LLMs). These approaches are often too heavy for mobile or edge devices. AnyIR addresses this by proving that superior restoration can be achieved through clever architectural design—specifically by exploiting inherent similarities between different types of image degradation—without the overhead of prompts or massive parameter counts.

Comparison of image restoration paradigms: (a) multiple specialized models, (b) multi-encoder single-decoder, (c) prompt-based single model, and (d) the proposed AnyIR unified 1-1 mapping.

Methodology

The core of AnyIR is the Degradation Adaptation Block (DAB), which replaces standard transformer or convolutional blocks. It introduces three key innovations:

  • Skip-Split Partitioning: Instead of processing all feature channels uniformly, AnyIR interleaves them. Half the channels go to a global attention branch for long-range context, and the other half go to a local gated branch. This ensures both branches have access to diverse features, reducing redundancy.
  • Gated Degradation Adaptation (GatedDA): This "local" specialist uses a temperature-adjusted gating mechanism that analyzes the mean and variance of the input to adaptively reweight features. It disentangles features into ego, shifted, and scaled components, allowing the model to surgically target localized artifacts like rain streaks.
  • Spatial-Frequency Parallel Fusion: Restoration requires both sharp local details and global structural consistency. AnyIR processes features in the spatial domain (for local fidelity) and the frequency domain (using Fast Fourier Transforms to align global structures) simultaneously, then fuses them using a learnable weighting scheme.

Experimental Results

The authors evaluated AnyIR across a massive battery of benchmarks, including standard IR tasks (SOTS, Rain100L, BSD68), extended tasks (GoPro, LOLv1), and mixed degradations (CDD11).

Efficiency and Performance

AnyIR sets a new efficiency benchmark for the field. On a 3-degradation benchmark (haze, rain, noise), AnyIR outperformed PromptIR by 0.74 dB PSNR on average while achieving massive compression:

  • Parameters: 5.74M (vs. PromptIR’s 35.6M, an ~84% reduction).
  • Computational Cost: 26G FLOPs (vs. 132G, an ~80% reduction).
  • Inference Speed: Processed nearly 2 frames per second (FPS), a ~50% speedup over its closest competitor.

Zero-Shot Generalization

To test if the model truly learned "restoration" rather than just memorizing tasks, it was tested on CSD (Desnowing) and UIEB (Underwater Enhancement) without any task-specific fine-tuning. AnyIR outperformed specialized models on these tasks, proving its robustness to out-of-distribution data.

Conclusion

AnyIR demonstrates that high-performance "all-in-one" restoration is an architectural choice rather than a matter of scale. By splitting the workload between global attention and local gating, AnyIR avoids the quadratic complexity of full-scale transformers while improving accuracy. While future work will address data imbalances and explore adaptive routing, AnyIR currently provides a state-of-the-art, mobile-friendly solution for comprehensive image restoration.

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