Adaptive Shared Experts with LoRA-Based Mixture of Experts for Multi-Task Learning

Minghao Yang, Ren Togo, Guang Li, Takahiro Ogawa, Miki HaseyamaarXiv 2025 · DOI

Introduction

Multi-task learning (MTL) aims to train a single model to perform several tasks simultaneously, such as semantic segmentation, edge detection, and surface normal estimation. Recently, Mixture-of-Experts (MoE) has emerged as a powerful framework for MTL, allowing different "experts" within a network to specialize in specific tasks. However, transitioning from single-task pretraining (STL) to MTL often introduces inefficiencies. Sparse experts frequently redundantly relearn task-agnostic features, and existing "shared expert" designs often suffer from gradient conflicts, where different tasks pull shared parameters in opposing directions, degrading overall performance.

The Adaptive Shared Experts (ASE) Framework

To address these challenges, we introduce Adaptive Shared Experts (ASE), a novel MoE architecture that effectively bridges the gap between STL and MTL. The framework is built on three core innovations:

  1. Adaptive Gating Mechanism: Unlike traditional shared experts that use a fixed weight, ASE employs a router to compute a dynamic gating weight for the shared expert. This weight is jointly normalized via Softmax alongside the weights of the selected sparse experts. This ensures a stable balance and allows the shared expert to dynamically adjust its influence throughout the training process.
  2. LoRA-Based Experts: To maintain parameter efficiency, each expert is implemented as a Low-Rank Adaptation (LoRA) module. Instead of training full-scale feed-forward layers, we only train two small matrices ($A$ and $B$) that modify a frozen pretrained backbone.
  3. Fine-Grained Granularity: The architecture supports increasing the number of experts while proportionally decreasing their LoRA rank. This provides more specialized "slots" for knowledge sharing without increasing the total parameter budget.
Figure 1: The ASE architecture featuring a frozen FFN backbone, a dynamic router, and a mixture of LoRA-based sparse and shared experts.

Experimental Setup

We evaluated ASE on the PASCAL-Context benchmark, which includes five dense prediction tasks: Edge Detection, Semantic Segmentation, Human Parts Segmentation, Surface Normals, and Saliency Detection. We used a ViT-small backbone pretrained on ImageNet. Our method was compared against single-task baselines, vanilla LoRA-MoE, and "naive" shared expert designs.

Key Insights: The "Lead-then-Recede" Strategy

A critical finding of this work is the dynamic behavior of the Adaptive Shared Expert. Visualization of expert activation patterns reveals that the shared expert is highly active during the early stages of training. It acts as a bridge, helping the model transition from its single-task roots to the multi-task regime. As training progresses and sparse experts begin to specialize, the influence of the shared expert naturally decreases, which helps to alleviate potential gradient conflicts.

Figure 3: Visualization of expert activation across training epochs. The ASE (rightmost column) is highly active in Epoch 1 and gradually recedes as sparse experts specialize by Epoch 40.

Results and Discussion

ASE achieves state-of-the-art performance on the PASCAL-Context benchmark, with an average relative performance gain ($\Delta_m$) of +7.58% over the single-task baseline. This significantly outperforms vanilla LoRA-MoE (+6.11%) and naive shared expert designs, which can sometimes perform worse than the baseline due to unmanaged gradient conflicts.

Remarkably, these gains are achieved with only a ~4% increase in parameters (108M vs. 104M). Furthermore, our experiments with fine-grained configurations (e.g., 32 experts with rank 2 vs. 16 experts with rank 4) suggest that a larger number of specialized "micro-experts" is more beneficial for MTL than a smaller number of high-capacity experts.

Conclusion

Adaptive Shared Experts (ASE) provides a robust and parameter-efficient solution for multi-task learning. By combining LoRA-based modules with a jointly normalized gating mechanism, ASE successfully manages the transition from single-task pretraining to multi-task specialization, setting a new standard for performance and efficiency in dense prediction tasks.

Summary updated

BibTeX
@misc{yang2025adaptive,
  author = {Minghao Yang and Ren Togo and Guang Li and Takahiro Ogawa and Miki Haseyama},
  title = {{Adaptive Shared Experts with LoRA-Based Mixture of Experts for Multi-Task Learning}},
  year = {2025},
  eprint = {2510.00570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.00570},
}
Figure