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

Junyi Li, Tianyi Tang, Wayne Xin Zhao, Jian-Yun Nie, Ji-Rong Wen
10/24/2022
cs.CL

Official code: RUCAIBox/ELMER (26 stars, Python, last commit 2022-10-27).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/ELMEROfficial100%

This repository is the official implementation of our EMNLP 2022 paper ELMER: A Non-Autoregressive Pre-trained Language Model for Efficient and Effective Text Generation

264Python, ShellOct 13, 20224 years ago
non-autoregressive-translationpretrained-language-modeltext-generation

Similar Papers

Cite this paper

@article{li2022elmer,
  title  = {ELMER: A Non-Autoregressive Pre-trained Language Model for Efficient and Effective Text Generation},
  author = {Junyi Li and Tianyi Tang and Wayne Xin Zhao and Jian-Yun Nie and Ji-Rong Wen},
  year   = {2022},
  eprint = {2210.13304},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.13304}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.13304.svg)](https://codeofpaper.com/paper/2210.13304)

Discussion