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

Clover-2:面向回归式轻量级推测解码的精确推理

Clover-2: Accurate Inference for Regressive Lightweight Speculative Decoding

Baichuan Inc.(百川公司);Beijing Institute of Technology(北京理工大学)

Bin Xiao, Lujun Gui, Lei Su, Weipeng Chen

AI总结:

本文提出Clover-2,通过改进RNN草稿模型架构并引入知识蒸馏,在保持低计算开销的同时提升回归式轻量级推测解码的精度,实验证明其在Vicuna 7B和LLaMA3-Instruct 8B上超越现有方法。

摘要:

大型语言模型(LLMs)经常面临效率低下的问题,这主要归因于自回归解码的要求与当代GPU架构之间的不匹配。近年来,回归式轻量级推测解码因其在文本生成任务中显著的效率提升而受到关注。该方法利用一个轻量级的回归式草稿模型,例如循环神经网络(RNN)或单个Transformer解码器层,利用序列信息迭代地预测潜在token。具体而言,RNN草稿模型计算成本较低,但往往精度较低,而注意力解码器层模型则表现出相反的特性。本文提出了Clover-2,它是Clover的进阶迭代版本。Clover是一个基于RNN的草稿模型,旨在在保持最小计算开销的同时,达到与注意力解码器层模型相当的精度。Clover-2增强了模型架构,并引入了知识蒸馏,以提高Clover的精度并提升整体效率。我们使用开源的Vicuna 7B和LLaMA3-Instruct 8B模型进行了实验。结果表明,Clover-2在各种模型架构上均超越了现有方法,展示了其有效性和鲁棒性。

英文摘要:

Large Language Models (LLMs) frequently suffer from inefficiencies, largely attributable to the discord between the requirements of auto-regressive decoding and the architecture of contemporary GPUs. Recently, regressive lightweight speculative decoding has garnered attention for its notable efficiency improvements in text generation tasks. This approach utilizes a lightweight regressive draft model, like a Recurrent Neural Network (RNN) or a single transformer decoder layer, leveraging sequential information to iteratively predict potential tokens. Specifically, RNN draft models are computationally economical but tend to deliver lower accuracy, while attention decoder layer models exhibit the opposite traits. This paper presents Clover-2, an advanced iteration of Clover, an RNN-based draft model designed to achieve comparable accuracy to that of attention decoder layer models while maintaining minimal computational overhead. Clover-2 enhances the model architecture and incorporates knowledge distillation to increase Clover's accuracy and improve overall efficiency. We conducted experiments using the open-source Vicuna 7B and LLaMA3-Instruct 8B models. The results demonstrate that Clover-2 surpasses existing methods across various model architectures, showcasing its efficacy and robustness.

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

↑