Self-Attention in Transformers: Queries, Keys, and Values
Please read my earlier posts on RNNs, the transformer revolution, and the transformer architecture before diving into this post. This post zooms in on the mechanism that makes transformers so powerful: self-attention. It lets every token in a sequence look at every other token and decide how much information to…