TL;DR
UniRestorer is a novel "all-in-one" image restoration framework that uses a multi-granularity Mixture-of-Experts (MoE) architecture to handle diverse image corruptions. By adaptively selecting restoration experts based on both estimated degradation and the certainty of that estimation, it achieves state-of-the-art performance and effectively closes the long-standing performance gap between universal models and specialized single-task models.
What Problem Does This Paper Address?
Image restoration—the process of removing noise, blur, rain, or haze—has traditionally relied on specialized models trained for a single task. While "all-in-one" models aim to handle multiple degradations within a single framework, they usually fall into two traps:
- Degradation-agnostic models treat all images the same, often leading to sub-optimal results because the features needed to fix blur are very different from those needed to fix low-light noise.
- Degradation-aware models try to estimate the corruption first, but they are "brittle." If the degradation extractor makes even a small error (e.g., mistaking heavy rain for sensor noise), the model routes the image to the wrong restoration path, leading to artifacts or poor reconstruction.
The authors of UniRestorer tackle this "estimation error" problem by introducing the concept of granularity. Instead of forcing the model to always pick a hyper-specific expert, they allow it to choose a "generalist" expert when the degradation is ambiguous.
Methods
The core of UniRestorer is a hierarchical approach to both understanding and fixing images:
- Fine-Grained DR Extractor: The model uses a modified version of DA-CLIP to extract a "Degradation Representation" (DR). Unlike previous methods, this extractor is trained to recognize not just the type of noise, but its intensity (e.g., "small noise" vs. "large noise").
- Hierarchical Clustering: During training, the authors perform unsupervised clustering on these DRs to create a multi-level "degradation set." This results in a tree-like structure where the top level represents broad categories (all degradations) and the bottom levels represent highly specific scenarios.
- Multi-Granularity MoE: Restoration experts are trained for each cluster in the hierarchy. Fine-grained experts specialize in specific tasks for high accuracy, while coarse-grained experts learn to generalize across broader categories.
- Dual Routing (The "Secret Sauce"): At inference, UniRestorer uses two routers. One estimates the degradation type, and the other estimates granularity. If the model is confident, the granularity router selects a specialist. If the estimation is ambiguous, it selects a more robust, coarse-grained expert to avoid the "wrong expert" penalty.
- Instruction Mode: The framework also supports an "instruction mode" where a user can manually specify the task (e.g., "deraining"), which prunes the expert tree for even more accurate and efficient routing.
Datasets
The authors evaluated UniRestorer across a massive range of benchmarks:
- Single-Degradation: Rain100L (rain), SOTS (haze), BSD68 (noise), GoPro (blur), LOLv1 (low-light), Snow100K (snow), and LIVE1 (compression).
- Mixed-Degradation: The CDD-11 dataset, which features complex, overlapping corruptions (e.g., low-light + rain + haze).
- Generalization/Real-World: Evaluated on real-world datasets like SIDD, DND, and RealSnow to test how the model handles "in-the-wild" images it never saw during training.
Key Insights and Ideas
- Uncertainty is a Feature: The most significant insight is that the model's uncertainty about a degradation is a useful signal. By estimating granularity, the model gains a "safety net"—it's better to be a good generalist than a wrong specialist.
- Hierarchical Specialization: Moving from a "flat" MoE (where experts are all at the same level) to a hierarchical one allows the model to capture the continuous transition between different types of image corruption.
- Efficiency via Sparsity: Despite having many experts (up to 627M parameters in the largest version), the MoE architecture is sparse. Only a small fraction of the model is activated for any given image, keeping inference times competitive with much smaller, dense models.
Key Results
UniRestorer sets a new bar for all-in-one restoration:
- Superior Accuracy: On single-task benchmarks, UniRestorer outperformed previous SOTA models (like Restormer and PromptIR) by significant margins—sometimes by as much as 3-5 dB in PSNR.
- Closing the Gap: In many cases, UniRestorer performed as well as, or better than, models trained only for that specific task.
- Robustness: In mixed-degradation scenarios (CDD-11), it achieved a PSNR of 30.90 dB, compared to the previous best of 29.05 dB.
- Real-World Generalization: It showed a marked improvement on unseen degradations (like underwater or raindrop effects), proving that the hierarchical experts learn fundamental restoration features, not just dataset-specific tricks.
Limitations and Future Work
While UniRestorer is a major step forward, the authors note a few areas for growth:
- Data Scaling: The performance of these models is heavily dependent on the scale and quality of training data. The authors plan to collect more high-quality, real-world restoration pairs.
- Degradation Space Alignment: There is still room to better align the synthetic degradation space used in training with the complex, non-linear noise found in real-world camera sensors.
- Training Complexity: Training a multi-level MoE with hundreds of experts is computationally expensive, even if inference is fast. Future work may look into more efficient ways to initialize or grow these expert trees.
Summary updated