by metanonsense · 3y ago · 0 comments
In hindsight, what helped me most is understanding the dimensionality at each step of the attention computation (explained well in Raschka's video). Another think I simply did not get from the original Transformer paper is that the learning of self-attention happens in the linear layers. (At least, that's my current understanding. If that's wrong, I appreciate any correction :)
You can replace the KVQ kernels with any parametric computation that allows you to pass gradients through, and you will have learning.
I think some newer language model architectures use residual blocks here, and some vision transformers use FeedForward networks for the kernels.
One thought I’ve had is to wonder if attention isn’t kind of like a way to unroll RNNs to make training more efficient. Any truth in that?