arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.12617cs.LGcs.AI
收藏

当草稿进化:推测解码与在线学习的交汇

When Drafts Evolve: Speculative Decoding Meets Online Learning

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);University of California, San Diego(加州大学圣地亚哥分校)

Yu-Yang Qian, Hao-Cong Wu, Yichao Fu, Hao Zhang, Peng Zhao

AI总结:

本文提出OnlineSpec框架,利用交互反馈持续进化草稿模型,通过动态遗憾最小化建立在线学习性能与推测系统加速率的联系,实现24%的加速提升。

摘要:

推测解码作为一种加速大语言模型推理的广泛采用范式,其中轻量级草稿模型快速生成候选token,然后由更大目标模型并行验证。然而,由于模型容量有限,草稿往往难以近似目标分布,导致接受长度较短和加速效果减弱。关键但尚未充分探索的观察是,推测解码本质上提供验证反馈,量化草稿与目标模型之间的偏差,而无需额外成本。这一过程自然形成迭代的

英文摘要:

Speculative decoding has emerged as a widely adopted paradigm for accelerating large language model inference, where a lightweight draft model rapidly generates candidate tokens that are then verified in parallel by a larger target model. However, due to limited model capacity, drafts often struggle to approximate the target distribution, resulting in shorter acceptance lengths and diminished speedup. A key yet under-explored observation is that speculative decoding inherently provides verification feedback that quantifies the deviation between the draft and target models at no additional cost. This process naturally forms an iterative "draft commits-feedback provides-draft adapts" evolving loop, which precisely matches the online learning paradigm. Motivated by this connection, we propose OnlineSPEC, a unified framework that systematically leverages interactive feedback to continuously evolve draft models. Grounded in dynamic regret minimization, we establish a formal link between online learning performance and speculative system's acceleration rate, and develop novel algorithms via modern online learning techniques, including optimistic online learning that adaptively reuses historical gradients as predictive update hints, and online ensemble learning that dynamically maintains multiple draft models. Our algorithms are equipped with theoretical justifications and improved acceleration rates, achieving up to 24% speedup over seven benchmarks and five foundation models.

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

↑