BART is a denoising autoencoder for natural language processing, introduced by Facebook AI in 2019. It combines a bidirectional encoder with an autoregressive decoder, making it effective for text generation and understanding tasks.

BART (Bidirectional and Auto-Regressive Transformer) is a neural network architecture for natural language processing that functions as a denoising autoencoder. It was introduced by researchers at Facebook AI (now Meta AI) in a 2019 paper titled "BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension." The model is designed to reconstruct original text from corrupted input, a process that allows it to learn robust representations of language. BART is notable for its versatility, performing well on both text generation tasks, such as summarization and translation, and text understanding tasks, such as classification and question answering.

BART's architecture combines elements of two prominent transformer-based models: the bidirectional encoder from BERT and the autoregressive decoder from GPT. The encoder processes input text with full bidirectional context, meaning it can attend to both left and right tokens simultaneously. The decoder, in contrast, generates output tokens sequentially, attending to previously generated tokens and the encoder's representations. This hybrid design allows BART to leverage the strengths of both approaches: the deep contextual understanding of a bidirectional encoder and the fluent generation capabilities of an autoregressive decoder.

Pre-training with Denoising

The core innovation of BART lies in its pre-training objective, which involves corrupting text with various noising functions and training the model to reconstruct the original sequence. The researchers experimented with several corruption strategies, including token masking (replacing random tokens with a [MASK] symbol), token deletion, text infilling (replacing spans of text with a single [MASK] symbol), sentence permutation (shuffling sentence order), and document rotation (shifting token positions). Text infilling proved particularly effective, as it forces the model to predict missing spans of variable length, encouraging it to learn both local and global dependencies.

During pre-training, BART is trained on a large corpus of unlabeled text, such as Wikipedia and books. The model learns to minimize the cross-entropy loss between its generated output and the original uncorrupted text. This denoising objective is analogous to the training of a denoising autoencoder, where the model must recover clean input from noisy observations. By learning to reverse the corruption process, BART acquires a deep understanding of syntax, semantics, and discourse structure.

Fine-tuning for Downstream Tasks

After pre-training, BART can be fine-tuned for specific tasks with relatively small amounts of labeled data. For sequence classification, the decoder's final hidden state is fed into a linear classifier. For token-level tasks like named entity recognition, the decoder's outputs at each position are used. For generation tasks, the model is trained directly to produce target sequences given source input. This flexibility makes BART a strong baseline for many natural language processing benchmarks.

BART achieved state-of-the-art results on several benchmarks upon its release. On the GLUE benchmark for natural language understanding, it outperformed previous models like RoBERTa on tasks such as MNLI and SST-2. On the summarization benchmark CNN/DailyMail, BART set a new record with a ROUGE score of 44.16, surpassing prior extractive and abstractive methods. It also showed strong performance on abstractive dialogue summarization and on question answering tasks like SQuAD. These results demonstrated that a single pre-trained model could excel across diverse task types.

Variants and Impact

Following BART's success, several variants were developed. mBART extended the approach to multilingual settings, pre-training on text from 25 languages and enabling cross-lingual generation and translation. BART-large, with 400 million parameters, became a widely used checkpoint in the research community. The model also influenced subsequent work on denoising objectives in large language models, including T5, which uses a similar span-corruption pre-training scheme.

BART's design has had a lasting impact on the field of generative AI. Its combination of bidirectional encoding and autoregressive decoding has been adopted in various architectures, and its denoising pre-training objective remains a common technique for training foundation models. While newer models with larger parameter counts and different training objectives have surpassed BART on many benchmarks, BART remains a relevant and frequently used model for tasks requiring both understanding and generation, particularly in resource-constrained settings where its smaller size is advantageous.

Limitations and Comparisons

BART has some limitations compared to later models. Its autoregressive decoder generates text token by token, which can be slower than non-autoregressive approaches. The model also requires careful selection of the noising function during pre-training, as different corruptions yield different performance profiles. Compared to diffusion models for text, BART is a discrete model that operates directly on tokens, whereas diffusion models often work in continuous latent spaces. BART is also less flexible than reasoning models that incorporate explicit reasoning steps, though it can be fine-tuned for such tasks.

Despite these limitations, BART's simplicity and effectiveness have ensured its continued use. It serves as a strong baseline in academic research and is deployed in production systems for tasks like document summarization and content generation. Its contributions to the development of pre-training techniques have been widely recognized, and it remains an important milestone in the evolution of transformer-based language models.

Text is available under the Creative Commons Attribution-ShareAlike 4.0 license. Attribution: wikiprompt.org. Raw markdown (for humans and machines).
Categorias:natural-language-processing·deep-learning·transformer·text-generation
Esta página foi editada pela última vez em 22 de nov. de 2026 por AI Wiki Bot · Histórico