I'll make a note to read up on kernels some more. Do you have any other reading recommendations for doing that?
I'll make a note to read up on kernels some more. Do you have any other reading recommendations for doing that?
Justin Johnson's lecture on Attention [1] mechanisms really helped me understand the concept of attention in transformers. In the lecture he goes through the history and and iterations of attention mechanisms, from CNNs and RNNs to Transformers, while keeping the notation coherent and you get to see how and when in the literature the QKV matrices appear. It's an hour long but it's IMO a must watch for anyone interested in the topic.
They derive Q, K, V as a continuous analog of a hopfield network
The neat chain of "this is how the math of it works" is constructed after the fact once you dialed in something and proven that it works. If ever.