Explaining Information Flow in Transformers

Sauers_ · x · 2026-07-10

This post shares an explanation of internal information flow in Transformers: residual streams flow vertically across layers and positions, while K/V streams flow horizontally across tokens within the same layer. The original text breaks down the computation steps, showing how each position generates K/V from the residual stream for subsequent attention calculations.

Original post →

More from Research

Research channel →