Better ML · November 27, 2026
What is left of the 2017 Transformer
A frontier language model in 2026 is still called a Transformer. Set it beside the architecture of the 2017 paper, though, and little is left but the idea of self-attention and the residual backbone. Nearly every other part has been replaced.
The table lists the replacements in the order that a Douyin video by PaperMark (in Chinese) walks through them, grouped by the six engineering bottlenecks that forced them.1
| Before | After | How it works |
|---|---|---|
| Backbone and depth 2017–2020 | ||
| Encoder–decoder, built for translation | Decoder-only: GPT, 2018; GPT-3, 2020 | Every task becomes continuing a prefix, and every position is a next-token target. BERT kept only the encoder; T5 kept both. |
| Post-LN: LayerNorm after the residual add | Pre-LN, analyzed by Xiong et al., 2020 | The norm moves inside the residual branch, leaving an identity path from the top layer to the bottom. Deep stacks then train without a learning-rate warmup. |
| Inside the layer 2019–20232 | ||
| LayerNorm | RMSNorm, 2019 | No mean subtraction: activations are scaled by their root mean square alone. |
| ReLU feed-forward, hidden width 4d | SwiGLU, 2020 | Two projections, one passed through Swish as a gate, multiplied elementwise. The hidden width drops to about 8d/3 to keep the parameter count. |
| Sinusoidal positions added to the embeddings | RoPE, 2021; YaRN, 2023 | Each pair of dimensions in Q and K is rotated by an angle proportional to position, so their dot product depends only on the offset. NTK-aware scaling and YaRN rescale the angles to extend the context. |
| Unnormalized Q and K | QK-Norm, 2020 | Q and K are normalized before their dot product. ViT-22B used it to stop attention logits from growing until training diverged. |
| Memory wall 2022–2024 | ||
| The full N×N score matrix written to and read from HBM | FlashAttention, 2022; FlashAttention-3, 2024 | Q, K and V are tiled into on-chip SRAM and the softmax is computed online, so the score matrix never leaves the chip and the result is exact. FlashAttention-3 adds Hopper's asynchronous copies and FP8. |
| Multi-head attention: one K and V per head in the cache | MQA, 2019; GQA, 2023; MLA in DeepSeek-V2, 2024 | MQA shares one K and V across all heads, and GQA one per group of heads, as in Llama 2 70B and Llama 3. MLA caches one low-rank latent per token from which K and V are recovered; the up-projections are absorbed into the query and output weights, and a small separate part carries RoPE. |
| Sparse experts 2020–2025 | ||
| A dense feed-forward layer: every parameter runs for every token | Mixture of experts: GShard, 2020; Switch Transformer, 2021; Mixtral, 2023; Llama 4, 2025 | The feed-forward layer is split into many experts and a router sends each token to a few, so total parameters grow while compute per token stays fixed. |
| A few large experts | DeepSeekMoE, 2024 | Many small experts, plus shared experts that every token passes through. The shared experts hold common knowledge, so the routed ones need not each relearn it. |
| An auxiliary loss to balance expert load | Auxiliary-loss-free balancing, 2024 | A bias on each expert's routing score is raised or lowered according to its recent load, with no loss term pulling against quality. |
| Next-token prediction only | Multi-token prediction in DeepSeek-V3, 2024 | Extra modules predict tokens further ahead, which densifies the training signal. At inference they can draft tokens for speculative decoding. |
| Serving 2022–2026 | ||
| Static batching: a batch ends with its longest reply | Continuous batching, Orca, 2022 | Scheduling happens every iteration: finished requests leave and new ones join between steps. |
| A contiguous KV region reserved for each request | PagedAttention in vLLM, 2023 | The cache is split into fixed-size blocks allocated on demand, like pages of virtual memory. |
| Shared prefixes recomputed for every request | RadixAttention in SGLang, 2023 | Cached prefixes live in a radix tree, so multi-turn chats and shared system prompts skip repeated prefill. |
| Prefill and decode on the same GPUs | Disaggregation, DistServe, 2024 | Prefill, bound by compute, and decode, bound by memory bandwidth, run on separate GPUs, so a long prompt no longer stalls replies in progress. |
| One token per forward pass | Speculative decoding, 2022 | A small draft model, or the model's own MTP modules, proposes several tokens and the large model checks them in one pass. The output distribution is unchanged. |
| INT8 and INT4 quantization | Native FP8 on Hopper, FP4 on Blackwell | Low-precision floating-point formats that the hardware computes in directly. |
| Foundations 2025–2026 | ||
| Full O(N²) attention in every layer | Hybrid linear attention: MiniMax-01; Qwen3-Next with Gated DeltaNet; Kimi Linear; all 2025 | Most layers compress the history into a fixed-size state and run in O(N); the full-attention layers between them keep exact recall. Qwen3-Next uses three linear layers per full one, and Kimi Linear's KDA gives each feature channel its own decay. |
| Sparse attention: DSA in DeepSeek-V3.2, 2025 | A lightweight indexer picks the most relevant earlier tokens for each query, and attention runs over those alone. | |
| Interleaved layers: iRoPE in Llama 4, 2025 | Local-window layers with RoPE alternate with global layers that use no positional encoding. | |
| Attention output passed straight to the output projection | Gated attention, 2025 | A query-dependent sigmoid gate on each head's output adds non-linearity and sparsity, and removes attention sinks and massive activations. Qwen3-Next uses it; it won a NeurIPS 2025 best paper award. |
| A single residual stream | mHC, 2025 | The residual widens into several streams mixed by matrices constrained to be doubly stochastic, which restores the identity mapping of a plain residual and lets wide streams train at scale. |
| Facts and set phrases stored only in the weights | Engram, 2026 | A hashed n-gram memory read in O(1) takes over static patterns, a sparsity axis beside MoE. Its addresses depend only on the input tokens, so the table can be prefetched from host memory. |
The video ends on why the name stuck. Two things have held since 2017: the architecture maps well onto parallel hardware, and attention gives one framework for routing information between the positions of a sequence. In its reading, every change in the table pushed the engineering frontier out a little among four constraints: expressiveness, memory bandwidth, computational complexity and training stability.
1 The grouping and most of the details follow the video. The links go to the paper or release that introduced each change.
2 LLaMA (2023) used RMSNorm, SwiGLU and RoPE together, and the combination became the standard layer.