Abstract
Mixture-of-Experts (MoE) models have demonstrated remarkable empirical success in mitigating catastrophic forgetting within continual learning (CL) frameworks. However, a rigorous theoretical understanding of this phenomenon has remained elusive. This paper establishes the first theoretical foundation for MoE in CL through the lens of overparameterized linear regression. We demonstrate that MoE architectures allow experts to specialize in distinct task clusters and identify a critical "early termination" strategy for the gating network. Our analysis proves that stopping router updates after sufficient rounds is essential for stable convergence and achieving near-zero forgetting in lifelong learning settings.
Introduction
In Continual Learning (CL), models are tasked with learning a sequence of objectives without losing performance on previously acquired knowledge. The primary obstacle is catastrophic forgetting, where adapting to new data overwrites the weights necessary for prior tasks. While Mixture-of-Experts (MoE) models—which utilize a gating mechanism to route inputs to specialized sub-networks—have shown promise in reducing this interference, the mathematical drivers behind their success have not been fully characterized until now.
Architecture and Methodology
The study analyzes a sparsely-gated MoE model employing "top-1 switch routing." In this setup, a gating network determines which single expert is best suited for a given input.
To optimize this architecture for CL, the authors introduce two key design principles:
- Multi-objective Gating Loss: The gating network is updated using a novel locality loss (clustering tasks with similar ground truths) and a standard auxiliary loss to ensure load balancing across the expert pool.
- Early Termination: A pivotal theoretical finding of this work is that gating network updates must be halted after a specific training threshold. Continuous updates as new tasks arrive lead to "over-smoothing," where the router loses its discriminative power, eventually causing routing errors and performance degradation.
Theoretical Insights
Expert Specialization
The mathematical framework proves that MoE models naturally diversify. Experts evolve to handle specific task clusters, while the router learns the mapping between input distributions and the appropriate expert. This specialization prevents the weight interference seen in monolithic models.
The Termination Paradox
Contrary to standard machine learning practices where models are trained until convergence, CL MoE requires an "early exit" for the router. Terminating the gating network's updates preserves the established "expert sets" ($M_n$), ensuring the system reaches a stable state with balanced loads and minimal interference between old and new tasks.
Load Balancing and Generalization
The theory demonstrates that explicit load balancing is not merely a heuristic for computational efficiency; it directly reduces average generalization error. By preventing any single expert from becoming overfitted to too many disparate tasks, the model maintains higher fidelity across the entire task sequence.
Experimental Results
The authors validated their theoretical findings using both synthetic overparameterized linear regression and real-world benchmarks including MNIST, CIFAR-10/100, and Tiny ImageNet.
- MoE vs. Single Expert: MoE models significantly outperformed single-expert baselines ($M=1$), particularly in scenarios with high variance between task distributions.
- Impact of Early Termination: The strategy proved vital for performance. On CIFAR-100, an MoE model with 10 experts and early termination achieved 32.9% accuracy, whereas the same model without termination plummeted to 9.1%. Similar results were observed on Tiny ImageNet (28.3% vs. 10.3%).
- Convergence: With early termination, the expected forgetting in MoE models was shown to converge toward zero as training rounds increased, whereas non-terminated models suffered from persistent oscillations.
Conclusion and Future Work
This work provides a necessary theoretical bridge between MoE architectures and their success in continual learning. By proving the necessity of early termination and the mechanics of expert specialization, it offers a roadmap for designing more robust lifelong learning systems. Future research will look to extend these linear foundations to non-linear deep architectures and explore the complexities of top-k routing where multiple experts are activated simultaneously.
Summary updated