Uploaded October 2026 | Updated December 2026, 2 hours ago
How ChatGPT Pays Attention: Attention Explained Simply — AI for Beginners, Lesson 23.
Free, no-code lesson for students (grades 6–12), teachers, parents and anyone curious about AI. School-level maths only.
"Riya hit the ball with her bat." "A bat flew out of the cave." Same word, same numbers inside the model, but two very different meanings. How does a language model tell them apart?
In this lesson, we meet attention: the idea that lets each word look at the other words that help it. With a hands-on counter activity, we share out a word's attention across its sentence, then mix made-up lists of numbers to see "bat" move towards sport in one sentence and towards animals in the other.
In this lesson:
- Why the same word needs its context.
- Sharing ten attention counters across a sentence (a made-up illustration).
- Mixing lists of numbers by their shares: a weighted combination.
- Every word looks at every other word, near or far, all at once.
- Learned weights stay the same; attention shares are worked out fresh for each sentence.
Try both quiz questions before the answers appear: where should "she" put its counters, and where do attention shares come from?
Chapter 7, session 1 / Lesson 23. No coding required. Lessons 18, 20 and 22 give useful background.
The counters, number lists and attention patterns are made up for teaching; real models calculate their own. The cricket and bat clips are AI-generated for illustration.
▶ Previous: How ChatGPT Turns Words Into Numbers: Tokens & Embeddings youtu.be/TTl5V-z-qhg
▶ Full course playlist: youtube.com/playlist?list=PLZRvbQ5k8TxM
▶ Next: How Does a Transformer Work? Explained Simply youtu.be/8eFbIqkQ2zA
Subscribe to The Practical School for short lessons that make ideas practical.
#AIForBeginners #Attention #ThePracticalSchool
How ChatGPT Pays Attention: Attention Explained Simply — AI for Beginners, Lesson 23.
Free, no-code lesson for students (grades 6–12), teachers, parents and anyone curious about AI. School-level maths only.
"Riya hit the ball with her bat." "A bat flew out of the cave." Same word, same numbers inside the model, but two very different meanings. How does a language model tell them apart?
In this lesson, we meet attention: the idea that lets each word look at the other words that help it. With a hands-on counter activity, we share out a word's attention across its sentence, then mix made-up lists of numbers to see "bat" move towards sport in one sentence and towards animals in the other.
In this lesson:
- Why the same word needs its context.
- Sharing ten attention counters across a sentence (a made-up illustration).
- Mixing lists of numbers by their shares: a weighted combination.
- Every word looks at every other word, near or far, all at once.
- Learned weights stay the same; attention shares are worked out fresh for each sentence.
Try both quiz questions before the answers appear: where should "she" put its counters, and where do attention shares come from?
Chapter 7, session 1 / Lesson 23. No coding required. Lessons 18, 20 and 22 give useful background.
The counters, number lists and attention patterns are made up for teaching; real models calculate their own. The cricket and bat clips are AI-generated for illustration.
▶ Previous: How ChatGPT Turns Words Into Numbers: Tokens & Embeddings youtu.be/TTl5V-z-qhg
▶ Full course playlist: youtube.com/playlist?list=PLZRvbQ5k8TxM
▶ Next: How Does a Transformer Work? Explained Simply youtu.be/8eFbIqkQ2zA
Subscribe to The Practical School for short lessons that make ideas practical.
#AIForBeginners #Attention #ThePracticalSchool










