Probing Semantic Routing in Large Mixture-of-Expert Models

Matthew Olson, Neale Ratzlaff, Musashi Hinck, Man Luo, Sungduk Yu, Chaogai Xue, Vasudev Lal

Abstract

In the past year, large (>100B parameter) mixture-of-expert (MoE) models have become increasingly common in the open domain. While their advantages are often framed in terms of efficiency, prior work has also explored functional differentiation through routing behavior. We investigate whether expert routing in large MoE models is influenced by the semantics of the inputs. To test this, we design two controlled experiments. First, we compare activations on sentence pairs with a shared target word used in the same or different senses. Second, we fix context and substitute the target word with semantically similar or dissimilar alternatives. Comparing expert overlap across these conditions reveals clear, statistically significant evidence of semantic routing in large MoE models.

Introduction

Mixture-of-Expert (MoE) architectures are the backbone of modern "frontier" models like Mixtral and DeepSeek. These models scale to hundreds of billions of parameters while maintaining computational efficiency by activating only a subset of "experts" for any given input. A central question in understanding these models is the nature of the routing mechanism: how does the router decide which expert to use?

Previous research on smaller MoE models suggested that routing was primarily "token-dependent," relying on surface-level features like specific characters or auxiliary verbs. This study investigates whether newer, larger-scale MoE models have evolved to perform semantic routing, selecting experts based on the underlying meaning of a word rather than just the token itself.

Methodology

To isolate semantics from surface-level token features, the researchers designed two controlled experiments:

  1. Word-in-Context (WiC) Probing: A target word (e.g., "carries") is held constant, but the context is changed to alter its meaning (e.g., "he carries gear" vs. "sound carries well").
  2. Lexical Substitution (SWORDS): The context is held constant, but the target word is swapped for a synonym (e.g., "forgive" vs. "absolve").
Experimental setup for Word-in-Context (WiC) and SWORDS probing.

To compare models with varying numbers of experts (ranging from 8 to 256), the authors introduced a Normalized Overlap Metric based on Cohen’s $\kappa$. This chance-corrected score ensures that high overlap is not merely a statistical artifact of a small expert pool. Additionally, Sparse Autoencoders (SAEs) were employed to analyze the reasoning model DeepSeek-R1, mapping internal activations to latent cognitive patterns.

Key Insights and Results

The Emergence of Semantic Routing

The study found clear evidence of semantic routing in models with 128 or 256 experts, such as DeepSeek-R1 and Llama-4-Maverick. Across all six models tested, expert overlap was significantly higher ($p < 0.001$) when word meanings were preserved, even if the tokens changed. This suggests that semantic specialization is an emergent property of scale; once a model has enough "specialists," it begins to route based on conceptual meaning.

The "Semantic Middle"

Analysis of layer-wise behavior revealed that semantic differentiation is most pronounced in the middle layers of the network. While early layers likely handle low-level tokenization and final layers focus on next-token prediction, the middle layers perform the bulk of conceptual processing.

Normalized expert overlap across layers for WiC and SWORDS datasets, showing the "semantic middle" effect.

Reasoning Specialization in DeepSeek-R1

In the reasoning-focused DeepSeek-R1, experts specialized not just in topics, but in cognitive patterns. Tokens expressing uncertainty (e.g., "probably," "attempt") consistently routed to the same subset of experts. This indicates that the router recognizes high-level reasoning strategies identified via SAE analysis.

Conclusion

This research provides the first systematic evidence of semantic routing in large-scale MoE models. The findings suggest that as these models grow, they move beyond surface-level token matching toward a more sophisticated, meaning-based allocation of computational resources. Linking routing to semantic similarity opens new avenues for model interpretability and control, potentially allowing researchers to intervene in the routing process to modulate model behaviors like caution or reasoning depth.

Summary updated

BibTeX
@misc{olson2025probing,
  author = {Matthew Olson and Neale Ratzlaff and Musashi Hinck and Man Luo and Sungduk Yu and Chaogai Xue and Vasudev Lal},
  title = {{Probing Semantic Routing in Large Mixture-of-Expert Models}},
  year = {2025},
  eprint = {2502.10928},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10928},
}
Figure