Why are decoder-only architectures dominant even for tasks that do not strictly require generation?

Last updated 22 November 2026

  • One architecture with one objective turns every task into "prompt in, text out". Next-token prediction gives a dense loss at every position (vs about 15% for MLM) and scales predictably on raw text.

  • At scale, causal LMs show in-context learning and instruction following, and the ecosystem (RLHF/DPO, serving, quantization, KV cache) all targets decoder-only models.

  • Caveat: for cheap high-volume classification or embeddings, a fine-tuned encoder is often still better.

  • https://learnixo.io/blog/ta-decoder-only
  • https://www.codewarnab.in/blog/decoder-only-models-why-they-rule-ai
  • https://magazine.sebastianraschka.com/p/understanding-encoder-and-decoder
All Transformers interview questions