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

ELMER:一种用于高效文本生成的非自回归预训练语言模型

ELMER: A Non-Autoregressive Pre-trained Language Model for Efficient and Effective Text Generation

Renmin University of China(中国人民大学);Université de Montréal(蒙特利尔大学)

Junyi Li, Tianyi Tang, Wayne Xin Zhao, Jian-Yun Nie, Ji-Rong Wen

摘要:

本文研究了基于预训练语言模型的文本生成任务。典型地,采用自回归(AR)方法来以逐个令牌的方式生成文本。尽管AR生成有许多优点,但它通常存在推理效率低下的问题。因此,提出了非自回归(NAR)模型来同时生成所有目标令牌。然而,NAR模型通常生成较低质量的文本,由于在输出文本中没有标记依赖性。在本文中,我们提出了ELMER:一个高效和有效的PLM NAR文本生成过程中显式建模的令牌依赖NAR生成。通过利用提前退出技术,ELMER根据其预测置信度在不同层启用令牌生成(更有信心的令牌将在较低层退出)。此外,我们提出了一种新的预训练目标,层排列语言建模,通过顺序排列每个令牌的出口层来预训练ELMER。在三个文本生成任务上的实验表明,ELMER显著优于NAR模型,并进一步缩小了与AR PLM的性能差距(\eg ELMER(29.92)与BART(30.61)ROUGE-L在XSUM中),同时实现了超过10倍的推理加速。

英文摘要:

We study the text generation task under the approach of pre-trained language models (PLMs). Typically, an auto-regressive (AR) method is adopted for generating texts in a token-by-token manner. Despite many advantages of AR generation, it usually suffers from inefficient inference. Therefore, non-autoregressive (NAR) models are proposed to generate all target tokens simultaneously. However, NAR models usually generate texts of lower quality due to the absence of token dependency in the output text. In this paper, we propose ELMER: an efficient and effective PLM for NAR text generation to explicitly model the token dependency during NAR generation. By leveraging the early exit technique, ELMER enables the token generations at different layers, according to their prediction confidence (a more confident token will exit at a lower layer). Besides, we propose a novel pre-training objective, Layer Permutation Language Modeling, to pre-train ELMER by permuting the exit layer for each token in sequences. Experiments on three text generation tasks show that ELMER significantly outperforms NAR models and further narrows the performance gap with AR PLMs (\eg ELMER (29.92) vs BART (30.61) ROUGE-L in XSUM) while achieving over 10 times inference speedup.

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

↑