arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.20919cs.ITmath.IT
收藏

DiP-SD:分布式流水线推测解码用于边缘高效LLM推理

DiP-SD: Distributed Pipelined Speculative Decoding for Efficient LLM Inference at the Edge

Tsinghua University(清华大学)

Yaodan Xu, Sheng Zhou, Zhisheng Niu

AI总结:

本文提出DiP-SD,通过设备级分布式生成与阶段级生成-验证流水线,优化边缘多用户LLM推理的吞吐量,实现比自回归解码高17.89倍的性能。

摘要:

推测解码通过先生成后验证加速自回归解码,本文研究多用户边缘场景,本地生成token后卸载至中央边缘服务器批量验证。关键挑战是维持高吞吐量,需联合优化批处理、流水线调度及用户生成token长度。DiP-SD利用设备级分布式生成与阶段级生成-验证流水线,制定吞吐量最大化目标,联合优化批数、用户-批分配及整数生成长度。通过扫描批数并迭代求解关联子问题与生成长度子问题,实验表明在Qwen3-1.7B/Qwen3-32B设备-边缘部署中,DiP-SD相比自回归解码提升17.89倍,相比贪心批处理提升1.93倍。

英文摘要:

Speculative decoding has emerged as a promising technique for large language model (LLM) inference by accelerating autoregressive decoding via draft-then-verify. This paper studies a new edge scenario with multi-user inference, where draft tokens are generated locally on devices and subsequently offloaded to a centralized edge server for batch verification. The key challenge is to sustain high throughput under coupled decisions of (i) batching and pipeline scheduling and (ii) per user draft token length. We propose DiP-SD, which exploits two complementary parallelism dimensions: device-level distributed drafting and phase-level draft-verify pipelining. We formulate a throughput-maximization objective, defined as the expected number of accepted tokens per unit time, and jointly optimize the number of batches, user-to-batch assignment, and integer draft lengths. To solve the resulting fractional mixed-integer program, DiP-SD scans the batch number and iteratively alternates between an association subproblem and a draft-length subproblem. Numerical results under a Qwen3-1.7B/Qwen3-32B device-edge deployment show that DiP-SD achieves up to 17.89x throughput over autoregressive decoding (AD) and 1.93x over AD with greedy batching.

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

↑