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

FlexSpec: 冻结草稿与演进目标在边缘-云协作大语言模型推测解码中的结合

FlexSpec: Frozen Drafts Meet Evolving Targets in Edge-Cloud Collaborative LLM Speculative Decoding

Baidu Inc.(百度公司);School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机学院);Department of Information Science and Engineering, KTH Royal Institute of Technology(皇家理工学院信息与工程学院);Shenzhen Research Institute of Big Data(深圳大数据研究院)

Yuchen Li, Rui Kong, Zhonghao Lyu, Qiyang Li, Xinran Chen, Hengyi Cai, Lingyong Yan, Shuaiqiang Wang, Jiashu Zhao, Guangxu Zhu, Linghe Kong, Guihai Chen, Haoyi Xiong, Dawei Yin

AI总结:

FlexSpec通过共享骨干架构和通道感知机制,提升边缘-云协作大语言模型推测解码的效率与可扩展性。

摘要:

在移动和边缘计算环境中部署大型语言模型(LLMs)受到设备资源有限、无线带宽稀缺以及模型频繁演进的限制。尽管边缘-云协作推理结合推测解码(SD)可以通过在边缘执行轻量级草稿模型并在云端验证以减少端到端延迟,但现有框架本质上依赖于两个模型之间的紧密耦合。因此,重复的模型同步引入了过多的通信开销,增加了端到端延迟,并最终限制了SD在边缘环境中的可扩展性。为了解决这些限制,我们提出了FlexSpec,一种针对演进的边缘-云系统的通信高效协作推理框架。FlexSpec的核心设计是一种共享骨干架构,允许单个静态的边缘侧草稿模型与大量演进的云端目标模型保持兼容。通过将边缘部署与云端模型更新解耦,FlexSpec消除了边缘侧重新训练或重复下载模型的需要,大幅降低了通信和维护成本。此外,为了适应时间变化的无线条件和异构设备约束,我们开发了一种通道感知的自适应推测机制,该机制根据实时信道状态信息和设备能耗预算动态调整推测草稿长度。广泛的实验表明,FlexSpec在推理效率方面优于传统SD方法。

英文摘要:

Deploying large language models (LLMs) in mobile and edge computing environments is constrained by limited on-device resources, scarce wireless bandwidth, and frequent model evolution. Although edge-cloud collaborative inference with speculative decoding (SD) can reduce end-to-end latency by executing a lightweight draft model at the edge and verifying it with a cloud-side target model, existing frameworks fundamentally rely on tight coupling between the two models. Consequently, repeated model synchronization introduces excessive communication overhead, increasing end-to-end latency, and ultimately limiting the scalability of SD in edge environments. To address these limitations, we propose FlexSpec, a communication-efficient collaborative inference framework tailored for evolving edge-cloud systems. The core design of FlexSpec is a shared-backbone architecture that allows a single and static edge-side draft model to remain compatible with a large family of evolving cloud-side target models. By decoupling edge deployment from cloud-side model updates, FlexSpec eliminates the need for edge-side retraining or repeated model downloads, substantially reducing communication and maintenance costs. Furthermore, to accommodate time-varying wireless conditions and heterogeneous device constraints, we develop a channel-aware adaptive speculation mechanism that dynamically adjusts the speculative draft length based on real-time channel state information and device energy budgets. Extensive experiments demonstrate that FlexSpec achieves superior performance compared to conventional SD approaches in terms of inference efficiency.

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

↑