Why are decoder-only architectures dominant even for tasks that do not strictly require generation?
Last updated
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.