Non-Autoregressive Text Generation with Pre-trained Language Models

Yixuan Su, Deng Cai, Yan Wang, David Vandyke, Simon Baker +2 more
2/16/2021
cs.CL

Official code: yxuansu/NAG-BERT (60 stars, Python, Apache-2.0, last commit 2022-10-10).

Abstract

Non-autoregressive generation (NAG) has recently attracted great attention due to its fast inference speed. However, the generation quality of existing NAG models still lags behind their autoregressive counterparts.

Show full abstract

In this work, we show that BERT can be employed as the backbone of a NAG model to greatly improve performance. Additionally, we devise mechanisms to alleviate the two common problems of vanilla NAG models: the inflexibility of prefixed output length and the conditional independence of individual token predictions. Lastly, to further increase the speed advantage of the proposed model, we propose a new decoding strategy, ratio-first, for applications where the output lengths can be approximately estimated beforehand. For a comprehensive evaluation, we test the proposed model on three text generation tasks, including text summarization, sentence compression and machine translation. Experimental results show that our model significantly outperforms existing non-autoregressive baselines and achieves competitive performance with many strong autoregressive models. In addition, we also conduct extensive analysis experiments to reveal the effect of each proposed component.

View on arXivView PDF

Code Implementations(1)

yxuansu/NAG-BERTOfficial100%
Apache-2.0

[EACL'21] Non-Autoregressive with Pretrained Language Model

604Python, ShellJan 13, 20214 years agoApache-2.0
bertgeneration

Similar Papers

Cite this paper

@article{su2021nonautoregressive,
  title  = {Non-Autoregressive Text Generation with Pre-trained Language Models},
  author = {Yixuan Su and Deng Cai and Yan Wang and David Vandyke and Simon Baker and Piji Li and Nigel Collier},
  year   = {2021},
  eprint = {2102.08220},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.08220}
}

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/2102.08220.svg)](https://codeofpaper.com/paper/2102.08220)

Discussion