arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17855cs.DCstat.ML
收藏

一种通用的负载均衡原理及其在大语言模型服务中的应用

Load Balancing with Evolving Workloads in Large-Scale Language Model Serving

HKUST(香港科技大学);National University of Defense Technology(国防科技大学);Peking University(北京大学);Stanford University(斯坦福大学)

Zixi Chen, Tianci Bu, Chendong Song, Xin Lu, Yinyu Ye, Zijie Zhou

AI总结:

本文提出了一种适用于屏障同步系统的通用负载均衡原理,通过减少负载不均衡实现能源节约,应用于大语言模型服务中,实现了28%的能耗降低和性能提升。

摘要:

在大型语言模型(LLM)服务系统中,超过40%的计算能力可能系统性地被浪费——并非来自硬件限制,而是来自屏障同步并行处理中的负载不均衡。当进度由每一步中最慢的工人决定时,异构和变化的工作负载会创造持续的落后者;更快的工人空闲而消耗电力,却无所作为。在仅大语言模型推理中,这每天就导致数百万千瓦时的浪费电力。我们开发了一种适用于具有不可迁移状态的屏障同步系统的通用负载均衡原理。我们证明了最坏情况的理论保证:不平衡度随系统规模增长而减少,由此产生的节能效果在现代硬件大规模集群中可超过52%。实验验证了理论,展示了28%的能耗降低以及显著的吞吐量和延迟改进。该原理被表述为具有证明保证的在线整数优化问题,不仅扩展到LLM服务,还适用于更广泛的屏障同步并行系统,为可持续高性能计算建立了理论基础。

英文摘要:

Serving large language models requires assigning requests whose workloads grow during processing and whose completion times are unknown. With a synchronization barrier, lightly loaded workers wait for the slowest worker at every decode iteration. We model this loss through aggregate workload imbalance and formulate a joint admission and assignment problem with sticky requests and capacity limits. Short lookahead incorporates predicted completions of ongoing requests. For exact optimization without lookahead, we prove a comparison under independent geometric decode lengths, bounded independent nondegenerate prompt sizes, and batched releases satisfying a cumulative supply condition. The long-run expected imbalance improvement over first come, first served admission with request-count join-shortest-queue grows at least as the square root of the product of worker capacity and the logarithm of worker count, in the stated scaling regime. The comparison extends to capacity-aware round robin, random routing, and power of two choices. BalanceRoute approximations connect the formulation to practical routing. Experiments using up to 144 NPUs with proprietary and public traces show lower workload spread and higher throughput than the evaluated baselines. These empirical results complement the guarantee for exact optimization.

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

↑