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

基于知识蒸馏的推测解码温度中心研究

Temperature-Centric Investigation of Speculative Decoding with Knowledge Distillation

Microsoft(微软);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Siru Ouyang, Shuohang Wang, Minhao Jiang, Ming Zhong, Donghan Yu, Jiawei Han, Yelong Shen

AI总结:

本文深入探讨了解码温度对推测解码效能的影响,发现高温解码存在挑战,并证明一致温度下的知识蒸馏可作为补救措施,为生成配置显著影响推测解码性能提供了新见解。

摘要:

推测解码是加速自回归(大型)语言模型推理的关键技术。该方法利用较小的草稿模型推测一个token块,随后由目标模型评估其接受情况。尽管大量研究旨在提高推测解码的效率,但生成配置对解码过程的影响仍不甚明了,尤其是在解码温度方面。本文深入探讨了解码温度对推测解码效能的影响。从知识蒸馏(KD)出发,我们首先强调了高温解码的挑战,并证明在一致温度设置下的KD可作为一种补救措施。我们还考察了范围外温度的域外测试集的影响。基于这些发现,我们迈出了进一步加速推测解码的初步步伐,特别是在高温生成设置下。我们的工作为生成配置如何显著影响推测解码性能提供了新见解,并强调需要开发关注多样化解码配置的方法。代码公开于https://github.com/ozyyshr/TempSpec。

英文摘要:

Speculative decoding stands as a pivotal technique to expedite inference in autoregressive (large) language models. This method employs a smaller draft model to speculate a block of tokens, which the target model then evaluates for acceptance. Despite a wealth of studies aimed at increasing the efficiency of speculative decoding, the influence of generation configurations on the decoding process remains poorly understood, especially concerning decoding temperatures. This paper delves into the effects of decoding temperatures on speculative decoding's efficacy. Beginning with knowledge distillation (KD), we first highlight the challenge of decoding at higher temperatures, and demonstrate KD in a consistent temperature setting could be a remedy. We also investigate the effects of out-of-domain testing sets with out-of-range temperatures. Building upon these findings, we take an initial step to further the speedup for speculative decoding, particularly in a high-temperature generation setting. Our work offers new insights into how generation configurations drastically affect the performance of speculative decoding, and underscores the need for developing methods that focus on diverse decoding configurations. Code is publically available at https://github.com/ozyyshr/TempSpec.

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

↑