Write the attention score formula before softmax: e_ij = a(s_i, h_j)

How do we know what's important in a sentence?

Image: Public domain, via Wikimedia Commons

Write the attention score formula before softmax: e_ij = a(s_i, h_j)

How do we know what's important in a sentence?

Imagine you're reading an email full of information, but you want to quickly find the key points without reading everything word for word.

Think of each word in the email as a person at a party. Some people are more important to the conversation than others. We want to figure out who those important people are so we can focus on them.

Example

In the email, the word "urgent" next to "meeting" highlights the importance of the meeting over other less significant details.

Remember this

The attention score formula helps us identify which words (or people at the party) are most important to focus on.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath