XShare: Collaborative in-Batch Expert Sharing for Faster MoE Inference
Daniil Vankov, Nikita Ivkin, Kyle Ulrich, Xiang Song, Ashish Khetan, George Karypis
TL;DR
XShare addresses the batch-induced explosion of activated experts in production MoE inference by formulating batch-aware expert selection as a modular optimization problem and solving it with efficient greedy methods that require no retraining. The approach aggregates gating mass per layer, enforces a global budget, and refines routing to maintain per-token accuracy, with warm-up and refinement steps; it extends to speculative decoding via a hierarchical proxy and to multi-GPU deployments with GPU-aware load balancing. Empirical results show up to 30% reduction in activated experts, up to 3x reduction in peak GPU load in expert-parallel deployments, and up to 14% end-to-end throughput gains, while keeping accuracy within roughly 1% across diverse benchmarks and batch patterns. The methods are designed to integrate with existing serving frameworks and demonstrate robust performance on heterogeneous batches, providing practical improvements for production MoE serving without retraining.
Abstract
Mixture-of-Experts (MoE) architectures are increasingly used to efficiently scale large language models. However, in production inference, request batching and speculative decoding significantly amplify expert activation, eroding these efficiency benefits. We address this issue by modeling batch-aware expert selection as a modular optimization problem and designing efficient greedy algorithms for different deployment settings. The proposed method, namely XShare, requires no retraining and dynamically adapts to each batch by maximizing the total gating score of selected experts. It reduces expert activation by up to 30% under standard batching, cuts peak GPU load by up to 3x in expert-parallel deployments, and achieves up to 14% throughput gains in speculative decoding via hierarchical, correlation-aware expert selection even if requests in a batch drawn from heterogeneous datasets.
