Krina Vaghela
← Blog

Day 22: What is self-attention?

Picture for Day 22: What is self-attention?

What exactly is self-attention?

Here’s what I’ve understood so far.

1Every word depends on other words.

When we read a sentence, we don’t understand each word in isolation.
We naturally use the surrounding words to understand its meaning.

2Self-attention helps AI do the same thing.

For every word, the model looks at the other words in the sentence and decides:
Which words are the most important for understanding this one?

3Not every word gets the same attention.

For example: The puppy was playing with the ball because it was new.

The puppy? Or the ball?

We look at the surrounding words to understand that “it” most likely refers to the ball.

That’s exactly what self-attention helps the model do.

Learning. Reflecting. Improving.

Read this post on LinkedIn → (opens in a new tab)

↑ ↓ to move · Enter to open · Esc to close