What Do Queries, Keys, and Values Do in Attention?
Start Timer
0:00:00
Suppose a lost-and-found assistant reads this note: “Maya turned in a blue mug and a red bowl.” Someone asks, “What color was the mug?” The assistant starts its reply with “The mug was …”
How could an attention head use a query, keys, and values to bring the mug’s color into the reply when the most recent color in the note is red?
.
.
.
.
.
.
.
.
.
Comments