Encoder-decoder transformers (T5, BART)

Pretrained language models · neural · 2019 · text · speech

What it is

An encoder reads the source and a cross-attending decoder writes the target, for any text-to-text task.

When to use it

Translation, summarisation, speech-to-text (Whisper) and structured transformations.

Caveats

Two stacks make them heavier than a decoder-only model for pure generation, and they have largely been displaced by decoder-only models for general-purpose use. The original models also have short input limits.

Key ideas

  • An encoder reads the whole input bidirectionally; a decoder generates the output with cross-attention
  • T5 casts every task as text-to-text and pretrains by filling in masked spans
  • BART pretrains by reconstructing corrupted text
  • Strong for translation and summarization

Related architectures

Original paper

Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer (2019, arXiv)

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted