Semantic Parallelism: Redefining Efficient MoE Inference via Model-Data Co-Scheduling

Yan Li, Zhenyu Zhang, Zhengang Wang, Pengfei chen, Pengfei Zheng

TL;DR

Semantic Parallelism is a new paradigm designed to slash the massive communication overhead inherent in Mixture-of-Experts (MoE) model inference. By predicting which "experts" a token will need based on its semantic identity and co-scheduling the data and model experts onto the same GPU, the authors achieve up to a 2.78x throughput boost and a 24.9% reduction in latency.

The Hidden Tax of Expert Parallelism

Modern Large Language Models (LLMs) like DeepSeek-V3 and Mixtral rely on a Mixture-of-Experts (MoE) architecture to scale parameters without exploding computational costs. However, these models are so large they must be split across multiple GPUs using Expert Parallelism (EP).

The primary bottleneck of EP is communication. When a token is processed, a router decides which expert should handle it. If that expert lives on a different GPU, the token must be sent there via an expensive "all-to-all" communication collective.

MoE Layer Breakdown showing communication overhead

In high-performance setups, this constant shuffling of tokens across the network can account for nearly 60% of the total inference latency. Current systems treat expert placement (where the model lives) and request scheduling (where the data goes) as completely separate problems. This disconnect leads to "dispersed" routing, where tokens are constantly flying across the network to find their assigned experts.

Introducing Sem-MoE: Model-Data Co-Scheduling

To solve this, the authors introduce Sem-MoE, a framework built on top of the SGLang engine that implements Semantic Parallelism. The core idea is to proactively align tokens with their required experts through "model-data co-scheduling."

Sem-MoE System Architecture

The framework operates across three main phases:

  1. Offline Model Scheduling: By profiling datasets, the authors discovered that certain experts are frequently activated together. They use an Integer Linear Programming (ILP) approach to cluster these "affinity-linked" experts and place them on the same device before the model even starts running.
  2. Online Inter-request Scheduling (for Data Parallelism): When new requests arrive, the system predicts which experts they will likely need. It then batches requests with similar "expert profiles" onto the same GPU, maximizing the chance that a token finds its required expert locally.
  3. Online Intra-request Scheduling (for Tensor Parallelism): For setups using Tensor Parallelism (TP), the authors developed custom kernels (shuffled-reduce-scatter and shuffled-allgather). These kernels "sneak" the token shuffling into the existing communication phases of the attention layer, effectively pre-positioning tokens on the correct GPU for the subsequent MoE layer without adding new communication overhead.

Key Insights: The Predictability of Routing

The foundation of Sem-MoE rests on a surprising finding: token-to-expert routing is remarkably stable and context-independent. A specific token (e.g., "quantum") tends to route to the same small subset of experts regardless of the surrounding sentence. This allows for highly accurate routing predictions (median F1-scores > 0.8) based solely on token IDs.

Furthermore, requests about similar topics (like abstract algebra and college math) naturally gravitate toward the same experts. Sem-MoE exploits this semantic clustering to keep data local. Instead of waiting for the MoE router to trigger a network transfer, Sem-MoE uses its predictions to reorganize data during the necessary communication steps of the previous layer, making the routing essentially "lossless."

Performance and Results

The researchers evaluated Sem-MoE using models like DeepSeek-V2-Lite, Qwen3-30B-A3B, and Moonlight-16B across representative datasets (ShareGPT, MMLU, Lmsys-chat-1m). The results demonstrate significant efficiency gains:

  • Throughput Gains: In Attention-Data Parallel (DP) scenarios, Sem-MoE achieved throughput improvements of up to 2.78x compared to state-of-the-art baselines like MoETuner and vanilla SGLang.
  • Latency Reduction: In Attention-Tensor Parallel (TP) scenarios, it reduced Time-to-First-Token (TTFT) latency by up to 24.9%.
  • Local Activation Rate (LAR): The system increased the percentage of tokens handled by local experts—avoiding the network entirely—by roughly 15.4% to 43%, depending on the model and configuration.
  • Zero-Shot Generalization: A predictor trained on ShareGPT performed nearly as well on MMLU, proving that token-expert affinities are a fundamental property of the model, not just an artifact of a specific dataset.

Limitations and Future Work

While highly effective, Semantic Parallelism does face some constraints. The ILP solver attempts to group "hot" experts together, but GPU memory limits how many experts can be co-located. Clustering too many popular experts could lead to memory imbalances.

Additionally, for Out-of-Vocabulary (OOV) tokens not seen during profiling, the system relies on nearest-neighbor matching in the embedding space. While effective, this is less precise than direct ID-based lookup. Finally, while the paper addresses load balancing in its ILP formulation, extreme shifts in user prompt distributions at runtime might still require more dynamic re-adjustment of expert placement in future iterations.

Summary updated

BibTeX
@inproceedings{li2026semantic,
  author = {Yan Li and Zhenyu Zhang and Zhengang Wang and Pengfei chen and Pengfei Zheng},
  title = {{Semantic Parallelism: Redefining Efficient MoE Inference via Model-Data Co-Scheduling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=MSHPrMpIHZ},
}
Figure