Introduction
Mixture-of-Experts (MoE) models have become the architecture of choice for scaling Large Language Models (LLMs) efficiently. However, serving these models at scale introduces significant challenges in load balancing. Traditional approaches focus on balancing the number of tokens processed by each GPU. This paper demonstrates that in the memory-bound "decode" phase of LLM inference, token-balancing is actually counter-productive. The authors propose METRO (Minimum Expert Token ROuting), a novel algorithm that optimizes for the number of activated experts per GPU, significantly reducing latency and increasing throughput.
The Memory-Bound Challenge
LLM inference consists of two phases: a compute-bound prefill phase and a memory-bound decode phase. In the decode phase, tokens are generated one by one, typically in small batches. Because the model weights are massive and must be fetched from memory for every token, the bottleneck is memory bandwidth rather than raw compute power.
Standard load balancers (like DeepSeek's EPLB) ensure each GPU handles an equal number of tokens. However, the authors discovered that the true bottleneck in the decode phase is the number of unique experts a GPU must "activate" (load into its cache). Token-balancing often splits an expert's workload across multiple GPUs, forcing each GPU to load that expert's weight matrix independently. This redundant loading wastes memory bandwidth and slows down the system.
The METRO Approach
METRO shifts the optimization goal from balancing tokens to minimizing and balancing the total number of activated experts across the GPU cluster. It employs three key technical innovations:
- Greedy Approximation: Since finding the mathematically optimal routing is too slow for real-time inference, METRO uses a GPU-native greedy algorithm. This approach assigns experts to GPUs currently hosting the fewest active experts, achieving near-optimal results with negligible overhead.
- Global Knowledge via allGather: Unlike standard routing where GPUs only see local tokens, METRO uses an
allGatherscheme. This provides every GPU with a global view of the expert requirements for the entire batch, allowing for globally informed routing decisions. - CUDA Graph Integration: METRO is integrated into the vLLM framework using CUDA Graphs, ensuring that the routing logic itself does not become a CPU-side bottleneck.
Key Results
Evaluation across models like Qwen3-235B and DeepSeek-V3 shows that METRO consistently outperforms state-of-the-art token-based balancers.
- Latency and Throughput: METRO reduces decode latency by up to 22% and improves total token throughput by up to 21%.
- SLO Efficiency: Under strict Service-Level Objectives (SLOs) for Time-per-Output-Token (TPOT), METRO enables the use of larger batch sizes, resulting in up to 4.11x higher throughput compared to traditional methods.
- Hardware Agnostic: The benefits were observed across different generations of hardware, including NVIDIA A100 and B200 GPUs.
Conclusion
As AI hardware continues to scale compute performance faster than memory bandwidth, the memory-bound nature of LLM decoding will become even more pronounced. METRO demonstrates that for MoE models, the key to efficiency lies in balancing the weight-loading requirements (activated experts) rather than the computational workload (tokens). This shift in perspective provides a critical optimization for the next generation of high-throughput AI serving systems.
Summary updated