How information flows through transformers: the residual stream and the K/V stream
repligate · x · 2026-12-06
repligate publishes a long explainer arguing that existing "transformers explained" pages fail, and offering a cleaner mental model: transformers have two distinct information highways — the residual stream, flowing vertically through layers at each position, and the K/V stream, flowing horizontally across positions at each layer. The post walks through how K/V values are computed and combined per layer per position, with diagrams of causal orderings (720 total orders over six nodes, 76 starting from node 1) and the concept of a "foliation" — slices of events where order matters between slices but not within. Widely shared as a genuinely clear explanation.
More from Research
- AI researcher: progress comes from finding which dimensions matter, not faster search — RileyRalmuto · 2026-12-06
- What building a GPT-style chatbot actually involves: five stages and one crucial distinction — jaspindersingh83 · 2026-12-06
- ANNA + Selective G-Bispectra lifts 4B LLM OOD length generalization from 0% to 35-56% — mayfer · 2026-12-06
- NASA, IBM and NVIDIA to demo Sun foundation model at NeurIPS with +40% flare forecasting — CatAstro_Piyush · 2026-12-06
- Two NeurIPS papers, one oral: author to present on pretraining data and RL post-training — KevinKaichuang · 2026-12-06
- PhyProbe: a 1M-parameter scoring head beats VLMs at judging video physics — CSProfKGD · 2026-12-06