arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.13319cs.DC
收藏

PipeSD:一种基于推测解码的高效云边协同流水线推理框架

PipeSD: An Efficient Cloud-Edge Collaborative Pipeline Inference Framework with Speculative Decoding

Zhejiang University(浙江大学);Northeastern University(东北大学);University of Surrey(萨里大学);Zhongguancun Institute of Artificial Intelligence(中关村人工智能研究院)

Yunhe Han, Yunqi Gao, Bing Hu, Mahdi Boloursaz Mashhadi, Yitong Duan, Pei Xiao, Yanfeng Zhang

AI总结:

提出PipeSD框架,通过令牌批处理流水线调度和双阈值非自回归验证触发机制,解决云边协同推测解码中的资源利用率和验证灵活性瓶颈,实现1.16倍至2.16倍加速并降低14.3%-25.3%能耗。

摘要:

推测解码可以显著加速LLM推理,特别是其云边协同部署提供了云端负载卸载、离线鲁棒性和隐私增强。然而,现有的基于推测解码的协同推理框架受限于:(i) 顺序令牌生成和通信导致资源利用率低,以及(ii) 不灵活的云端非自回归验证(NAV)触发导致过早验证或代价高昂的回滚。在本文中,我们提出PipeSD,一种基于推测解码的高效云边协同流水线推理框架。PipeSD通过动态规划优化的令牌批处理流水线调度机制重叠令牌生成和通信,并通过带有轻量级贝叶斯优化自动调优器的双阈值NAV触发机制提高验证灵活性。我们使用llama-cpp-python、PyTorch和FastAPI实现了PipeSD,并在真实云边测试床上,使用两个草稿-目标模型对在四个场景下进行评估。结果表明,PipeSD始终优于最先进的基线,实现1.16倍至2.16倍加速,并降低14.3%-25.3%的能耗。

英文摘要:

Speculative decoding can significantly accelerate LLM inference, especially given that its cloud-edge collaborative deployment offers cloud workload offloading, offline robustness, and privacy enhancement. However, existing collaborative inference frameworks with speculative decoding are constrained by (i) sequential token generation and communication with low resource utilization, and (ii) inflexible cloud non-autoregressive verification (NAV) triggering that induces premature verification or costly rollbacks. In this paper, we propose PipeSD, an efficient cloud-edge collaborative pipeline inference framework with speculative decoding. PipeSD overlaps token generation and communication by a token-batch pipeline scheduling mechanism optimized by dynamic programming, and improves verification flexibility through a dual-threshold NAV triggering mechanism with a lightweight Bayesian optimization autotuner. We implement PipeSD using llama-cpp-python, PyTorch, and FastAPI, and evaluate it on a real-world cloud-edge testbed with two draft-target model pairs across four scenarios. Results show that PipeSD consistently outperforms state-of-the-art baselines, achieving 1.16x-2.16x speedup and reducing energy consumption by 14.3%-25.3%.

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

↑