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

SLED:一种用于高效边缘服务的投机式 LLM 解码框架

SLED: A Speculative LLM Decoding Framework for Efficient Edge Serving

National Technical University of Athens(希腊国家技术大学);Queen's University Belfast(贝尔法斯特女王大学);University College Dublin(都柏林大学学院)

Xiangchen Li, Dimitrios Spatharakis, Saeid Ghafouri, Jiakun Fan, Hans Vandierendonck, Deepu John, Bo Ji, Dimitrios Nikolopoulos

AI总结:

本文提出 SLED 框架,利用投机解码协调异构设备,让轻量边缘设备本地起草候选 token,由共享边缘服务器批处理验证,在不牺牲准确率下显著提升边缘服务吞吐量、容量与成本效益。

摘要:

尽管硬件能力逐步提升,但大型语言模型(LLMs)日益增长的复杂性与边缘设备有限的计算预算之间的差距,对高效的设备端推理构成了关键挑战。现有策略(如激进的量化、剪枝或远程推理)以准确率换取效率,或导致沉重的成本负担。本文提出了一种新框架,该框架利用投机解码(speculative decoding,此前主要被视为 LLMs 自回归生成的解码加速技术),通过协调异构设备间的计算,将其作为一种专门适配边缘计算的有前景的方法。我们提出了 SLED,该框架允许轻量级边缘设备使用多种草稿模型在本地起草多个候选 token,而单个共享的边缘服务器利用更精确的目标模型来验证这些 token。为进一步提高验证效率,边缘服务器对来自设备的多种验证请求进行批处理。该方法支持设备异构性,并通过在多个设备间共享相同的上游目标模型来减少服务器端的内存占用。我们使用 Jetson Orin Nano、Raspberry Pi 4B/5 以及配备 4 块 Nvidia A100 GPU 的边缘服务器进行的初步实验表明,该方法具有显著优势:系统吞吐量提升 2.2 倍,系统容量提升 2.8 倍,且成本效益更佳,所有这些均未牺牲模型准确率。

英文摘要:

The growing gap between the increasing complexity of large language models (LLMs) and the limited computational budgets of edge devices poses a key challenge for efficient on-device inference, despite gradual improvements in hardware capabilities. Existing strategies, such as aggressive quantization, pruning, or remote inference, trade accuracy for efficiency or lead to substantial cost burdens. This position paper introduces a new framework that leverages speculative decoding, previously viewed primarily as a decoding acceleration technique for autoregressive generation of LLMs, as a promising approach specifically adapted for edge computing by orchestrating computation across heterogeneous devices. We propose \acronym, a framework that allows lightweight edge devices to draft multiple candidate tokens locally using diverse draft models, while a single, shared edge server verifies the tokens utilizing a more precise target model. To further increase the efficiency of verification, the edge server batch the diverse verification requests from devices. This approach supports device heterogeneity and reduces server-side memory footprint by sharing the same upstream target model across multiple devices. Our initial experiments with Jetson Orin Nano, Raspberry Pi 4B/5, and an edge server equipped with 4 Nvidia A100 GPUs indicate substantial benefits: 2.2 more system throughput, 2.8 more system capacity, and better cost efficiency, all without sacrificing model accuracy.

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

↑