Continuous Expert Assembly: Instance-Conditioned Low-Rank Residuals for All-in-One Image Restoration

Haisen He, Xiangyu Zou, SongLin Dong, Heng Li, Yihong Gong, Zhiheng Ma

TL;DR

Continuous Expert Assembly (CEA) introduces a token-wise dynamic parameterization framework for "All-in-One" image restoration, moving away from rigid, discrete expert routing and coarse global prompts. By generating instance-conditioned, low-rank residual updates on the fly, CEA allows individual spatial tokens to adaptively address complex, mixed, and spatially varying degradations with remarkable computational efficiency.

What Problem Does This Paper Address?

Real-world photographs rarely suffer from just one type of pristine degradation. Instead, low light, haze, rain, motion blur, and sensor noise often co-occur, vary across the image, and are completely unknown at inference time. "All-in-One" (AiO) image restoration aims to fix these multi-degradation corruptions using a single model.

Existing methods typically struggle with this. Some use global prompts or descriptors, which compress the entire image's degradation state into a single representation—effectively washing out localized degradation evidence. Others use Mixture-of-Experts (MoE) architectures, routing features through a fixed pool of static experts. However, these MoE approaches rely on unstable, discrete "Top-K" routing decisions and can result in homogeneous updates across different spatial locations.

Methods

The authors propose Continuous Expert Assembly (CEA), a framework that replaces discrete expert selection with continuous assembly inside an input-generated low-rank subspace.

Figure 1: Conceptual comparison of adaptation paradigms for All-in-One Image Restoration. (a) Representative global or discrete expert adaptation. A compact image-level signal or sparse router selects or modulates a fixed set of parameters, which can become coarse when degradations vary spatially or appear in composition. (b) Continuous Expert Assembly (CEA). A lightweight hyper-adapter probes spatial features and generates instance-conditioned low-rank routing bases A(x) and residual directions B(x). Each spatial token uses dense signed dot-product affinities to assemble its own residual update ∆Yn, enabling instance-conditioned low-rank residual assembly without discrete expert selection.

The architecture consists of two primary components integrated into the decoder blocks of a U-shaped Transformer backbone:

  1. Cross-Attention Hyper-Adapter: Instead of globally pooling features, this lightweight module uses a compact set of learnable queries to probe condensed spatial features. It dynamically decodes these features into instance-conditioned routing bases $A(x)$ (acting as keys) and residual directions $B(x)$ (acting as values).
  2. Continuous Expert Assembly: Each spatial token computes dense, signed dot-product affinities against the generated routing bases. These affinities act as weights to combine the residual directions, assembling a token-specific residual update ($\Delta Y_n$) on the fly.
Figure 1: Conceptual comparison of adaptation paradigms for All-in-One Image Restoration. (a) Representative global or discrete expert adaptation. A compact image-level signal or sparse router selects or modulates a fixed set of parameters, which can become coarse when degradations vary spatially or appear in composition. (b) Continuous Expert Assembly (CEA). A lightweight hyper-adapter probes spatial features and generates instance-conditioned low-rank routing bases A(x) and residual directions B(x). Each spatial token uses dense signed dot-product affinities to assemble its own residual update ∆Yn, enabling instance-conditioned low-rank residual assembly without discrete expert selection.

The Linear Attention Perspective: Crucially, the authors show that this token-wise parameter assembly shares the exact algebraic form of dot-product attention without softmax ($QK^\top V$). Because of this, the update can be computed using two highly efficient low-rank matrix multiplications, allowing the model to scale linearly with the number of tokens rather than quadratically. Additionally, a RankNorm layer is introduced to normalize the generated factors per instance, preventing norm drift and stabilizing training.

Datasets

The model was evaluated on several standard image restoration benchmarks:

  • AIO-3: Focuses on three degradations—dehazing (SOTS), deraining (Rain100L), and denoising (BSD68).
  • AIO-5: Adds deblurring (GoPro) and low-light enhancement (LOLv1) to the AIO-3 mix.
  • CDD-11: A challenging compositional degradation dataset featuring combinations of up to three simultaneous corruptions (low-light, haze, rain, snow).
  • UIEB: Used for zero-shot out-of-distribution evaluation on underwater image enhancement.

Key Insights and Ideas

  • Ditching Discrete Routing: Traditional MoE models pick a hard subset of experts, creating optimization discontinuities. CEA treats "experts" as dynamically generated low-rank components, allowing a smooth, continuous blend unique to each token.
  • The Linear Attention Connection: Realizing that token-wise parameter assembly can be formulated as softmax-free attention means we get dense, fine-grained spatial adaptation without the quadratic computational explosion usually associated with token-to-token interactions.
  • Spatial Probing beats Global Descriptors: Generating parameters from spatially probed features via cross-attention queries preserves localized degradation evidence that global pooling completely destroys.

Key Results

CEA consistently outperformed strong prompt-, descriptor-, and expert-based baselines across all benchmarks, showing its greatest strengths in handling spatially varying and compositional corruptions.

On the complex CDD-11 dataset, CEA-IR-S achieved an overall average PSNR of 29.79 dB, outperforming the previous state-of-the-art MoCE-IR-S by 0.74 dB.

What makes CEA particularly impressive is its efficiency. Despite providing dense token-wise adaptation, it significantly slashes computational demands compared to competing architectures:

Table 3: Computational demands. FLOPs are computed on an input image of size 224 × 224. Runtime (mean ± std in milliseconds) is re-evaluated on a single local NVIDIA RTX 4090 GPU using officially released codebases under identical input configurations.

As shown in Table 3, CEA-IR-S uses fewer parameters (9.71M), requires less memory (3517M), drops FLOPs to 28.03G, and clocks a faster runtime of 29.92 ms on an NVIDIA RTX 4090.

Limitations and Future Work

  • Backbone Dependency: The current implementation is specifically tailored to a U-shaped Transformer backbone and modulates attention projections ($Q$ and $K$). Extending CEA to other backbones (like CNNs or Mamba) remains an open avenue.
  • Task Scope: The framework has only been validated on standard individual and compositional image restoration benchmarks; its efficacy on broader dense prediction tasks is yet to be tested.
  • Ethical Considerations: As with any high-fidelity image enhancement tool, the authors note that responsible deployment must consider privacy and appropriate data handling.

Summary updated

BibTeX
@inproceedings{he2026continuous,
  author = {Haisen He and Xiangyu Zou and SongLin Dong and Heng Li and Yihong Gong and Zhiheng Ma},
  title = {{Continuous Expert Assembly: Instance-Conditioned Low-Rank Residuals for All-in-One Image Restoration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pQjphOzAGt},
}
Figure