By Team Edtoolkits · AI learning
Inspect a hand-built attention heatmap and compare matching, normalization and the information a row can reveal.
Use the guide alongside the working tool.
Open Self-Attention: Who Looks at Whom →Explore the lesson
Watch one word send beams to the others.
Type your own sentence and tap a word.
Open the full map to see every word at once.
A comparison to try
Choose a short sentence and inspect one query row, then compare a different word's row. Try an ambiguous word in context and follow the displayed scores into normalized weights.
Read the result
Each row distributes its attention across the available tokens and sums to one. A darker cell indicates greater relative weight in that row; it is not a direct measure of the word's global importance or the sentence's truth.
A mistake to avoid
The small vocabulary and six-dimensional representations are hand-made, with neutral handling for unknown words. The map is an illustration of attention mechanics, not evidence that a real model reasons by these labelled dimensions or that its weights alone explain an answer.
Teaching model and privacy
The vectors are small and written by hand for about 150 common words, so the map is a teaching version, not a real model. Unknown words get neutral numbers. Nothing leaves your browser.
Ready to apply this workflow?
Try Self-Attention: Who Looks at Whom →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.