Complexity Experts are Task-Discriminative Learners for Any Image Restoration
Eduard Zamfir, Zongwei Wu, Nancy Mehta, Yuedong Tan, Danda Pani Paudel, Yulun Zhang, Radu Timofte
TL;DR
MoCE-IR addresses inefficiency and inconsistent use of experts in all-in-one image restoration by introducing complexity experts and a complexity-aware routing that biases toward simpler, lower-cost experts. The method uses nested experts with increasing capacity and receptive fields, a shared transformer-based path, FFT-based attention, and an image-level routing with a complexity-bias auxiliary loss to achieve task-discriminative allocations. It demonstrates state-of-the-art performance across multiple degradations while reducing computational load, enabling efficient inference by bypassing irrelevant experts. This work advances all-in-one restoration by unifying task-specific processing and cross-task sharing within a scalable, parameter-efficient MoE framework.
Abstract
Recent advancements in all-in-one image restoration models have revolutionized the ability to address diverse degradations through a unified framework. However, parameters tied to specific tasks often remain inactive for other tasks, making mixture-of-experts (MoE) architectures a natural extension. Despite this, MoEs often show inconsistent behavior, with some experts unexpectedly generalizing across tasks while others struggle within their intended scope. This hinders leveraging MoEs' computational benefits by bypassing irrelevant experts during inference. We attribute this undesired behavior to the uniform and rigid architecture of traditional MoEs. To address this, we introduce ``complexity experts" -- flexible expert blocks with varying computational complexity and receptive fields. A key challenge is assigning tasks to each expert, as degradation complexity is unknown in advance. Thus, we execute tasks with a simple bias toward lower complexity. To our surprise, this preference effectively drives task-specific allocation, assigning tasks to experts with the appropriate complexity. Extensive experiments validate our approach, demonstrating the ability to bypass irrelevant experts during inference while maintaining superior performance. The proposed MoCE-IR model outperforms state-of-the-art methods, affirming its efficiency and practical applicability. The source code and models are publicly available at \href{https://eduardzamfir.github.io/moceir/}{\texttt{eduardzamfir.github.io/MoCE-IR/}}
