Paper commentary
BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
BART pretrains a sequence-to-sequence model by reconstructing corrupted text
- Problem BERT predicts masked tokens independently, so it can't easily generate text. GPT reads only leftward context, which misses the bidirectional interactions that classification tasks such as SQuAD need.
- Method BART is a denoising autoencoder that corrupts text with an arbitrary noising function and trains a Transformer encoder-decoder to restore the original. Its bidirectional encoder reads the corrupted input while its left-to-right decoder writes the clean text.
- Results BART scores 45.14 R1 on XSum, compared to 38.81 for BERTSUMEXTABS, the best previous work on that dataset.
Why one pre-training family doesn't cover every task
Masked language models have been the most successful self-supervised approach so far. They learn by reconstructing text in which a random subset of words was hidden. Their weakness shows up in generation: BERT predicts each missing token independently, so it can't easily generate text.
GPT goes the other way and generates left to right, but each word sees only leftward context. That leaves out the bidirectional interactions that classification tasks such as SQuAD depend on. The authors therefore aim for one model that covers a wide range of end tasks.
A denoising encoder-decoder
The key idea is to corrupt text in any way and train one sequence-to-sequence model to restore the original. Because the decoder always learns to produce clean text, the training target matches what generation needs at test time. Pre-training minimizes the negative log likelihood of the original document.
The encoder is bidirectional and reads the corrupted input, while the decoder is left-to-right and autoregressive. Each decoder layer also cross-attends over the final encoder layer, as in a standard sequence-to-sequence Transformer. BART uses GeLU activations instead of ReLU, with 6 layers per side in the base model and 12 in the large one.
Against an equivalently sized BERT model, BART has roughly 10% more parameters. The main architectural difference from BERT is that BART drops BERT's extra feed-forward layer before word prediction.
Corruption schemes and what each teaches
Earlier denoising autoencoders are tailored to one noising scheme, whereas BART can take any document corruption. The authors test several transformations, and they can be composed. Token masking follows BERT and replaces random tokens with mask elements. Token deletion removes tokens instead, so the model must work out which positions are missing.
SpanBERT differs here, since it samples from a clamped geometric distribution and keeps one mask per token. Sentence permutation splits the document at full stops and shuffles the sentences. Document rotation starts the document at a uniformly chosen token, so the model learns where a document begins. Because span lengths and sentence order can change, the model must reason about overall length, which generalizes BERT's masking and next-sentence objectives.
Reusing BART for classification, generation and translation
The representations can be used in several ways, depending on the task type. For classification, the same input feeds the encoder and decoder, and the final decoder state goes to a new linear classifier. For token tasks such as SQuAD answer endpoints, the top decoder state at each word is classified. For generation, the encoder reads the input and the decoder writes the output autoregressively.
For translation, the authors replace BART's encoder embedding layer with a randomly initialized encoder. The new encoder maps foreign words into inputs that BART can denoise into English, and it can use a separate vocabulary. Training has two steps: first only the new encoder, BART's positional embeddings and one self-attention projection update.
Then all parameters train for a small number of iterations.
Which corruption works best, and where it doesn't
The objective ablation holds the code base and fine-tuning procedures fixed and varies only the pre-training objective. Base-size models with 6 encoder and 6 decoder layers and hidden size 768 are trained for 1M steps on books and Wikipedia.
Document rotation is the weakest objective: BART Base reaches 77.2 SQuAD F1, compared to 90.8 with text infilling. Sentence shuffling alone reaches 85.4 SQuAD F1, and rotation or permutation alone performs poorly. The successful methods use token deletion or masking, or self-attention masks.
Text infilling stayed strong across the tasks, and the authors say its BART models were the most consistently strong. On XSum, the text infilling variant reaches 6.61 perplexity, compared to 7.08 with token masking.
Task choice still matters: a plain Language Model gets the best ELI5 perplexity at 21.40 but the lowest SQuAD F1 at 76.7. So no single objective wins on every task, and text infilling is the steadiest choice in these runs.
Discriminative results at large scale
The authors pre-train a large model with 12 layers per side and hidden size 1024. It uses batch size 8000 and 500000 steps, following RoBERTa, and masks 30% of tokens while permuting all sentences. The pre-training data is 160Gb of news, books, stories and web text, the same data as Liu et al. (2019).
On SQuAD 1.1, BART scored 88.8/94.6 EM/F1, compared to 88.9/94.6 for RoBERTa. On MNLI m/mm, BART scored 89.9/90.1, compared to 90.2/90.2 for RoBERTa, so the gap is again small. On CoLA, RoBERTa scored 68.0 and BART 62.8, so the differences are not uniform across GLUE. So BART stays close to RoBERTa on these discriminative tasks, which fits the authors' claim that generation gains don't cost classification.
Summarization gains on CNN/DM and XSum
Summarization tests whether the generation gains hold on two datasets whose summaries differ in style. On CNN/DM, summaries follow the source closely, and even the first three source sentences are a strong baseline. BART reaches 44.16 R1 there, compared to 43.33 for UniLM.
XSum is highly abstractive, and extractive models perform poorly on it. BART reaches 45.14 R1, compared to 38.81 for BERTSUMEXTABS, the best previous work on this dataset. The authors describe the gain as roughly 6.0 points on all ROUGE metrics. The gain is therefore largest where summaries depart most from the source.
The authors read sample outputs from WikiNews articles published after the pre-training corpus was created. The outputs are fluent and mostly abstractive, and they fill in names and infer context such as PG&E operating in California. One summary says the work was published in Science, which the source doesn't support.
Dialogue and long-form question answering
ConvAI2 asks for responses conditioned on both the context and a textual persona. BART reaches 20.72 validation F1 and 11.85 validation PPL, compared to 19.09 and 17.51 for the best system. Lower perplexity is better, so the 11.85 is the stronger number.
ELI5 asks for long free-form answers, and the question only weakly specifies them. BART reaches 30.6 R1, and its ROUGE-L is 1.2 points above the best previous work. ELI5 is the one generation task where the plain language model in the ablation beat BART.
Translation with BART as the decoder
The comparison is against a Transformer-large baseline trained with back-translation data on WMT16 Romanian-English.
So the first step lands slightly below the baseline, and training all parameters lifts the score above it. The authors report a 1.1 BLEU gain over a strong back-translation baseline. The authors attribute the gain to monolingual English pre-training of the decoder.
Limitations
Preliminary translation runs without back-translation data were less effective and prone to overfitting. The authors leave additional regularization techniques for future work. The objective ablation runs only at base size, with 1M steps on books and Wikipedia. The ELI5 result, where a plain language model beats BART, marks a case where BART is weaker.
The qualitative summaries include one claim that the source doesn't support. The authors leave new corruption schemes for future work.
Paper info
- Authors
- Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, Luke Zettlemoyer
- Venue
- arXiv · Preprint
- First published
- 2019-10-29
- Added
- 2026-11-6
- Updated
- 2019-10-29
- Version
- v1
- arXiv
- 1910.13461
- Category
- cs.CL · cs.LG · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, Luke Zettlemoyer (2019). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. arXiv:1910.13461v1. https://arxiv.org/abs/1910.13461v1
BibTeX
@misc{lewis2019bart,
title = {{BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension}},
author = {Mike Lewis and Yinhan Liu and Naman Goyal and Marjan Ghazvininejad and Abdelrahman Mohamed and Omer Levy and Ves Stoyanov and Luke Zettlemoyer},
year = {2019},
eprint = {1910.13461},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1910.13461v1}
}