Learned Projections Define Matching and Content
The query and key projections determine learned matching, while the value projection determines the content carried along that route. Controlled ablations show these roles without assigning unsupported human meanings to individual coordinates.
The input representation does not arrive with separate fields named “what I need,” “how I should be found,” and “what I should send.” The matrices , , and learn those three projections from data.
For model width ,
Queries and keys require the same width because their dot product contracts over that axis. Values may use another width because they are combined only after the attention weights have been calculated.
Change One Projection at a Time
Use the two input rows
and let . The first query has dot products
It therefore favors the first value. We can now perform three controlled changes.
Change only
Swap the query coordinates:
Now , so its two dot products become 0 and 1. The match reverses, while the keys and values themselves do not change.
Change only
Restoring and applying the same coordinate swap to also reverses which key matches the first query. This change alters how every source position presents itself for matching.
Change only
Keep and let
The scores and attention weights remain exactly the same, but the values become and . The routed content changes even though the routing pattern does not.
| Changed parameter | Directly changes | Does not directly change |
|---|---|---|
| each position's requests | source values | |
| how source positions match | source values | |
| content carried by source positions | attention weights |
These descriptions refer to one forward pass while the other parameters are held fixed. During training, all projections may adapt together, so observed effects need not remain isolated.
Matching Coordinates Do Not Have Fixed Names
It is tempting to label a query-key coordinate “subject,” “plural,” or “earlier name.” Such a label is a hypothesis about a trained model, not part of the definition. The basis can change while dot products remain the same.
For example, let be an orthogonal matrix, so . Replacing
does not change the score matrix:
The individual coordinates rotated, but every query-key score stayed fixed. This simple symmetry shows why a coordinate should not receive a semantic name without additional evidence.
Ablate one projection
Change one matrix at a time. Compare the score row with the values and weighted reading.
Ready to run.
Q1. Change content without changing routing
Which single projection can be changed while leaving all query-key scores and attention weights fixed in the current forward pass?
Select one choice, then check.
Hint
Solution
Treat Labels as Testable Hypotheses
A projection determines a mathematical role. A trained feature may also have a useful human interpretation, but that claim needs evidence from examples, ablations, or interventions. The equations alone establish matching and content flow—not a semantic dictionary for coordinates.