TL;DR
The Sequential Ensemble of Experts (SEE) framework eliminates catastrophic forgetting in large language models (LLMs) during continual fine-tuning without requiring a centralized router. By training task-specific LoRA experts that independently decide whether to handle a query or pass it down a sequential chain, SEE achieves near-zero forgetting and seamlessly routes out-of-distribution queries back to the base model.
What Problem Does This Paper Address?
When LLMs are trained on a sequence of new tasks over time (continual fine-tuning), they suffer from catastrophic forgetting—the tendency to overwrite previously learned knowledge.
While keeping a small buffer of historical data (rehearsal-based methods) helps mitigate this, performance degradation remains inevitable. Another alternative is training separate "experts" for each task (like a Mixture of Experts, or MoE). However, traditional MoE architectures rely on a centralized router to assign tasks. In a continual learning setup, this central router must be retrained every time a new task arrives, creating a major bottleneck and separating the routing decision from the actual execution.
Methods
SEE bypasses the central router entirely by embedding the routing mechanism directly inside each expert. The framework operates in three main steps:
- Task Reconstruction: When a new task arrives, its dataset is mixed with a small fraction ($\tau\%$) of data sampled from previous tasks. Crucially, the current task's data is appended with a special positive token indicator (
<<pos>>), while the historical rehearsal data is stripped of its response and appended with a negative token indicator (<<neg>>). - Expert Training: A task-specific expert is trained via standard Supervised Fine-Tuning (SFT) using Low-Rank Adaptation (LoRA). Because of the task reconstruction step, the expert learns two things simultaneously: how to solve the new task, and how to recognize when a query does not belong to its domain (by outputting
<<neg>>). - Inference (Sequential Routing): Queries are passed through the chain of experts sequentially, starting from the newest expert. If an expert outputs
<<neg>>, the system skips it and passes the query to the previous expert. If it outputs<<pos>>, that expert generates the final response. If the query passes through all experts without a match, it is routed to the generalized base model as an exception.
Datasets
The authors evaluated SEE using the following benchmarks:
- SuperNI (Super-NaturalInstructions): A diverse benchmark for instruction tuning. The authors selected a subset of 10 distinct tasks (ranging from Question Answering and Summarization to Translation and Program Execution) to simulate a continual learning pipeline.
- MMLU (Massive Multitask Language Understanding): Used strictly to evaluate out-of-distribution (OOD) generalization and verify if unseen tasks are correctly routed back to the base model.
- Alpaca-52k: Used as a baseline variant to test "pseudo-negative sampling" (replacing historical rehearsal data with unrelated data).
Key Insights and Ideas
- Decentralized "Not My Job" Routing: Instead of a complex gating network predicting which expert is best, each expert simply acts as a binary filter. Training an expert to explicitly say "no" to out-of-domain queries is highly efficient and requires very little historical data.
- The Safety Net of the Base Model: Traditional MoE models struggle with completely novel, out-of-distribution (OOD) data because the router forces a choice among existing experts. SEE solves this gracefully: if no expert claims the query, it naturally falls through to the base model, preserving the LLM's original world knowledge.
- Efficiency of Non-Semantic Indicators: The authors found that using abstract, newly introduced tokens like
<<pos>>and<<neg>>yields better classification accuracy than using standard in-vocabulary words like "Yes" or "No," which carry pre-existing semantic baggage.
Key Results
- Zero Forgetting: In both 5-task and 10-task sequential setups, SEE (with a 10% rehearsal ratio) achieved a Backward Transfer (BWT) score of
0.00, indicating absolute zero degradation of prior knowledge. - Surpassing Multi-Task Learning (MTL): On the 10-task SuperNI sequence using Llama-2-7B, SEE(10%) achieved an Average ROUGE-L (AR) score of 66.19, outperforming the traditional upper-bound baseline of Multi-Task Learning (64.69), where all data is trained simultaneously.
- Exceptional OOD Routing: When evaluated on the completely unseen MMLU benchmark, SEE(10%) successfully identified the queries as out-of-distribution and routed 99.72% of them back to the base model, maintaining high accuracy.
Limitations and Future Work
Despite its strong performance, the authors note a few scaling challenges:
- Linear Parameter Growth: Because a new LoRA adapter is added for every single task, the total parameter footprint grows linearly with the number of tasks.
- Rehearsal Data Accumulation: Although the rehearsal ratio per task is small, the total volume of historical data needed for negative sampling expands as the task sequence lengthens.
- Sequential Latency: Passing a query through a long chain of experts introduces extra prefix-processing overhead. While the authors demonstrate that this overhead is affordable (dropping to less than 7.5% for longer generations), extremely long chains of experts could become a latency bottleneck in production environments.
Summary updated