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

AdaSpec: 一种适应性推测解码用于快速、面向SLO的大型语言模型服务

AdaSpec: Adaptive Speculative Decoding for Fast, SLO-Aware Large Language Model Serving

Tongji University(同济大学);Shenzhen Research Institute of Big Data, The Chinese University of Hong Kong, Shenzhen(深圳大数据研究院,香港中文大学(深圳));Huazhong University of Science and Technology(华中科技大学);School of Data Science, The Chinese University of Hong Kong, Shenzhen(数据科学学院,香港中文大学(深圳))

Kaiyu Huang, Hao Wu, Zhubo Shi, Han Zou, Minchen Yu, Qingjiang Shi

AI总结:

AdaSpec通过动态调整推测策略,提高大型语言模型服务的响应速度和SLO满足度,实验显示性能提升达66%。

摘要:

基于云的大型语言模型(LLM)服务常常面临在动态请求模式下实现低推理延迟和满足服务级别目标(SLO)的挑战。推测解码,它利用轻量级模型进行草稿生成,而LLM进行验证,已成为加速LLM推理的有吸引力的技术。然而,现有的推测解码解决方案往往无法适应波动的工作负载和动态系统环境,导致性能受损和SLO违规。在本文中,我们引入了AdaSpec,一种高效的LLM推理系统,该系统根据实时请求负载和系统配置动态调整推测策略。AdaSpec提出了一种理论模型,用于分析和预测不同场景下推测策略的效率。此外,它实现了智能草稿生成和验证算法,以在确保高SLO达成的同时最大化性能。在真实世界LLM服务跟踪上的实验结果表明,AdaSpec始终满足SLOs,并实现了显著的性能提升,比最先进的推测推理系统快达66%。源代码可在https://github.com/cerebellumking/AdaSpec上公开获取。

英文摘要:

Cloud-based Large Language Model (LLM) services often face challenges in achieving low inference latency and meeting Service Level Objectives (SLOs) under dynamic request patterns. Speculative decoding, which exploits lightweight models for drafting and LLMs for verification, has emerged as a compelling technique to accelerate LLM inference. However, existing speculative decoding solutions often fail to adapt to fluctuating workloads and dynamic system environments, resulting in impaired performance and SLO violations. In this paper, we introduce AdaSpec, an efficient LLM inference system that dynamically adjusts speculative strategies according to real-time request loads and system configurations. AdaSpec proposes a theoretical model to analyze and predict the efficiency of speculative strategies across diverse scenarios. Additionally, it implements intelligent drafting and verification algorithms to maximize performance while ensuring high SLO attainment. Experimental results on real-world LLM service traces demonstrate that AdaSpec consistently meets SLOs and achieves substantial performance improvements, delivering up to 66% speedup compared to state-of-the-art speculative inference systems. The source code is publicly available at https://github.com/cerebellumking/AdaSpec

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

↑