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

TapOut:一种基于Bandit的动态投机解码方法

TapOut: A Bandit-Based Approach to Dynamic Speculative Decoding

Cerebras Systems(Cerebras系统);University of Waterloo(滑铁卢大学)

Aditya Sridhar, Nish Sinnadurai, Sean Lie, Vithursan Thangarasa

AI总结:

提出TapOut,一种基于多臂老虎机的在线、免训练、即插即用动态投机解码算法,通过元算法在多种无参数策略间选择,无需超参数调优即可实现有竞争力或更优的LLM加速。

摘要:

投机解码通过使用轻量级草稿模型自回归地生成token,然后与较大的目标模型并行验证它们,从而加速LLM。然而,确定要草稿的最佳token数量仍然是限制该方法有效性的关键挑战。动态投机解码旨在智能地决定草稿多少token以实现最大加速。现有方法通常依赖手动调整的敏感阈值(例如token熵),这些阈值设置成本高,且在不同模型和领域间泛化能力差。我们提出了TapOut,这是一种在线、免训练、即插即用的算法,使用多臂老虎机进行动态投机策略选择。我们的方法采用元算法,基于过去的奖励和探索在多种无参数动态投机策略中进行选择。我们在多样化的模型对和数据集上进行了广泛实验,表明与成熟的动态投机基线相比,TapOut无需任何超参数调整即可实现具有竞争力或更优的加速效果。

英文摘要:

Speculative decoding accelerates LLMs by using a lightweight draft model to generate tokens autoregressively before verifying them in parallel with a larger target model. However, determining the optimal number of tokens to draft remains a key challenge limiting the approach's effectiveness. Dynamic speculative decoding aims to intelligently decide how many tokens to draft to achieve maximum speedups. Existing methods often rely on hand-tuned, sensitive thresholds (e.g., token entropy), which are costly to set and generalize poorly across models and domains. We propose TapOut, an online, training-free, plug-and-play algorithm for dynamic speculation policy selection using multi-armed bandits. Our approach employs a meta-algorithm that selects among multiple parameter-free dynamic speculation strategies based on past reward and exploration. We conduct extensive experiments across diverse model pairs and datasets, showing that TapOut achieves competitive or superior speedups compared to well-established dynamic speculation baselines without any hyperparameter tuning.

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

↑