Build a Large Language Model (From Scratch) · Chapter 3 · Video 7 of 14 · 9:37
What are queries, keys and values, really?
In episode 6, plain attention on GPT-2's real rows gave "it" 68% to itself and under half a percent to the two nouns, and nothing in it could learn. Trained GPT-2's first layer, given the same rows, runs twelve attention patterns: one still keeps 97% on "it" itself, another keeps 1% and sends 54% to the two nouns. What do three learned matrices add, and why divide the scores by a square root?
Based on Build a Large Language Model (From Scratch) by Sebastian Raschka.