跳到正文
arXiv cs.AI· Ao Sun, Yinghao Chen, Shiju Wang, Weilin Zhao, Yuxiang Huang, Chaojun Xiao, Xu Han, Zhiyuan Liu·· 2 天前AI 评分41

xInfer:面向长尾离线 LLM 推理的弹性并行与负载均衡

xInfer: Elastic Parallelism and Load Balancing for Long-Tail Offline LLM Inference

AI 导读

xInfer 是一个面向长尾离线 LLM 推理的系统,可在运行时动态调整并行布局与请求放置。它通过 Flexible Parallelism Switching 提升算术强度,性能模型(R^2 >= 0.96)预测切换收益,配合两级 Distributed Overflow Queue 解决负载不均,重分片开销降低 2.6x。

正文 · 原文

View PDF HTML (experimental)

Abstract:Offline LLM inference issues a fixed batch of requests at once and optimizes whole-batch completion time rather than the latency of any single request. It underpins many LLM applications, e.g., data curation, model evaluation, and reinforcement-learning rollout. Their highly skewed, long-tail output lengths expose two weaknesses in inference engines whose TP/DP layout is fixed at launch: (I) low arithmetic intensity: the growing KV-Cache shrinks the runnable batch, pushing it below the hardware ridge point and leaving decode memory-bound. (II) load imbalance: a few long requests keep running after their peers finish, and since generation lengths are unpredictable, no static schedule can avoid it. We present xInfer, an inference system that adapts both its parallel layout and its request placement at runtime. To raise arithmetic intensity, Flexible Parallelism Switching consolidates data-parallel replicas into larger tensor-parallel groups at the price of extra intra-node all-reduce communication. Whether this trade pays off depends on the evolving workload, so a performance model fitted ahead of time (five-fold cross-validated R^2 >= 0.96) lets the runtime coordinator predict candidate-layout makespans and switch only when the expected gain outweighs the reconfiguration cost. Dedicated re-sharding optimizations further shrink this cost by 2.6x. Layout adaptation alone cannot fix load imbalance across instances, so a two-level Distributed Overflow Queue redistributes requests within and across nodes off the critical decode path. To our knowledge, xInfer is the first inference system to drive runtime parallelism switching with a performance model grounded in arithmetic intensity. Across three long-tail offline workloads with Qwen3-8B/14B/32B on up to 32 H100 GPUs, xInfer achieves end-to-end speedups of up to 1.46x over vLLM and 1.49x over SGLang.
Comments: 20 pages, 12 figures. Under review at MLSys
Subjects: Distributed, Parallel, and Cluster Computing (cs.DC); Artificial Intelligence (cs.AI); Performance (cs.PF)
MSC classes: 68M20, 68T50
ACM classes: C.4; I.2.7
Cite as: arXiv:2612.05145 [cs.DC]
  (or arXiv:2612.05145v1 [cs.DC] for this version)
  https://doi.org/10.48550/arXiv.2612.05145

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yinghao Chen [view email]
[v1] Thu, 3 Dec 2026 07:24:16 UTC (924 KB)

来源:arXiv cs.AI · arxiv.org