Why did decoder-only architectures take over tasks T5-style encoder-decoders used to win?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
By 2020 T5-style encoder-decoders led on most seq2seq benchmarks. By 2024 every frontier general purpose LLM was decoder-only. Explain what changed.
Scale plus instruction tuning let one decoder-only model do every task with a prefix; the architectural split between encoder and decoder became unnecessary overhead.
In 2020, the best way to translate French was a specialized model with two halves: one half read French, the other half wrote English. Each half had a different job. Then GPT-3 got large and people noticed something surprising: if you just typed 'translate this French to English:' and pasted the French, a single half model could do it almost as well. As models got bigger and learned to follow instructions, the specialized two half design lost its advantage. A general model with a prompt prefix could do translation, summarization, question answering, and code generation, all from the same trained model. The two half design only survives in niches where the input is a totally different kind of data (like audio) or where the same input drives many outputs.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: name the three causes, walk the GPT-3 vs T5 comparison, explain instruction tuning's role, cover the serving simplicity story, and finish with the Whisper / NLLB niches.
| Property | Encoder-decoder (T5-style) | Decoder-only (GPT-style) |
|---|---|---|
| Best for | Fixed input, variable output, many outputs per input | General purpose, instruction following, chat |
| Training objective | Span corruption or denoising on parallel (input, output) pairs | Next-token prediction on mixed data |
| Serving cache | Encoder KV (once) + decoder KV (per token) + cross-attn | Single unified KV cache |
| Scaling | Slower scaling path; instruction tuning is harder | Scales cleanly with one objective |
| 2026 examples | Whisper, NLLB, some TTS systems | GPT-5.5, Claude, Llama 4, Gemini, Mistral, Qwen |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Saying 'decoder-only is simpler so it won'. Simplicity matters but scale + instruction tuning is the real cause. T5 didn't lose because it was complex; it lost because GPT-3-scale models with prefixes matched it on the actual task.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.