Introduction
Fine-tuning Large Language Models (LLMs) on a sequence of new tasks typically leads to "catastrophic forgetting," where the model loses its ability to perform previously learned tasks. While rehearsal-based methods—mixing old data with new—mitigate this, they often suffer from performance degradation over time. Mixture of Experts (MoE) architectures offer an alternative by isolating task knowledge into specific modules, but they traditionally rely on a central router. In continual learning, this router becomes a bottleneck, requiring constant retraining as new tasks are added.
The Sequential Ensemble of Experts (SEE) framework introduces a decentralized approach. By training self-aware, task-specific experts that can independently decide whether to process a query or pass it on, SEE achieves near-zero forgetting and maintains high general-purpose performance without a global gatekeeper.
The SEE Framework
The SEE methodology consists of three distinct phases designed to scale gracefully as the number of tasks grows.
1. Task Reconstruction
When a new task ($N$) is introduced, the training data is augmented to define the expert's boundaries. Samples from the current task are prepended with a positive indicator (<pos>). Simultaneously, a small subset of data from previous tasks ($1 \dots N-1$) is sampled and prepended with a negative indicator (<neg>). This "negative rehearsal" teaches the new expert to recognize queries it is not qualified to handle.
2. Continual Training
Instead of updating the entire base model, SEE utilizes Low-Rank Adaptation (LoRA). A lightweight LoRA adapter ($L_N$) is trained for each specific task. This adapter learns to generate the correct response for <pos> queries and to signal a hand-off for <neg> queries. The authors found that using dedicated special tokens for these indicators is significantly more efficient for routing than using standard vocabulary words like "Yes" or "No."
3. Sequential Routing
During inference, SEE employs a "pass-the-baton" mechanism. A query starts at the most recently trained expert (Expert $N$). If the expert identifies the query as a mismatch (producing the <neg> signal), the query is routed to the previous expert (Expert $N-1$). This continues until an expert "claims" the query or the sequence ends. If no expert matches, the query is handled by the original Base Model, preserving the model's general-purpose capabilities. This distributed routing removes the need for a global router that knows everything.
Experimental Results
The researchers evaluated SEE using the Super-NaturalInstructions (SuperNI) benchmark for task-specific performance and the MMLU benchmark to assess out-of-distribution (OOD) generalization.
Near-Zero Forgetting
A key metric in continual learning is Backward Transfer (BWT), which measures the performance change on old tasks after learning new ones. SEE achieved a BWT score of approximately 0.00 across multiple models (Llama-2, Mistral, Qwen). This indicates that the sequential architecture effectively eliminates interference between tasks.
Comparison with Multi-Task Learning
As shown in the performance charts, SEE (using 10% rehearsal data) often matches or exceeds the performance of Multi-Task Learning (MTL). MTL is typically considered the upper bound for performance since it trains on all tasks simultaneously. SEE's ability to reach this threshold in a sequential setting highlights the efficiency of its routing logic.
Generalization and Safety
On the MMLU benchmark, SEE significantly outperformed standard rehearsal methods. Because the experts can "pass" on a query, SEE correctly routed 99.72% of general-knowledge queries back to the base LLM. This allows the system to maintain high performance on general benchmarks even after heavy task-specific fine-tuning, avoiding the "specialization trap" that degrades general intelligence in other models.
Discussion and Future Work
While SEE provides a robust solution to catastrophic forgetting, it introduces certain trade-offs. The sequential nature of the routing adds latency, particularly for the "time to first token" as a query may pass through multiple experts. For a chain of 10 experts, the overhead is approximately 29% for short responses but decreases to under 8% for longer outputs, making it viable for real-world use.
Additionally, the linear growth of parameters—one LoRA per task—presents storage challenges for systems with hundreds of tasks. Future research may focus on optimizing the expert sequence or merging similar experts to maintain efficiency as the task library expands.
Summary updated