Learn AI Math

Attention Scores

What is Attention Scores?

In one sentence: Attention scores are numbers that show how much each word should focus on every other word.

They are made by comparing queries with keys, then passing the results through softmax so they add up to 100% for each word. High scores mean strong focus. Researchers sometimes draw them as heat maps to see what a model is paying attention to.

What does Attention Scores look like?

For "it" in "The cat slept because it was tired," the score for "cat" might be 0.7 and for "slept" just 0.05.

Why does Attention Scores matter?

Attention scores reveal how a model connects information.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.