UniRestorer: Universal Image Restoration via Adaptively Estimating Image Degradation at Proper Granularity

Jingbo Lin, Zhilu Zhang, Wenbo Li, Renjing Pei, Hang Xu, Hongzhi Zhang, Wangmeng Zuo

TL;DR

UniRestorer introduces a multi-granularity approach to all-in-one image restoration, addressing the critical vulnerability of existing methods to degradation estimation errors. By dynamically balancing specific fine-grained experts with robust coarse-grained experts based on estimation confidence, it significantly outperforms current state-of-the-art models and effectively closes the performance gap with single-task specialists.

What Problem Does This Paper Address?

Image restoration aims to recover high-quality images from degraded versions plagued by noise, blur, rain, or low-light conditions. Recently, the field has shifted toward "all-in-one" models capable of handling multiple corruptions within a single framework. However, existing approaches typically fall into two flawed categories:

  1. Degradation-agnostic models: These treat all corruptions the same way, leading to severe task conflicts (e.g., the operations required to remove blur directly conflict with those needed to suppress noise).
  2. Degradation-aware models: These attempt to estimate the specific corruption type to guide the restoration process. Unfortunately, the degradation space is vast and diverse; when the model inevitably misestimates the corruption, it routes the image to the wrong restoration path, resulting in poor visual quality.

UniRestorer addresses this dilemma by introducing a framework that is not only aware of degradation types but is also inherently robust to estimation errors.

Different architectural approaches to all-in-one image restoration compared to the proposed multi-granularity framework.

Methods

The core innovation of UniRestorer is its Multi-Granularity Mixture-of-Experts (MoE) design and its unique dual-routing mechanism:

  • Hierarchical Degradation Clustering: The authors use a fine-grained degradation representation extractor (built on DA-CLIP) to map out image corruptions. They then perform unsupervised hierarchical clustering (K-means) to divide the degradation space into three levels of granularity: the coarsest level (1 cluster), a medium level (7 clusters), and the finest level (19 clusters).
  • Multi-Granularity MoE: Instead of assigning one expert per task, experts are trained to specialize at different levels of the hierarchy. Fine-grained experts master highly specific corruptions (e.g., heavy snow), while coarse-grained experts generalize across broader categories (e.g., general weather conditions).
  • Routing via Degradation and Granularity Estimation: When an image is processed, UniRestorer predicts both the degradation type and the granularity (which acts as a proxy for prediction confidence). If the degradation estimation is ambiguous or difficult, the granularity router automatically selects a safer, coarse-grained expert. If the model is highly confident, it routes the image to a specialized, fine-grained expert to maximize restoration quality.
  • Instruction Mode: For scenarios where the user knows the exact degradation type, UniRestorer offers an optional "instruction mode" that applies binary masks to prune irrelevant branches, ensuring highly efficient and accurate routing.

Datasets

The framework was trained and evaluated across a comprehensive suite of datasets:

  • Single-Degradation Tasks: Rain100L (deraining), RESIDE (dehazing), DFBW (denoising and compression artifact removal), GoPro (deblurring), LOLv1 (low-light enhancement), and Snow100K (desnowing). Testing also included the LIVE1 dataset.
  • Mixed-Degradation Tasks: The authors synthesized complex, multi-corruption datasets using clean images from DF2K (DIV2K + Flickr2K) to test both in-distribution and out-of-distribution performance.
  • Real-World & Unseen Generalization: Evaluated using LHP, LOLv2, RealSnow, RainDrop, TOLED (under-display camera), and UIEB (underwater images).

Key Insights and Ideas

  • Embracing Uncertainty: Rather than trying to engineer a flawless degradation estimator, the authors accepted that estimation errors are inevitable. Introducing a "fallback" mechanism via coarser-grained experts makes the entire system resilient.
  • The Limits of Vanilla Scaling: The paper demonstrates that simply scaling up model parameters (e.g., moving to a "Large" version of standard architectures like Restormer) yields diminishing returns for all-in-one restoration. The primary bottleneck is intelligent routing and representation, not raw model capacity.
  • Structural Flexibility: The multi-granularity MoE framework is orthogonal to the underlying restoration architecture. The authors successfully demonstrated this by swapping out the heavy Restormer baseline for lightweight alternatives like NAFNet while maintaining strong performance gains.

Key Results

UniRestorer achieved state-of-the-art performance across both single- and mixed-degradation benchmarks:

  • Single-Degradation Dominance: On the 7-task benchmark, UniRestorer achieved an average PSNR of 36.71 dB, vastly outperforming strong baselines like Restormer (28.27 dB) and previous MoE methods like MoCEIR (31.39 dB).
  • Beating Single-Task Specialists: When running in instruction mode, UniRestorer matched or exceeded the performance of single-task models that were trained exclusively on individual datasets.
  • Real-World Robustness: On real-world datasets, UniRestorer achieved an average PSNR of 29.70 dB, compared to NAFNet's 26.33 dB, proving its synthetic training transfers effectively to real-world distributions.
Radar charts illustrating UniRestorer's performance gains over task-agnostic and all-in-one baselines across various degradation settings.

Limitations and Future Work

Despite its strong performance, the authors note two primary limitations:

  • Data Scale Constraints: The model's performance on certain tasks is bottlenecked by the limited size of publicly available datasets (for instance, Rain100L contains only 200 training pairs). Scaling up high-quality training data is a priority for future iterations.
  • Real-World Realism: While the synthetic pipeline is complex, it still struggles to perfectly mimic the intricate, non-linear combinations of degradations found in real-world camera sensors. Future work will focus on better aligning the synthetic degradation space with real-world physics.

Summary updated

BibTeX
@inproceedings{lin2026unirestorer,
  author = {Jingbo Lin and Zhilu Zhang and Wenbo Li and Renjing Pei and Hang Xu and Hongzhi Zhang and Wangmeng Zuo},
  title = {{UniRestorer: Universal Image Restoration via Adaptively Estimating Image Degradation at Proper Granularity}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=nDrZow7fCF},
}
Figure