Skip to main content
QUICK REVIEW

[Paper Review] BANG: Bridging Autoregressive and Non-autoregressive Generation with Large Scale Pretraining

Weizhen Qi, Yeyun Gong|arXiv (Cornell University)|Dec 31, 2020
Topic ModelingComputer Science29 references24 citations
TL;DR

BANG is a unified pretraining framework that bridges autoregressive (AR) and non-autoregressive (NAR) generation by training a single model to handle arbitrary combinations of masked and ground-truth previous tokens. It achieves state-of-the-art performance in NAR and semi-NAR generation across question generation, summarization, and dialogue tasks, with absolute gains of 14.01 and 5.24 on SQuAD 1.1 and XSum, respectively, while matching strong AR models in AR generation.

ABSTRACT

In this paper, we propose BANG, a new pretraining model to Bridge the gap between Autoregressive (AR) and Non-autoregressive (NAR) Generation. AR and NAR generation can be uniformly regarded as to what extent previous tokens can be attended, and BANG bridges AR and NAR generation by designing a novel model structure for large-scale pretraining. The pretrained BANG model can simultaneously support AR, NAR and semi-NAR generation to meet different requirements. Experiments on question generation (SQuAD 1.1), summarization (XSum) and dialogue generation (PersonaChat) show that BANG improves NAR and semi-NAR performance significantly as well as attaining comparable performance with strong AR pretrained models. Compared with the semi-NAR strong baselines, BANG achieves absolute improvements of 14.01 and 5.24 in the overall scores of SQuAD 1.1 and XSum, respectively. In addition, BANG achieves absolute improvements of 10.73, 6.39 and 5.90 in the overall scores of SQuAD, XSUM and PersonaChat respectively compared with the strong NAR baselines.

Motivation & Objective

  • To bridge the performance gap between autoregressive (AR) and non-autoregressive (NAR) generation in natural language generation.
  • To develop a unified pretraining framework that supports AR, NAR, and semi-NAR generation using a single model architecture.
  • To improve NAR generation performance on general natural language generation tasks through large-scale pretraining with mixed attention patterns.
  • To enable efficient, parallel training across diverse attention mechanisms (AR, NAR, semi-NAR) using a novel cross-stream visible n-stream self-attention mechanism.

Proposed method

  • BANG pretrains a decoder with a cross-stream visible n-stream self-attention mechanism that allows attending to arbitrary combinations of masked tokens ([MASK]) and ground-truth previous tokens during training.
  • During pretraining, each target token is predicted using a context composed of any number of previous ground-truth tokens and any number of [MASK] tokens, enabling unified modeling of AR, NAR, and semi-NAR patterns.
  • The model uses a single architecture for both pretraining and fine-tuning, allowing direct fine-tuning for AR, NAR, or semi-NAR generation without architectural changes.
  • The cross-stream visible n-stream attention enables efficient parallelization across multiple attention streams, each corresponding to a different combination of [MASK] and ground-truth token lengths.
  • Pretraining is performed on 16GB of English text (Wikipedia and BookCorpus), with objectives that interpolate between AR and NAR generation via dynamic masking of previous tokens.

Experimental results

Research questions

  • RQ1Can a single pretraining framework effectively unify AR and NAR generation by modeling diverse attention patterns?
  • RQ2Does pretraining with mixed AR and NAR objectives significantly improve NAR generation performance on general natural language generation tasks?
  • RQ3Can a unified model achieve competitive performance in AR generation while also enabling high-performing NAR and semi-NAR inference?
  • RQ4How does the cross-stream visible n-stream attention mechanism enable efficient training across diverse attention configurations?

Key findings

  • BANG achieves absolute improvements of 14.01 and 5.24 in overall scores on SQuAD 1.1 and XSum, respectively, over strong semi-NAR baselines.
  • BANG improves NAR performance by 10.73, 6.39, and 5.90 points in overall scores on SQuAD, XSum, and PersonaChat compared to strong NAR baselines.
  • On NAR finetuning, BANG outperforms both NAR and AR-pretrained models (e.g., MASS), demonstrating the superiority of its bridged pretraining strategy.
  • BANG achieves comparable performance to strong AR pretrained models (e.g., BART) in AR generation, showing no performance drop from unified pretraining.
  • The cross-stream visible n-stream attention mechanism enables efficient training across arbitrary combinations of [MASK] and ground-truth token lengths, supporting flexible generation patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.