Abstract
Scaling Large Language Models (LLMs) through Mixture-of-Experts (MoE) architectures often encounters the "lonely expert" problem, where experts are trained in isolation and lack effective knowledge sharing. This paper introduces CartesianMoE, a novel routing mechanism that employs a Cartesian product approach to combine sequential sub-experts. By transitioning from traditional "addition-style" sharing to a "multiplication-style" sequential structure, CartesianMoE significantly improves model performance and demonstrates remarkable robustness to routing errors.
Introduction
The computational cost of scaling LLMs is a primary bottleneck in AI development. MoE models mitigate this by activating only a subset of parameters (experts) for each input token. However, standard MoE routers often struggle with expert independence; if a router fails to select the optimal expert, the model's performance degrades sharply because alternative experts may lack the necessary specialized knowledge. While previous "shared expert" methods attempted to address this via additive components, these approaches often provide only shallow knowledge transfer.
Methodology: The Cartesian Product Layer
CartesianMoE replaces the standard MoE layer with a Cartesian Product Layer. This architecture decomposes the expert pool into two sequential sets of smaller "sub-experts" (Set A and Set B).
The routing process follows three key steps:
- Sub-Expert Selection: For each token, the router selects the top-$k$ sub-experts from Set A and the top-$k$ from Set B.
- Sequential Processing: The token passes through a selected sub-expert in Set A, and its output immediately serves as the input for a sub-expert in Set B. This sequential "multiplication" allows any sub-expert in the first layer to interact with any in the second.
- Structural Knowledge Sharing: Because multiple full-expert paths share the same underlying sub-experts, knowledge is naturally distributed across the network. This creates a hierarchy of shared knowledge, ranging from global fixed experts to group-wise sub-experts.
Experimental Results
The authors evaluated CartesianMoE using The Pile (an 825 GB text corpus) and various downstream benchmarks.
Language Modeling Performance
CartesianMoE consistently outperformed standard MoE baselines in terms of perplexity (PPL). In the "Large" configuration (770M active parameters), CartesianMoE achieved a PPL of 6.08, surpassing the next best baseline, SMoE-Share, which scored 6.13.
Robustness to Routing Errors
A critical finding of this research is the model's resilience. In stress tests where the primary (top-1) expert was intentionally disabled, standard MoE models experienced catastrophic failure, with perplexity jumping to extreme values (e.g., 84.42 to 7568.85). In contrast, CartesianMoE remained stable with a PPL of 27.72. This suggests that the "multiplication-style" sharing ensures that alternative routing paths still contain substantial relevant information.
Downstream Benchmarks
Beyond perplexity, CartesianMoE showed superior performance across common sense reasoning (Hellaswag, PIQA) and question-answering tasks (TriviaQA, Natural Questions), outperforming baselines in the majority of tested scenarios.
Conclusion
CartesianMoE offers a more efficient and robust framework for knowledge sharing in MoE models. By leveraging Cartesian product routing, it achieves state-of-the-art performance without increasing the computational budget. Future work may explore deeper multi-layer Cartesian structures and the application of this method to multi-modal datasets.
Summary updated