arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19133cs.DC
收藏

一种用于高效边缘-云LLM推理的流水线协同推测解码框架

A Pipelined Collaborative Speculative Decoding Framework for Efficient Edge-Cloud LLM Inference

University of Science and Technology Beijing, School of Computer and Communication Engineering(北京科技大学计算机与通信工程学院)

Yida Zhang, Zhiyong Gao, Shuaibing Yue, Jie Li, Rui Wang

AI总结:

本文提出PicoSpec框架,通过异步流水线解决边缘协作中的等待问题,并引入稀疏压缩降低通信延迟,实现在边缘-云协同推理中的高效性能。

摘要:

近年来,大型语言模型(LLM)在工业和学术领域的广泛应用催生了对LLM服务的巨大需求。然而,传统云服务成本高,而设备端推理受限于资源限制。边缘-云协作成为结合两种范式优势的关键研究方向,但如何高效利用有限的网络带宽并充分利用边缘设备和云的计算能力仍是一个开放问题。为了解决这些挑战,我们提出Pipelined Collaborative Speculative Decoding Framework(PicoSpec),一种新颖的、通用的、无需训练的推测解码框架,用于LLM边缘-云协同推理。我们设计了一个异步流水线,解决边缘协作场景中传统推测解码固有的相互等待问题,同时在边缘设备上执行小型语言模型(SLM),并在云端执行LLM。此外,为缓解由于传输词汇分布导致的显著通信延迟,我们引入了分离的拒绝采样与稀疏压缩,仅需一次传输压缩后的词汇即可完成拒绝采样。实验结果表明,我们的解决方案优于基线和现有方法,实现了最高2.9倍的速度提升。

英文摘要:

Recent advancements and widespread adoption of Large Language Models (LLMs) in both industry and academia have catalyzed significant demand for LLM serving. However, traditional cloud services incur high costs, while on-device inference alone faces challenges due to limited resources. Edge-cloud collaboration emerges as a key research direction to combine the strengths of both paradigms, yet efficiently utilizing limited network bandwidth while fully leveraging and balancing the computational capabilities of edge devices and the cloud remains an open problem. To address these challenges, we propose Pipelined Collaborative Speculative Decoding Framework (PicoSpec), a novel, general-purpose, and training-free speculative decoding framework for LLM edge-cloud collaborative inference. We design an asynchronous pipeline that resolves the mutual waiting problem inherent in vanilla speculative decoding within edge collaboration scenarios, which concurrently executes a Small Language Model (SLM) on the edge device and a LLM in the cloud. Meanwhile, to mitigate the significant communication latency caused by transmitting vocabulary distributions, we introduce separate rejection sampling with sparse compression, which completes the rejection sampling with only a one-time cost of transmitting the compressed vocabulary. Experimental results demonstrate that our solution outperforms baseline and existing methods, achieving up to 2.9 speedup.

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

↑