Answered from Q, K, V intuition - self attention with trainable weights | The attention family series - Lecture 6 · The attention family · 2026-09-18
Sreedath Panat says nobody knows the query, key and value weight matrices in advance. They begin as random matrices and their values evolve during large language model training, and he calls finding good transformation matrices one big part of the art of training an LLM: good projections make the resulting dot products meaningful. In the lecture's Colab notebook the matrices are simply drawn at random with PyTorch to show the mechanics.
Source: our own transcription of the episode. The full conversation is on The attention family (2026-09-18). Read the whole episode summary →