Separation and Collaboration: Two-Level Routing Grouped Mixture-of-Experts for Multi-Domain Continual Learning

Jialu Zhou, Dianxi Shi, Shaowu Yang, Xinyu Wei, Mingyue Yang, Leqian Li, Mengzhu Wang, Chunping QiuarXiv 2025 · DOI

Abstract

This paper introduces TRGE (Two-Level Routing Grouped Mixture-of-Experts), a novel framework designed for Multi-Domain Continual Learning (MDCL). TRGE addresses the "dual heterogeneity" of shifting class sets and data distributions by balancing task-specific specialization with cross-task knowledge sharing. By integrating grouped LoRA experts, semantic task recognition via Multimodal Large Language Models (MLLMs), and a dynamic fusion mechanism, TRGE significantly reduces catastrophic forgetting of prior tasks and "forward forgetting" of future domains. Experimental results across 11 diverse datasets show that TRGE achieves state-of-the-art performance while utilizing 61.07% fewer trainable parameters than existing methods.

Introduction

In real-world applications, machine learning models must adapt to a continuous stream of data from diverse domains. This challenge, known as Multi-Domain Continual Learning (MDCL), presents two primary hurdles:

  1. Catastrophic Forgetting: The tendency of models to overwrite weights essential for previous tasks when learning new ones.
  2. Forward Forgetting: The degradation of a pre-trained model's (e.g., CLIP) original "zero-shot" generalization ability on future, unseen domains after being fine-tuned on specific downstream tasks.
Multi-Domain Continual Learning (MDCL) involves sequential tasks where models must mitigate catastrophic forgetting of old domains and forward forgetting of future domains.

While Mixture-of-Experts (MoE) architectures offer modularity, they often suffer from "routing overfitting" as the task count increases, complicating the selection of appropriate experts for specific inputs.

Methodology: The TRGE Framework

The proposed Two-Level Routing Grouped Mixture-of-Experts (TRGE) method manages the trade-off between "separation" (to prevent interference) and "collaboration" (to share knowledge).

1. Task-Specific Expert Groups

For every new task, TRGE initializes a new group of experts using parameter-efficient LoRA adapters. To prevent catastrophic forgetting, all previous expert groups are frozen.

2. Two-Level Routing Mechanism

  • Intra-group Routing: This manages a fixed number of experts within a single task group, ensuring routing complexity remains constant regardless of the total number of tasks.
  • Inter-group Routing: This dynamically selects and combines outputs from relevant past expert groups to assist with the current task, facilitating effective cross-task collaboration.

3. Semantics-based Task Recognition (STR)

Traditional task recognition often fails when statistical feature distributions overlap. TRGE utilizes an MLLM to generate semantic descriptions of tasks based on their class sets. During inference, the MLLM identifies the correct task context by matching the input image against these semantic descriptions, providing a more robust identifier than raw features.

The TRGE architecture features an Adapted Transformer Encoder with grouped LoRA experts, two-level routing, and a semantics-based task recognition module.

4. Dynamic Fusion

To combat forward forgetting, TRGE adaptively fuses the outputs of the frozen pre-trained CLIP model with the TRGE adapters. The contribution weight of the specialized adapters grows as the model encounters more tasks, allowing it to retain general zero-shot capabilities while gaining domain-specific expertise.

Experimental Evaluation

TRGE was evaluated on 11 diverse datasets, including general object recognition (CIFAR100, MNIST) and specialized domains (Aircraft, EuroSAT, OxfordPet). Testing occurred in two settings: Multi-Domain Task Incremental Learning (MTIL), where task IDs are provided, and Multi-Domain Class Incremental Learning (MCIL), where the model must identify the task ID autonomously.

Key Results

  • State-of-the-Art Performance: In the MTIL benchmark, TRGE outperformed the previous leading method (MoE-Adapter) by 1.8% in Average accuracy and 2.6% in "Last" accuracy.
  • Efficiency: TRGE achieved these gains with 61.07% fewer trainable parameters than MoE-Adapter by training only a small, fixed number of experts per task.
  • Robustness in MCIL: In the challenging MCIL setting, the STR module enabled a 3.20% improvement in "Last" accuracy over baselines, proving the superiority of semantic task identification.

Discussion and Conclusion

The success of TRGE highlights that "separation" and "collaboration" are not mutually exclusive. By grouping experts by task but allowing a top-level router to "borrow" knowledge from other groups, the model achieves high specialization without losing the benefits of transfer learning. Furthermore, the use of MLLMs for task recognition suggests that semantic understanding is a powerful tool for navigating complex, overlapping feature spaces in continual learning.

Future work will focus on reducing the inference overhead introduced by the MLLM and exploring methods to merge redundant expert groups to enhance long-term scalability as the number of tasks grows into the hundreds.

Summary updated

BibTeX
@misc{zhou2025separation,
  author = {Jialu Zhou and Dianxi Shi and Shaowu Yang and Xinyu Wei and Mingyue Yang and Leqian Li and Mengzhu Wang and Chunping Qiu},
  title = {{Separation and Collaboration: Two-Level Routing Grouped Mixture-of-Experts for Multi-Domain Continual Learning}},
  year = {2025},
  eprint = {2508.07738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.07738},
}
Figure