Story of Attention
Attention in a transformer is usually explained with math: queries, keys, values, a dot product, and a softmax, as in the paper that introduced the transformer, Attention Is All You Need. The math is short, but I found that it didn’t stay with me. I could follow the equations, and a week later I couldn’t say what they were for. So I made up this story for myself. It lets me understand the intuition behind attention, without any math. Here is the story.
Some Random Thoughts..