LLM Attention Visualization

An interactive visualization of attention weights that link generated tokens to earlier tokens in an LLM.

What is LLM Attention Visualization?

TL;DR: An interactive visualization of attention weights that link generated tokens to earlier tokens in an LLM.

LLM Attention Visualization is a browser-based demo by Isham Faizal that shows which past tokens influence each generated token in a transformer language model. Hovering or tapping a generated token highlights earlier tokens by an approximate, aggregated attention score, which the author describes as highly simplified. The app uses Transformers.js with a small model of about 600 million parameters, and it is free to use.

Best for: Students and practitioners who want an intuitive view of how attention links tokens in a language model.

LLM Attention Visualization key features

  • Hover or tap generated tokens to highlight influential past tokens
  • Opacity reflects aggregated attention weight scaled by value vector magnitude
  • Pre-generated example prompts that load instantly
  • Browser-based live generation using an instrumented model
  • Source code available in a public GitHub repository

Use cases

  • Learning how the attention mechanism works in transformer models
  • Seeing how a model copies text verbatim from its input
  • Demonstrating LLM behavior in teaching or talks

👍 Pros

  • Free to use and runs in the browser
  • Source code is linked from the page

👎 Cons

  • The visualization is highly simplified and the author notes that 'affected' may not be fully accurate
  • Live generation requires downloading a model of hundreds of megabytes

LLM Attention Visualization FAQ

What is LLM Attention Visualization?
LLM Attention Visualization is a browser-based demo by Isham Faizal that shows which past tokens influence each generated token in a transformer language model. Hovering or tapping a generated token highlights earlier tokens by an approximate, aggregated attention score, which the author describes as highly simplified. The app uses Transformers.js with a small model of about 600 million parameters, and it is free to use.
Is LLM Attention Visualization free?
LLM Attention Visualization uses a Free pricing model (verified Nov 28, 2026).
Does LLM Attention Visualization have an API?
As of Nov 28, 2026, LLM Attention Visualization does not offer a public developer API.
Does LLM Attention Visualization support Chinese, and is it available in China?
LLM Attention Visualization does not support Chinese, and it has unverified availability in mainland China.
What are the best alternatives to LLM Attention Visualization?
Popular alternatives to LLM Attention Visualization include Frizzle, mellow, Khanmigo, Astra AI.

Reviews

No reviews yet. Be the first to share your experience.

Alternatives to LLM Attention Visualization