Path-Constrained Mixture-of-Experts

Zijin Gu, Tatiana Likhomanenko, Vimal Thilak, Jason Ramapuram, Navdeep Jaitly

TL;DR

Mixture-of-Experts (MoE) models typically route tokens to experts independently at every layer, creating a massive, mostly unused space of possible "expert paths." This paper introduces PathMoE, an architecture that shares router parameters across blocks of layers to constrain these paths, leading to better performance, higher routing consistency, and the ability to train without unstable auxiliary load-balancing losses.

What Problem Does This Paper Address?

In a standard MoE model with $L$ layers and $N$ experts per layer, a single token can theoretically follow $N^L$ different sequences of experts (paths). For a typical model, this number (e.g., $10^{29}$) is astronomically larger than the number of tokens seen during training.

The authors argue that this "independent routing" is statistically inefficient. By analyzing trained models, they found that tokens naturally cluster into a tiny fraction of these possible paths based on their linguistic function (e.g., punctuation vs. verbs). The core challenge is: can we design an architecture that leans into this natural concentration to make the model more efficient and robust?

Methods

The authors propose viewing MoE through the lens of expert paths—the full sequence of expert selections a token makes across the entire network. To constrain these paths, they introduce PathMoE:

  1. Block-wise Parameter Sharing: Instead of every layer having a unique router, layers are grouped into blocks (e.g., 4 layers per block). All layers within a block share the same router parameters ($W$).
  2. Soft Constraints: Because of residual connections, representations change slowly between layers. Sharing the router parameters biases the model toward selecting the same expert across consecutive layers without forcing it (unlike "hard" constraints that mandate identical decisions).
  3. Eliminating Auxiliary Loss: Standard MoEs require a "load balancing loss" to prevent all tokens from rushing to a single expert. The authors find that PathMoE's shared routers receive more diverse gradient signals, making the model naturally resistant to expert collapse and allowing them to remove this extra hyperparameter entirely.
Figure 1: Spectrum of routing constraints in MoE architectures. (a) Independent routing: each layer has its own router ri, giving the joint top-1 path distribution support over NL possible expert sequences. (b) Block-wise parameter sharing routing, dubbed PathMoE: layers within a block share router parameters. (c) Fully decision shared routing: all layers share one router and its decision.

Datasets

The researchers evaluated PathMoE at two scales:

  • 0.9B Parameter Model: Trained on Fineweb-100B.
  • 16B Parameter Model: Trained on DCLM-Pro for 200k steps.

Evaluation spanned a wide array of downstream benchmarks, including ARC-Easy/Challenge, BoolQ, HellaSwag, LAMBADA, OpenBookQA, PIQA, SocialIQA, WinoGrande, MMLU, CSQA, and TriviaQA.

Key Insights and Ideas

  • Emergent Linguistic Specialization: Even without explicit guidance, expert paths specialize. One path might handle person names, while another handles punctuation. PathMoE amplifies this natural clustering.
Token specialization of representative expert paths.
  • The Power of Slow Evolution: The success of shared routers relies on the fact that nearby layers process similar representations. This creates "sustained engagement," where a token stays with a specialized expert for several layers, receiving a more consistent transformation.
  • Robustness Through Specialization: Surprisingly, PathMoE is much more robust to noise. When expert indices were randomly permuted, PathMoE's performance degraded significantly less than standard MoE (237% vs 5,328% perplexity degradation). This suggests PathMoE learns more distributed, stable representations within each expert.
  • Statistical Efficiency: By reducing the "effective" number of paths (measured via routing entropy), each utilized path receives more training signal per token, improving sample efficiency.

Key Results

  • Performance Gains: The 0.9B PathMoE model achieved a +2.1% average accuracy improvement over independent routing. The 16B model improved on 10 out of 12 tasks with a +1.95% average gain.
  • Lower Perplexity: PathB4-MoE (block size 4) achieved a perplexity of 12.29 compared to 12.91 for standard MoE.
  • Higher Consistency: PathMoE achieved 31% higher routing consistency (expert reuse across layers) and 22.5x greater robustness to routing perturbations.
  • Efficiency: PathMoE matches standard MoE in throughput and memory usage because it only changes how router parameters are stored, not the underlying computation.
Figure 2: Cumulative token coverage as a function of the number of paths.

Limitations and Future Work

  • Routing Type: The study focused on "token-choice" routing. Preliminary tests suggested no benefit for "expert-choice" routing, which already exhibits high consistency.
  • Block Size Heuristics: There is currently no first-principles method for choosing the optimal block size ($B$); it remains a hyperparameter that varies by task (e.g., knowledge-intensive tasks preferred larger blocks).
  • Domain Scope: The models were trained on general web text. The authors note that evaluating these constraints on math- or code-specialized data remains future work.
  • Alternative Constraints: While this paper focused on parameter sharing, other ways to constrain paths (like learned path predictors or path-aware regularization) are yet to be explored.

Summary updated

BibTeX
@inproceedings{gu2026path,
  author = {Zijin Gu and Tatiana Likhomanenko and Vimal Thilak and Jason Ramapuram and Navdeep Jaitly},
  title = {{Path-Constrained Mixture-of-Experts}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=bLIgKF4c7i},
}
Figure