Notes

BART

Hand a model a page of text that has been damaged on purpose — sentences shuffled, spans deleted, words masked — and ask it to write out the original. Train on enough of that and you get something good at both reading and writing. BART is built exactly this way.

The architecture and the objective
BART is a sequence-to-sequence transformer: a bidirectional encoder in the style of BERT over the corrupted input, and an autoregressive decoder that reconstructs the clean text left to right. Because the corruption can be arbitrary, pre-training is not limited to single-token masking — the recipe uses token masking, token deletion, text infilling of variable-length spans, sentence permutation and document rotation, with infilling plus permutation working best. This is denoising autoencoder pretraining applied to a full encoder-decoder stack.

What it is good for
The objective is a near-perfect match for tasks whose output is itself text:

  • Summarisation, where the fine-tuned bart-large-cnn checkpoint is still a common default.
  • Translation and paraphrase, handled natively by the decoder.
  • Classification and extraction, by feeding the input to both stacks and reading the final decoder state.

Why it matters
An encoder-only model cannot generate, and a decoder-only model reads each token with only the left context in view. BART's shape gives it both, which is why it became the reference encoder-decoder alongside T5, and why its multilingual sibling mBART extends the same recipe across 25 languages. When a task maps one text to another and you want something fine-tunable on a single GPU, this is the family to reach for.

BART is a sequence-to-sequence transformer with a bidirectional encoder and an autoregressive decoder, pre-trained as a denoising autoencoder: arbitrary corruptions — masked tokens, deleted spans, shuffled sentences — are applied to text the model must reconstruct. That shape suits any text-to-text task, and it is a standard choice for abstractive summarization and translation. It matters as the bridge between encoder-only understanding and decoder-only generation, in one fine-tunable model.

One way to prove you have understood a piece of writing is to repair a damaged copy of it. BART was trained like that: it was shown passages with words removed and sentences jumbled, and asked to write out what the original must have said.

Doing that millions of times teaches both halves of the job — reading carefully, and producing fluent language of its own. That combination is why it is widely used to shorten long documents, rewrite sentences and translate between languages. When an app turns a news article into a three-line digest you can skim, a model of this kind is very often doing the work behind the scenes.