Textbook equations This exhibit uses a single attention head with scaled dot-product scores.
sᵢ = (q · kᵢ) / √d
wᵢ = exp(sᵢ / τ) / Σⱼ exp(sⱼ / τ)
o = Σᵢ wᵢ vᵢ
Here q is the query vector, kᵢ is a stored key, vᵢ is its associated value, d is the key dimension, and τ is a positive temperature. The denominator √d is the standard scaling used in dot-product attention. The implementation subtracts the largest score before exponentiation; this changes no weights but improves numerical stability.
What the object represents
Each tile is one key–value memory pair. The query arrow is compared with every key vector. Bright links indicate larger weights, not physical forces or Euclidean nearest-neighbour distances. The value-space marker is the weighted average of the stored value vectors.
What is simplified
The exhibit uses eight hand-authored, two-dimensional key–value pairs. Real transformer attention operates on learned, usually high-dimensional vectors and often uses many heads, batches, masks and token positions. This shelf has no training loop, language model, tokenisation or learned parameters.
What is illustrative
All tile coordinates, values, query settings and memory labels are illustrative and dimensionless. Temperature is a mathematical control, not a physical temperature. A blocked slot represents a mask: it is excluded from the softmax. If every slot is blocked, no probability distribution or output value exists, and the exhibit deliberately shows an empty result rather than inventing one.
Interpretation
Attention is a soft lookup, not a hard database fetch. Several memories can contribute at once. The resulting vector can lie between stored values and need not equal any one stored value. This is weighted interpolation in value space; it is not evidence of understanding or consciousness.