The Celestial Mechanics of Attention Mechanisms
summary
Explains attention as words represented by high‑dimensional embeddings (often 512–1,024 dims) that behave like planets: gravity pulls similar tokens together, with similarity measured by dot product or cosine angle and scaled by softmax so weights sum to one. Shows keys and queries as separate linear transforms to create asymmetric pulls (Taylor Swift example: listener at (1,0), artist at (1,1) gives 1×1 vs 1×0), and frames multi‑head attention as multiple simultaneous projections. keys vs queries and softmax normalizes weights
AI-written summary · about
