Abstract
BART (Bidirectional and Auto-Regressive Transformers) is a denoising autoencoder for pre-training sequence-to-sequence models. It is trained by corrupting text with an arbitrary noising function and learning to reconstruct the original text. By combining a bidirectional encoder (similar to BERT) with an autoregressive decoder (similar to GPT), BART provides a unified architecture that excels at both natural language understanding and generation tasks.
Introduction
The development of BART addresses a historical bifurcation in NLP pre-training. Masked Language Models (MLMs) like BERT are bidirectional, making them ideal for comprehension tasks but poor for generation. Conversely, Autoregressive models like GPT excel at generation but are limited by unidirectional context. BART bridges this gap using a standard sequence-to-sequence (Seq2Seq) Transformer architecture, creating a versatile model capable of state-of-the-art performance across diverse benchmarks.
Architecture and Methods
BART's architecture is a standard Seq2Seq Transformer. The encoder uses a bidirectional approach to capture full context, while the decoder generates text token-by-token from left to right.
The Denoising Strategy
The primary innovation of BART is its flexible denoising pre-training. Because it uses a Seq2Seq architecture, the input to the encoder does not need to match the length of the decoder's output. This allows for several creative "noising" techniques:
- Token Masking & Deletion: Replacing tokens with masks or removing them entirely.
- Text Infilling: Replacing a span of text with a single
[MASK]token. This forces the model to predict how many tokens are missing. - Sentence Permutation & Document Rotation: Shuffling sentences or rotating the document to help the model learn global structure.
The authors identified Text Infilling as the most effective technique, significantly boosting performance on downstream tasks.
Key Results and Insights
BART achieves remarkable results, particularly in generative tasks:
- Summarization: It set new state-of-the-art records, notably on the abstractive XSum dataset, where it improved performance by 3.5 ROUGE points.
- Versatility: BART matches the performance of RoBERTa on the GLUE benchmark, proving that generative capabilities do not come at the expense of language understanding.
- Machine Translation: By "stacking" a new encoder on top of the pre-trained BART model, it can be fine-tuned for translation tasks, acting as a pre-trained target-side expert.
Limitations and Future Work
Despite its success, BART can occasionally "hallucinate" information in generative tasks. Furthermore, the inclusion of both an encoder and a decoder makes it slightly more computationally expensive than encoder-only models. Future research may focus on more complex noising functions and task-specific corruption strategies.
Conclusion
BART represents a significant step toward a unified model for NLP. By generalizing previous pre-training schemes into a flexible denoising framework, it provides a powerful tool for both understanding and generating human language.
Summary updated