TL;DR
FAPE-IR bridges semantic reasoning and frequency-domain processing to deliver a highly effective "All-in-One" image restoration framework. By pairing a frozen Multimodal Large Language Model (MLLM) planner with a diffusion-based executor running a frequency-specialized Mixture-of-Experts (MoE) module, it achieves state-of-the-art restoration across multiple degradations and generalizes remarkably well to unseen compound corruptions.
What Problem Does This Paper Address?
Real-world images frequently suffer from a messy combination of degradations—such as blur, rain, low light, and noise. While specialized models excel at fixing a single issue, "All-in-One" Image Restoration (AIO-IR) aims to handle multiple corruptions within a single unified network.
However, existing AIO-IR methods hit a wall due to two main architectural flaws:
- Gradient Conflicts: Multi-branch approaches that inject task-level priors often suffer from conflicting gradients during training, making it hard for a single shared backbone to optimize for all tasks simultaneously.
- Gradient Isolation: Routing or clustering methods separate tasks so strictly in the latent space that the model fails to learn shared representations or compositionality across related degradations.
Crucially, both paradigms lack a semantic understanding of the degradation context, treating image restoration as a blind pixel-mapping problem.
Methods
FAPE-IR introduces a decoupled Planning and Execution paradigm that explicitly links semantic understanding with frequency-domain restoration.
1. Frequency-Aware Planner
The framework first extracts a label-free pool of low-level image statistics (e.g., gradient responses for blur, dark-channel statistics for haze). These statistics, along with the degraded image, are fed into a frozen MLLM (Qwen2.5-VL). Guided by expert rules, the MLLM acts as a planner, outputting a structured text plan that identifies the degradation type, the primary frequency band requiring attention (high vs. low), and a suggested restoration pipeline.
2. Restoration Executor with LoRA-MoE
The execution engine is a diffusion model based on the FLUX transformer. To keep the model parameter-efficient, the authors introduce a Frequency-Aware LoRA-MoE module containing just two experts: one specialized for high-frequency bands (targeting noise, rain streaks, and sharp details) and one for low-frequency bands (targeting haze and illumination).
3. Dual-End Gating Mechanism
To route features dynamically, the MoE uses a dual gating system:
- Planner-side Text Router: Uses the semantic tokens generated by the MLLM to propose an expert.
- Executor-side FIR Spectral Router: Uses a depthwise Finite Impulse Response (FIR) low-pass filter to measure the actual energy distribution of intermediate generation tokens, refining the routing choice based on real-time spectral features.
4. Training Objectives
Instead of standard flow-matching, FAPE-IR utilizes adversarial training with a SigLIP-v2 discriminator to achieve higher fidelity with fewer artifacts. An energy-based frequency regularization loss is also applied to the adapter outputs to strictly enforce the low/high-band specialization of the MoE experts.
Datasets
The model was trained and evaluated on a massive corpus of standard restoration benchmarks:
- Weather-related: Snow100K, Rain100-L/H, NTIRE 2025 Challenge, and OTS/ITS datasets.
- Deblurring & Denoising: RealBlur, GoPro, BSD400, WaterlooED, and BSD68.
- Low-Light & Super-Resolution: LOL-v1/v2, LSDIR, and FFHQ.
- Compound Degradations: Evaluated zero-shot on the CDD-11 dataset to test real-world multi-degradation performance.
Key Insights and Ideas
- The Semantics-Spectrum Link: High-level language models can effectively guide low-level pixel manipulation if they are prompted to reason about frequency bands rather than abstract task labels.
- Frequency Sharing & Isolation: Grouping tasks by frequency characteristics allows the model to share knowledge where it matters (e.g., rain and snow both affect high frequencies) while isolating conflicting gradients (e.g., low-light enhancement vs. deblurring).
- Adversarial Diffusion Fine-Tuning: The authors demonstrate theoretically and empirically that adversarial fine-tuning on top of pretrained diffusion weights yields significantly cleaner, more structurally sound images than standard generative objectives.
Key Results
- Massive Weather Gains: FAPE-IR outperforms previous state-of-the-art methods on weather tasks by a substantial 6–8 dB PSNR. For example, on deraining, it boosts PSNR from a baseline of 21.94 dB to 28.30 dB, while drastically reducing perceptual distance metrics (LPIPS, FID).
- Super-Resolution Dominance: It beats all compared specialized SR models (like StableSR and SeeSR) across all five evaluation metrics, achieving a PSNR of 28.53 dB.
- Zero-Shot Generalization: Despite being trained purely on single degradations, FAPE-IR successfully untangles compound corruptions (e.g., simultaneous haze and rain) on the CDD-11 benchmark.
- Inference Efficiency: At 1.57 seconds per image on an H200 GPU, FAPE-IR is orders of magnitude faster than heavy autoregressive alternatives like PURE (which takes 201.67 seconds).
Limitations and Future Work
- Computational Footprint: While much faster than some generative baselines, an inference time of 1.57 seconds prevents real-time deployment (e.g., video processing or edge devices).
- Memory Usage: The framework requires a significant memory footprint (38.92 GB during inference) due to the combined size of the FLUX transformer backbone and the Qwen2.5-VL planner.
- Future Directions: The authors suggest that distilling this framework's planning and execution capabilities into smaller, more compact student networks is a promising path forward.
Summary updated