Token i's vector, xi, is multiplied by three learned matrices, WQ, WK and WV:
qi=xiWQ,ki=xiWK,vi=xiWVEach of the three has one job:
- The query qi is what position i is looking for.
- The key kj is what position j can be found by.
- The value vj is what position j hands over once it's found.