Post
Also, worth noting: this is not super representative of what the LLM actually thinks of each token. It's a global average from every attention layer and every head, which "blurs" the detailed information. It also doesn't consider the projections that happen after attention. It's just a bit of fun.
0 reposts24 likes
poloclub.github.io/transformer-... is a superb visual of the end-to-end GPT-2 architecture (modern architectures aren't _that_ different to this, so it's a good base).
I noticed those two streaks through the heat map as well. My guess was that because it’s the global average of all layers and heads, maybe the only consistent pattern the model is paying attention to is the structure of the text. This is also v small model, mind, I doubt it extrapolates to big ones.