[Paper Review] XShare: Collaborative in-Batch Expert Sharing for Faster MoE Inference
XShare formulates batch-aware expert selection for Mixture-of-Experts (MoE) inference and offers greedy, no-retrain pruning algorithms tuned for standard, speculative, and expert-parallel deployments to reduce activation, balance GPU load, and boost throughput.
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.
Motivation & Objective
- Motivate production MoE inference challenges where batching and speculative decoding activate many experts beyond per-token needs.
- Develop a batch-aware optimization framework to maximize gating mass under a limited number of active experts.
- Provide practical, no-retraining greedy algorithms adaptable to different deployment settings (single-GPU, speculative decoding, expert-parallelism).
- Demonstrate robustness across heterogeneous workloads and quantify throughput and accuracy trade-offs.
Proposed method
- Model batch-aware expert selection as maximizing a modular proxy objective (sum of gating scores) under a cardinality constraint.
- Prove modularity of the per-layer proxy function and derive optimal greedy solutions for each MoE layer.
- Propose a three-step practical algorithm (warm-up, greedy optimization, refinement) applied per layer during inference without retraining.
- Extend to speculative decoding with a hierarchical, intra-request correlation-aware selection to exploit speculated token overlap.
- Address multi-GPU deployment with GPU-aware greedy selection to balance load and reduce peak GPU usage.

Experimental results
Research questions
- RQ1How can batch composition be exploited to reduce the number of activated MoE experts without sacrificing accuracy?
- RQ2Can a modular optimization proxy with greedy optimization provide theoretical and practical guarantees for batch-aware expert selection?
- RQ3How can speculative decoding and expert-parallel deployments be accommodated to maintain or improve throughput while controlling memory and load?
- RQ4What is the impact of batch-aware expert sharing on end-to-end throughput and accuracy across heterogeneous datasets?
Key findings
- Batch-aware selection can reduce the number of activated experts by up to 30% under standard batching.
- In expert-parallel deployments, peak GPU load can be reduced by up to 3x with accuracy preserved.
- Speculative decoding benefits from hierarchical, correlation-aware expert selection, achieving up to 14% throughput gains.
- GPU-aware and per-layer greedy strategies can balance loads across GPUs and reduce total active experts (e.g., 73% drop for DeepSeek-R1 in EP settings).
- The proposed methods require no retraining and adapt dynamically to each batch, maintaining accuracy within a small degradation budget.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.