arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.23150cs.LGcs.AIcs.AR
收藏

通过专家激活模式扩展多节点专家混合推理

Scaling Multi-Node Mixture-of-Experts Inference Using Expert Activation Patterns

Anonymous Authors(匿名作者)

Abhimanyu Bambhaniya, Geonhwa Jeong, Jason Park, Jiecao Yu, Jaewon Lee, Pengchao Wang, Changkyu Kim, Chunqiang Tang, Tushar Krishna

AI总结:

本文研究多节点MoE推理中的专家负载不均和路由效率问题,提出基于工作负载的微批次分组和专家放置策略,减少节点间通信开销,提升解码延迟和加速器利用率。

摘要:

最近最先进的大型语言模型(LLMs)使用混合专家(MoE)架构来扩展模型容量,而无需成比例增加每token的计算量,从而在可控的服务成本下实现高质量输出。然而,大规模MoE推理本质上受到专家负载不均和低效token路由的限制,特别是在多节点部署中,token不一定能路由到本地专家,导致显著的节点间全到全通信开销。为了系统地表征这些挑战,我们对最先进的开源MoE模型(包括Llama 4 Maverick、DeepSeek V3-671B和Qwen3-230B-A22B)在各种数据集上进行了性能分析,并收集了超过10万条真实专家激活轨迹。通过研究专家激活模式,我们发现所有前沿MoE模型中存在多种持久特性:变量专家负载不均、领域特定的专家激活(专家受欢迎程度在任务家族之间变化(代码、数学、聊天、通用)),以及前缀和解码专家激活之间的强相关性。受这些发现的启发,我们提出了一种基于工作负载的微批次分组和专家放置策略,以最大化token到目标专家的局部性,从而减少节点间通信。在各种模型和数据集上,这些优化帮助将全到全通信数据量减少高达20,从而降低MoE解码延迟并提高加速器利用率。

英文摘要:

Most recent state-of-the-art (SOTA) large language models (LLMs) use Mixture-of-Experts (MoE) architectures to scale model capacity without proportional per-token compute, enabling higher-quality outputs at manageable serving costs. However, MoE inference at scale is fundamentally bottlenecked by expert load imbalance and inefficient token routing, especially in multi-node deployments where tokens are not guaranteed to be routed to local experts, resulting in significant inter-node all-to-all communication overhead. To systematically characterize these challenges, we profile SOTA open-source MoE models, including Llama 4 Maverick, DeepSeek V3-671B, and Qwen3-230B-A22B, on various datasets and collected over 100k real expert activation traces. Upon studying the expert activation patterns, we uncover various persistent properties across all the frontier MoE models: variable expert load imbalance, domain-specific expert activation where expert popularity shifts across task families (code, math, chat, general), and a strong correlation between prefill and decode expert activations. Motivated by these findings, we propose workload-aware micro-batch grouping and an expert placement strategy to maximize token locality to the destination expert, thereby reducing inter-node communication. Across models and datasets, these optimizations help reduce all2all communication data up to 20, resulting in lower MoE decode latency and better accelerator utilization.

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

↑