arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18351cs.CLcs.LG
收藏

AdaEDL:基于 token 接受概率熵下界的大语言模型推测解码提前草稿停止方法

AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probability

Qualcomm AI Research(高通人工智能研究部门)

Sudhanshu Agrawal, Wonseok Jeon, Mingu Lee

AI总结:

本文提出无需训练和参数的 AdaEDL,利用草稿 logits 熵估计 token 接受概率下界并自适应提前停止草稿生成,在多种设置下显著提升推测解码效率与稳健性。

摘要:

推测解码是一项强大的技术,旨在绕开现代大语言模型(LLM)的自回归约束。推测解码技术的目标是:利用更高效的草稿模型提出草稿 token,随后对这些 token 进行并行验证,从而在不牺牲大型目标模型准确率的情况下改善其平均推理时间。每一轮草稿生成所产生的草稿 token 数量称为草稿长度,通常是根据草稿 token 的接受率统计信息选定的静态超参数。然而,设置静态草稿长度可能对性能产生负面影响,尤其是在草稿生成代价高昂且被接受 token 数量存在较大方差的场景中。自适应基于熵的草稿长度方法(Adaptive Entropy-based Draft Length,AdaEDL)是一种简单、无需训练且无参数的准则;它根据当前观察到的草稿 logits 的熵,近似估计所起草 token 的期望接受概率的下界,从而允许提前停止 token 草稿生成过程。我们表明,在多种设置和数据集上,AdaEDL 相比静态草稿长度推测解码持续提升 10%–57%,相比其他无需训练的草稿停止技术最高提升 10%。同时,我们表明 AdaEDL 比这些技术更稳健,并能在高采样温度场景中保持性能。由于它无需训练,与依赖训练数据集特定草稿停止预测器的技术不同,AdaEDL 可以无缝集成到多种既有 LLM 系统中。

英文摘要:

Speculative decoding is a powerful technique that attempts to circumvent the autoregressive constraint of modern Large Language Models (LLMs). The aim of speculative decoding techniques is to improve the average inference time of a large, target model without sacrificing its accuracy, by using a more efficient draft model to propose draft tokens which are then verified in parallel. The number of draft tokens produced in each drafting round is referred to as the draft length and is often a static hyperparameter chosen based on the acceptance rate statistics of the draft tokens. However, setting a static draft length can negatively impact performance, especially in scenarios where drafting is expensive and there is a high variance in the number of tokens accepted. Adaptive Entropy-based Draft Length (AdaEDL) is a simple, training and parameter-free criteria which allows for early stopping of the token drafting process by approximating a lower bound on the expected acceptance probability of the drafted token based on the currently observed entropy of the drafted logits. We show that AdaEDL consistently outperforms static draft-length speculative decoding by 10%-57% as well as other training-free draft-stopping techniques by upto 10% in a variety of settings and datasets. At the same time, we show that AdaEDL is more robust than these techniques and preserves performance in high-sampling-temperature scenarios. Since it is training-free, in contrast to techniques that rely on the training of dataset-specific draft-stopping predictors, AdaEDL can seamlessly be integrated into a variety of pre-existing LLM systems.

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

↑