It doesn't. Not on its own.
A raw attention map from layer 8 shows you what layer 8 attended to. It says nothing about how that signal got mixed, diluted, or overwritten by every layer before and after it. Attention rollout fixes this — and I built a walkthrough to show why it matters.
Here's what makes it more than a "pretty heatmap" demo:
Instead of visualizing one layer's attention, I traced how information actually flows through the full transformer stack.
→ Every layer's attention matrix is extracted, per head, per token
→ Multi-head attention is averaged, then combined with the residual connection (identity + attention) — this is the step most tutorials skip, and it's the one that actually matters
→ The combined matrices are matrix-multiplied layer by layer, rolling attention forward from input to output
→ The result: a single map showing genuine token-to-token influence across the entire network, not just one layer's snapshot