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

用于高效自回归文本生成的分层跳过解码

Hierarchical Skip Decoding for Efficient Autoregressive Text Generation

School of Information and Communication Engineering, Hainan University(海南大学信息与通信工程学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Guangzhou University(广州大学)

Yunqi Zhu, Xuebing Yang, Yuanyuan Wu, Wensheng Zhang

AI总结:

本文提出一种即插即用的分层跳过解码(HSD)策略,通过根据序列长度自适应跳过解码层来加速自回归文本生成,在跳过近一半层时仍能保持90%的文本质量,优于现有竞争方法。

摘要:

自回归解码策略是预训练语言模型在文本生成任务中常用的方法,而提前退出是加速推理阶段的有效途径。在本研究中,我们提出了一种名为分层跳过解码(HSD)的新型解码策略,用于高效的自回归文本生成。与需要额外可训练组件的现有方法不同,HSD 是一种即插即用的方法,适用于自回归文本生成模型,它根据当前序列长度以分层方式自适应地跳过解码层,从而减少计算工作量并分配计算资源。在五个文本生成数据集上使用预训练语言模型进行的全面实验表明,HSD 在平衡效率和文本质量方面具有优势。在跳过近一半层的情况下,与原始自回归解码相比,HSD 能保持 90% 的文本质量,优于其他竞争方法。

英文摘要:

Autoregressive decoding strategy is a commonly used method for text generation tasks with pre-trained language models, while early-exiting is an effective approach to speedup the inference stage. In this work, we propose a novel decoding strategy named Hierarchical Skip Decoding (HSD) for efficient autoregressive text generation. Different from existing methods that require additional trainable components, HSD is a plug-and-play method applicable to autoregressive text generation models, it adaptively skips decoding layers in a hierarchical manner based on the current sequence length, thereby reducing computational workload and allocating computation resources. Comprehensive experiments on five text generation datasets with pre-trained language models demonstrate HSD's advantages in balancing efficiency and text quality. With almost half of the layers skipped, HSD can sustain 90% of the text quality compared to vanilla autoregressive decoding, outperforming the competitive approaches.

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

↑