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

动态推测前瞻加速大语言模型的推测解码

Dynamic Speculation Lookahead Accelerates Speculative Decoding of Large Language Models

Intel Labs(英特尔实验室);Weizmann Institute of Science(魏茨曼科学研究所);School of Computer Science & Engineering, Hebrew University of Jerusalem(希伯来大学计算机科学与工程学院)

Jonathan Mamou, Oren Pereg, Daniel Korat, Moshe Berchansky, Nadav Timor, Moshe Wasserblat, Roy Schwartz

AI总结:

针对推测解码中静态推测前瞻的次优问题,提出动态选择SL的DISCO方法,在四个数据集上平均加速10%且生成文本不变。

摘要:

推测解码通常用于减少大语言模型的推理延迟。其有效性高度依赖于推测前瞻(SL),即每次迭代中草稿模型生成的令牌数量。在这项工作中,我们表明对所有迭代使用相同的SL(静态SL)的常见做法是次优的。我们引入了DISCO(动态推测前瞻优化),一种动态选择SL的新方法。我们在四个数据集上的实验表明,与最佳静态SL基线相比,DISCO平均加速10%,同时生成完全相同的文本。

英文摘要:

Speculative decoding is commonly used for reducing the inference latency of large language models. Its effectiveness depends highly on the speculation lookahead (SL)-the number of tokens generated by the draft model at each iteration. In this work we show that the common practice of using the same SL for all iterations (static SL) is suboptimal. We introduce DISCO (DynamIc SpeCulation lookahead Optimization), a novel method for dynamically selecting the SL. Our experiments with four datasets show that DISCO reaches an average speedup of 10% compared to the best static SL baseline, while generating the exact same text.

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

↑