arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.07265cs.LGcs.AI
收藏

XShare: 为更快的MoE推理实现协同的批处理专家共享

XShare: Collaborative in-Batch Expert Sharing for Faster MoE Inference

ASU(亚利桑那州立大学);Amazon Web Services(亚马逊网络服务)

Daniil Vankov, Nikita Ivkin, Kyle Ulrich, Xiang Song, Ashish Khetan, George Karypis

AI总结:

XShare通过动态适应批次和高效贪心算法,减少专家激活并提升MoE推理效率。

摘要:

混合专家(MoE)架构正被越来越多地用于高效地扩展大语言模型。然而,在生产推理中,请求批处理和推测解码显著放大了专家激活,削弱了这些效率优势。我们通过将批处理感知的专家选择建模为一个模块化优化问题,并为不同的部署设置设计高效的贪心算法来解决这个问题。所提出的方法,即XShare,无需重新训练,并通过最大化所选专家的总门控分数动态适应每个批次。它在标准批处理下可将专家激活减少多达30%,在专家并行部署中可将峰值GPU负载减少多达3倍,并通过层次化、相关性感知的专家选择在即使请求来自异构数据集的情况下,在推测解码中实现高达14%的吞吐量提升。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑