Abstract
Sparse Mixture-of-Experts (MoE) architectures enable efficient scaling by activating only a subset of parameters for each input. However, conventional MoE routing selects each layer's experts independently, creating $N^L$ possible expert paths—for $N$ experts across $L$ layers. This far exceeds typical training set sizes, leading to statistical inefficiency as the model may not learn meaningful structure over such a vast path space. To constrain it, we propose PathMoE, which shares router parameters across consecutive layers. Experiments on 0.9B and 16B parameter models demonstrate consistent improvements on perplexity and downstream tasks over independent routing, while eliminating the need for auxiliary load balancing losses. Analysis reveals that tokens following the same path naturally cluster by linguistic function, with PathMoE producing more concentrated groups, better cross-layer consistency, and greater robustness to routing perturbations. These results offer a new perspective for understanding MoE architectures through the lens of expert paths.
Introduction: The Combinatorial Explosion of Paths
Sparse Mixture-of-Experts (MoE) architectures have become a standard technique for scaling Large Language Models (LLMs). By routing each token to only a subset of "expert" parameters at each layer, these models can achieve massive parameter counts while maintaining a manageable compute budget. However, a significant statistical challenge arises from the standard practice of independent routing at each layer.
In a model with $N$ experts and $L$ layers, there are $N^L$ possible paths a token can take. For a typical configuration (e.g., 24 layers, 16 experts), this results in approximately $10^{29}$ possible paths. Given that a standard training run might involve $10^{11}$ tokens, the vast majority of these paths are never explored during training. This "combinatorial explosion" means the model cannot learn a coordinated structure across the entire path space, leading to statistical inefficiency.
Methodology: Path-Constrained Routing
To address this, we introduce PathMoE, an architectural modification that constrains the expert path space by sharing router parameters across blocks of consecutive layers.
In a standard MoE, each layer $l$ has a unique router $r_l$ with independent weights $W_l$. In PathMoE, layers are partitioned into blocks of size $B$. For all layers within a block, the router uses the same weight matrix $W_b$. While the router weights are shared, the input representations to each layer still evolve due to residual connections and expert computations. This creates a strong inductive bias toward "path coherence"—tokens are encouraged to follow consistent pathways through a block without being strictly forced to do so.
Key Results and Insights
The effectiveness of PathMoE was validated using 0.9B and 16B parameter models trained on large-scale datasets (Fineweb-100B and DCLM-Pro).
Performance and Efficiency
The 0.9B PathMoE model achieved a +2.1% average accuracy improvement over independent routing across a suite of downstream benchmarks. The 16B model similarly outperformed the baseline on 10 out of 12 tasks. PathMoE maintains the training throughput of standard MoE and actually reduces the total parameter count by sharing router weights.
Natural Load Balancing
A significant advantage of PathMoE is its ability to maintain balanced expert utilization naturally without the need for auxiliary load balancing losses (LBL). Standard MoE models often suffer from "expert collapse," requiring complex loss terms to ensure all experts are trained. PathMoE achieves this balance naturally, simplifying the training pipeline and hyperparameter tuning process.
Linguistic Specialization and Robustness
Analysis of the learned paths reveals that tokens naturally cluster by linguistic function. PathMoE produces more concentrated and interpretable clusters—specializing in punctuation, person names, or temporal expressions—compared to independent routing. PathMoE achieved 79% routing consistency (how often a token stays with the same expert) compared to just 48% for independent routing. Furthermore, PathMoE demonstrates greater robustness; when routing decisions are perturbed, its performance degrades much more gracefully than standard MoE models.
Conclusion
PathMoE shifts the perspective on MoE architectures from a series of independent decisions to a coordinated journey through a constrained path space. By reducing the astronomical number of possible expert combinations, PathMoE improves statistical efficiency, enhances linguistic specialization, and simplifies training through natural load balancing. This "path-centric" view provides a promising foundation for future work in model compression and dynamic routing structures.
Summary updated