arXiv:2610.29108cs.CVOct 2026

Manuscript Offprint

arXiv:2610.29108

WaFIR: Wavelet-Fourier Mixture-of-Experts with Subband-Adaptive Routing for Blind All-in-One Image Restoration

Trong Nhan Nguyen, Vu Hoang Minh Doan, Thanh Dat Le, Truong Tien Vo, Thi Thu Ha Vu, Tan Hung Vo, Jaeyeop Choi, Junghwan Oh, Truong-Son Hy

Abstract

Blind all-in-one image restoration must adapt a shared model to heterogeneous and sometimes mixed degradations without a task label at test time. We introduce WaFIR, a decoder module that decomposes features into Haar subbands, summarizes each subband with a compact Fourier descriptor, and routes it to prompt-conditioned spectral modulation experts. Unlike image-level frequency conditioning, WaFIR makes routing decisions at the subband level, enabling frequency-specific processing while retaining the task context learned by the backbone. Under a unified training and evaluation protocol for denoising, deraining, and dehazing, WaFIR improves average PSNR over the three tasks by 0.48 dB over the PromptIR baseline and by 0.38 dB over the recent Up-Restorer. Matched-capacity and routing controls show that the gain is not explained by additional parameters alone. On unseen noise intensities, descriptor-based routing is more robust than a discrete label-conditioned alternative and remains on par under compound degradations, while routing analyses show stable subband-dependent expert use across degradation types. These results support subband frequency structure as an interpretable complement to prompt-based conditioning for blind image restoration. Code is available at https://anonymous.4open.science/r/WaFIR/README.md.

1 Introduction

Real-world images suffer from diverse degradations such as sensor noise, haze and rain streak. Classical restoration handles these with separate task-specific models Zhang et al. (2017); Zamir et al. (2021); Wei et al. (2018), an approach that scales poorly as the number of tasks grows. All-in-one restoration instead recovers multiple degradations with a single model Li et al. (2022); Valanarasu, Yasarla, and Patel (2022); Potlapalli et al. (2023); Cui et al. (2025); Zamfir et al. (2025), where the central question is how to adapt computation to each input. Existing methods answer this with different conditioning signals, including contrastive degradation embeddings Li et al. (2022), learnable prompts Potlapalli et al. (2023), physics-inspired latent variables Liu et al. (2025), and uncertainty-based task weighting Wu et al. (2025). Despite architectural differences, all of them condition adaptation on a representation that summarizes the feature map without resolving its spectral organization. Such signals identify the overall restoration context but carry little information about how degradation energy is distributed across frequency subbands, so feature regions with distinct spectral characteristics may receive similar routing decisions. This limitation matters most when models must generalize beyond their training conditions. Degradations that produce similar global representations often differ sharply in spectral distribution. Haze alters low-frequency components, rain streaks concentrate directional energy in middle-to-high-frequency subbands, and additive noise, though approximately uniform across the spectrum, dominates high frequencies because natural-image spectra decay with frequency. These characteristics are more naturally distinguished in frequency subspaces than by global summaries, and because they are computable directly from intermediate features (Supplementary Figure S1), they remain available even when degradation types or intensities are unseen at test time. We therefore ask whether subband-level spectral structure provides a more informative routing signal than spectrally unresolved representations, with prompt features supplying complementary task context. Building on this, we propose WaFIR (Wavelet–Fourier Image Restoration), which augments PromptIR Potlapalli et al. (2023) with a Spectral Mixture-of-Experts (SPMoE) module at each decoder stage. SPMoE decomposes each decoder feature into four Haar subbands (LL, LH, HL, HH), extracts a compact six-dimensional Fourier descriptor per subband, and routes each subband through a sparse top-k gate to specialized Fourier experts that perform prompt-conditioned magnitude modulation. Routing is conditioned jointly on the descriptor and the pooled prompt embedding. Wavelets localize where and at what scale spectral information sits, whereas Fourier modulation adapts which frequencies are corrected. Analyses support this principle. Routing weights organize primarily by wavelet subband while carrying only chance-level linearly decodable degradation information, indicating that experts self-organize

Figure

Figure 1: Overall architecture of WaFIR. A PromptIR-style U-Net is augmented at each decoder level by three modules. (1) SPMoE decomposes the feature via Haar DWT into directional subbands (LL/LH/HL/HH) for multi-resolution spatial-scale localization, describes each with a 6-D Fourier descriptor (SD), routes it to top-k Fourier Experts (SR) that modulate magnitude and phase in the global frequency domain, and reconstructs via cross-subband interaction (CSI) and Haar IDWT. Wavelet and FFT are complementary: the wavelet gives spatial locality a global FFT lacks; the FFT gives frequency (magnitude+phase) selectivity a wavelet subband lacks. (2) PGM generates a degradation-adaptive prompt P; (3) DIM fuses P with the spectral output S and the skip connection for the next decoder.

by frequency subspace rather than degradation identity. Under unseen noise intensities, descriptor and prompt routing generalizes more robustly than discrete label-conditioned routing, and it remains on par or better under compound degradations. Our contributions are:

  1. Subband-level spectral routing. We introduce per-subband Fourier descriptors as an input-derived routing signal for unified restoration, jointly conditioning sparse expert routing with pooled prompt features.

  2. Wavelet-Fourier expert design. We propose the SP-MoE module, pairing Haar decomposition with prompt-conditioned Fourier spectral-modulation experts, stabilized by a zero-initialized residual gate and a per-subband load-balancing loss.

  3. Comprehensive evaluation and interpretable routing. We show that WaFIR improves the PromptIR backbone on denoising and deraining, is competitive with the state of the art overall, and generalizes without fine-tuning to unseen datasets and an industrial domain. We further show that its experts self-organize by frequency subband, and that descriptor-based routing is more robust than a label-conditioned alternative under unseen noise intensities.

References (46)