AI & ML Atlas
Deep LearningarchitectureAnimated walkthrough
T5
A transformer that treats every language task as text in, text out.
The idea
T5 uses the full encoder-decoder transformer and casts tasks such as translation, summarisation and classification as text-to-text, with a task prefix ("translate English to German: …"). It was pre-trained by masking spans of text and generating the missing spans.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Prefix the input with the task description.
- 2Encode the input text.
- 3The decoder generates the answer token by token, attending to the encoder.
- 4Fine-tune with the same loss for every task.
1/4
Step by step
- 1Prefix the input with the task description.
- 2Encode the input text.
- 3The decoder generates the answer token by token, attending to the encoder.
- 4Fine-tune with the same loss for every task.
Where it is used
Summarisation, translation, question answering with one model.
Watch out for
Larger and costlier than an encoder-only model for pure classification.