AdaIR: Adaptive All-in-One Image Restoration via Frequency Mining and Modulation

Yuning Cui, Syed Waqas Zamir, Salman H. Khan, Alois Knoll, Mubarak Shah, Fahad Shahbaz Khan

Abstract

Image restoration is a fundamental task in computer vision, traditionally addressed by specialized models for specific degradations like noise, haze, or rain. Recent "all-in-one" models attempt to unify these tasks but often struggle by operating exclusively in the spatial domain. We introduce AdaIR (Adaptive All-in-One Image Restoration), a framework that utilizes frequency mining and modulation to adaptively recover images. By analyzing the frequency spectra of degraded inputs, AdaIR identifies task-specific signatures and modulates features across frequency bands. Our approach achieves state-of-the-art results on diverse benchmarks, demonstrating superior fidelity and efficiency.

Introduction

In computer vision, image restoration aims to uncover the clean ground truth hidden beneath degradations. While deep learning has revolutionized this field, most state-of-the-art (SOTA) models are task-specific. "All-in-one" models have emerged to handle multiple degradations with a single network, but they typically operate in the spatial domain, treating all pixels uniformly. AdaIR addresses this limitation by explicitly "mining" the frequency domain, recognizing that different degradations—such as haze, rain, and noise—affect distinct parts of an image's frequency spectrum.

Methodology: Frequency-Aware Restoration

The core of AdaIR is the Adaptive Frequency Learning Block (AFLB), integrated into a Transformer-based U-Net architecture. The AFLB operates in two primary stages:

  1. Frequency Mining Module (FMiM): Using a Fast Fourier Transform (FFT), the model converts spatial features into the spectral domain. A dynamic Mask Generation Block (MGB) learns to separate the spectrum into low- and high-frequency components based on the specific input, rather than using fixed filters.
  2. Frequency Modulation Module (FMoM): This module facilitates interaction between frequency bands. The H-L Unit uses high-frequency details to provide spatial attention to the low-frequency branch, while the L-H Unit uses global context from low frequencies to guide the removal of high-frequency artifacts like noise.

Key Insights

Frequency Signatures

Empirical analysis confirms that different degradations possess unique spectral signatures. As shown in Figure 1, the residual difference between degraded and clean images manifests as distinct Fourier spectra. Haze and low-light conditions primarily impact low-frequency components (global structure), while noise and rain contaminate high-frequency details.

Figure 1: Visualization of degradation types, their corresponding Fourier spectra, and frequency amplitude plots.

Discriminative Feature Context

AdaIR's intermediate features naturally cluster by degradation type, even without explicit task labels. This suggests the model implicitly identifies the degradation type to apply the appropriate restoration strategy. t-SNE visualizations demonstrate that AdaIR achieves significantly better feature separation compared to previous methods.

Figure 4: t-SNE visualization showing how AdaIR's features naturally cluster by degradation type (Denoise, Derain, Dehaze).

Experimental Results

AdaIR sets new benchmarks for all-in-one restoration across several standard datasets:

  • Performance: In a three-task setting (Dehaze, Derain, Denoise), AdaIR achieved an average PSNR of 32.69 dB, outperforming the previous SOTA, PromptIR, by 0.63 dB.
  • Deraining Excellence: On the Rain100L dataset, AdaIR delivered a substantial 2.27 dB improvement over existing models.
  • Efficiency: Despite its frequency-domain processing, AdaIR is more efficient than competitors, utilizing approximately 28.77M parameters and 147.45G FLOPs, making it lighter than PromptIR.

Conclusion

AdaIR demonstrates that frequency mining and modulation are powerful tools for unified image restoration. By adaptively attending to the spectral characteristics of degradations, it achieves superior performance and efficiency. Future work may extend this frequency-aware approach to video restoration and more complex, mixed-degradation scenarios.

Summary updated

BibTeX
@inproceedings{cui2025adair,
  author = {Yuning Cui and Syed Waqas Zamir and Salman H. Khan and Alois Knoll and Mubarak Shah and Fahad Shahbaz Khan},
  title = {{AdaIR: Adaptive All-in-One Image Restoration via Frequency Mining and Modulation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=M5t0WvjfCg},
}
Figure