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

通过并行性扩展大语言模型(LLM)推理:吞吐量-延迟权衡

Scaling LLM Inference via Parallelism: Throughput-Latency Trade-off

Dell Technologies Inc.(戴尔科技有限公司)

Javad Mirzaei, Jeebak Mitra

AI总结:

本文提出框架,通过TTFT-ITL可行集等揭示LLM并行配置随工作负载、SLO、上下文长度的转变规律,为感知SLO的并行选择提供方法。

摘要:

大语言模型(LLM)服务系统必须在高效利用分布式GPU资源的同时,平衡延迟与吞吐量。这一挑战源于推理包含两个本质不同的阶段:预填充(prefill),决定首token生成时间(TTFT);解码(decode),决定token间延迟(ITL)。张量并行(TP)、流水线并行(PP)及混合配置的使用,会在这些延迟维度上呈现不同的权衡,使得最优并行配置高度依赖工作负载特征、延迟要求和上下文长度。此外,尽管分布式推理已被广泛采用,但对于不同工作负载条件和服务水平目标(SLO)下应如何选择并行配置,仍缺乏深入理解。本文中,我们开发了一套系统框架,用于通过吞吐量-延迟权衡、感知SLO的服务及长上下文可扩展性来表征LLM推理并行性。我们构建了不同工作负载构成下的TTFT-ITL可行集与帕累托前沿,引入并行性操作区域的概念,揭示了当工作负载越来越偏向预填充时,配置会从以TP为主向以PP为主发生系统性转变。我们进一步用有效吞吐量(goodput)公式化感知SLO的并行性选择,表明严格的TTFT要求倾向于以PP为主的配置,而宽松的延迟约束会逐步将最优配置转向服务能力更高的以TP为主的配置。最后,我们证明增加上下文长度会从根本上改变并行配置的相对优势,在长上下文场景下,以PP为主的配置展现出更优的可扩展性和SLO达成能力。

英文摘要:

Large Language Model (LLM) serving systems must balance latency and throughput while efficiently utilizing distributed GPU resources. This challenge arises because inference consists of two fundamentally different phases: prefill, which determines time-to-first-token (TTFT), and decode, which determines inter-token latency (ITL). The use of tensor parallelism (TP), pipeline parallelism (PP), and hybrid configurations exposes different trade-offs between these latency dimensions, making the optimal parallelism configuration highly dependent on workload characteristics, latency requirements, and context length. Moreover, despite the widespread adoption of distributed inference, there is still limited understanding of how parallelism configurations should be selected under varying workload conditions and service-level objectives (SLO). In this paper, we develop a systematic framework for characterizing LLM inference parallelism via throughput-latency trade-offs, SLO-aware serving, and long-context scalability. We introduce the notion of parallelism operating regions by constructing TTFT-ITL feasible sets and Pareto frontiers across different workload compositions, thereby revealing a systematic transition from TP-dominant to PP-dominant configurations as workloads become increasingly prefill-heavy. We further formulate SLO-aware parallelism selection using goodput, showing that stringent TTFT requirements favor PP-dominated configurations, whereas relaxed latency constraints progressively shift the optimality toward TP-dominated configurations with higher serving capacity. Finally, we demonstrate that increasing context length fundamentally changes the relative advantages of parallelism configurations, with PP-dominant configurations exhibiting more favorable scalability and SLO attainment in the long-context regime.

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

↑