The attention mechanism is like gravity? @SerranoAcademy
The attention mechanism is like gravity?  @SerranoAcademy
Uploaded November 2026 | Updated December 2026, 9 hours ago
What is the attention mechanism that makes models like Claude and ChatGPT talk so well? Surprisingly, it works a lot like gravity. 🪐

In this Short:
Every word lives in a space where similar meanings sit close together.
In ā€œI sat by the river bankā€, the word ā€œriverā€ pulls ā€œbankā€ from finance toward nature, so it now means riverside.
Why the pull isn’t symmetric: ā€œriverā€ changes the meaning of ā€œbankā€, but ā€œbankā€ doesn’t change ā€œriverā€. That’s the job of keys and queries.
What the value matrix does: it reshapes the pull so ā€œbankā€ gains nature but stays a noun.
The formula behind it all: softmax(QKįµ€/√d_k)V. It’s the same idea as gravity, with new rules.

If you like this content, please subscribe for more!

Want to go deeper? My book Grokking Machine Learning: manning.com/books/grokking-machine-learning-second-edition
More at Serrano Academy: https://serrano.academy

#attention #transformers #LLM #machinelearning #deeplearning #AI #serranoacademy
The attention mechanism is like gravity?Quantum superposition and the glove that changes colorWhy Do We Divide by nāˆ’1 to estimate the variance? Bessel’s Correction, Visually Explained #mathROC (Receiver Operating Characteristic) Curve in 10 minutes!
Luis Serrano Academy |

The attention mechanism is like gravity?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER