Show HN: LLM Attention Visualization
ifz
150 points
23 comments
September 08, 2026
Related Discussions
Found 5 related stories in 65.1ms across 5,917 title embeddings via pgvector HNSW
- Show HN: Academa – Long-form STEM lecture videos generated by LLMs sinaatalay · 29 pts · August 30, 2026 · 57% similar
- Show HN: Interactive, animated architecture of any HuggingFace models lizhaoliu · 63 pts · August 18, 2026 · 56% similar
- Show HN: A tiny LLM running at 21,000 tok/s on a $250 FPGA (Live Demo) mikeayles · 12 pts · August 10, 2026 · 55% similar
- LLM Cliché Highlighter rzk · 21 pts · August 28, 2026 · 54% similar
- Show HN: Leaves – A text-UI disk usage treemap visualizer patonw · 70 pts · July 16, 2026 · 54% similar
Discussion Highlights (11 comments)
sva_
I highly question this simplistic idea of high vector magnitude = high influence.
itsnasme
I like the visualisation. Pretty cool
wopak
neat, combining info from two phrases is hard to see without such a tool. are you worried later-layer attention gets drowned out by earlier layers just because there are more of them contributing to the sum?
stared
I am curious what's the actual formula. I mean, there so many headers and layers, it is tricky to make a choice that will resonate with our intuition . Is it some weighted average? Or maybe ablation test?
fuddle
This is great, I've read multiple books and watched videos about the attention mechanism. Now that I understand it, this is the clearest example I've seen on how attention works.
ex-aws-dude
I don't know much about LLMs but does that mean you have N^2 computation with the context size since every token needs to track how it relates to every other token?
MCP123
This is great, thank you. I have to teach this stuff on Friday so perfect timing. It's hard to explain the attention mechanism in a way that becomes intuitive because the weighting scheme does not help much with the intuition. Having a visualization like this helps a lot. Don't move that page please since I'll link to it!
mncharity
UX report. I wished to examine attention state step by step, but I found the animation moved along too fast for that. So I tried pausing... On Chromium/linux, pressing pause doesn't pause, instead resetting the animation to it's pre-play state - the current attention highlighting disappears. Pressing play again, restarts at the beginning. Having a commonplace "pause pauses, and play resumes" UI, could allow more time to look over state. A youtube-like slow playback 0.25? option might similarly help. Or perhaps even better, buttons for single stepping. Tnx for your work.
scottcodie
You can also mine attention from image models, it's a lot of fun and very interesting.
lhk931122
Is the attention explanation of why the model tells like this? I've seen that there are many discussions about this. (Image attention visualizations were not that good I think)
asd000hh
How it works?