arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.28768cs.DCcs.LG
收藏

CRAFT:面向高效混合专家服务的细粒度成本感知专家复制

CRAFT: Fine-Grained Cost-Aware Expert Replication For Efficient Mixture-of-Experts Serving

NVIDIA Corporation(英伟达公司)

Adrian Zhao, Zhenkun Cai, Zhenyu Song, Lingfan Yu, Haozheng Fan, Jun Wu, Yida Wang, Nandita Vijaykumar

AI总结:

提出CRAFT框架,通过基于估计收益的细粒度逐层复制,在给定内存预算下最大化负载均衡,无需额外训练即可提升大规模MoE服务吞吐量。

摘要:

混合专家(MoE)最近成为高效扩展大型语言模型同时保持计算成本近乎恒定的主流架构。专家并行通过跨设备划分专家来分布参数,但这会在推理过程中引入令牌级负载不均衡。专家复制是服务框架中广泛采用的负载均衡技术,通过复制高负载专家来缓解大规模部署中的负载不均衡。在这项工作中,我们证明现有的复制方案往往过度复制,许多副本提供的改进微乎其微。副本消耗大量GPU内存,可能导致资源争用和吞吐量下降。我们提出CRAFT,一种高效的专家复制框架,通过基于估计的复制收益进行细粒度逐层复制,在给定内存预算下最大化负载均衡。CRAFT可以无缝集成到现有服务框架中,无需额外训练或模型更改。我们的评估表明,在模型规模从数千亿到数万亿参数的大规模部署中,与现有复制技术相比,CRAFT将端到端服务吞吐量平均提高1.14倍(最高1.2倍)。

英文摘要:

Mixture-of-Experts (MoE) has recently emerged as the mainstream architecture for efficiently scaling large language models while maintaining near-constant computational cost. Expert parallelism distributes parameters by partitioning experts across devices, but this introduces token-level load imbalance during inference. Expert replication is a widely adopted load-balancing technique in serving frameworks that alleviates load imbalance in large-scale deployments by replicating experts with high loads. In this work, we demonstrate that existing replication schemes often over-replicate, with many replicas providing marginal improvement. Replicas consume substantial GPU memory, which may lead to resource contention and throughput degradation. We present CRAFT, an efficient expert replication framework that maximizes load balance under a given memory budget by performing fine-grained, per-layer replication based on the estimated replication benefit. CRAFT can be seamlessly integrated into existing serving frameworks without any additional training or model changes. Our evaluation shows that CRAFT increases end-to-end serving throughput by $1.14\times$ on average (up to $1.2\times$) over existing replication techniques in large-scale deployments with models ranging from hundreds of billions to a trillion parameters.

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

↑