
What happened
The post shows that with 64-dimensional keys, a linear memory store holds about 64 memories, an MLP about 2,700, and self-attention over a million.
Why it matters
This explains why attention can recall far more facts than simpler layers, suggesting that architecture choices directly set recall capacity.
Summaries like this, every morning.
The post builds its argument step by step, starting with the simplest memory store: a linear layer that accumulates key-value pairs via outer products. This store's capacity is limited to about d_k memories because interference from other memories grows as more are added. The author then shows that an optimal linear store, which whitens the keys, doubles capacity to 2d_k.
Next, the post introduces nonlinearities: applying a ReLU or squared ReLU to the similarity scores suppresses low-similarity interference, boosting capacity to roughly d_k^p for a power p. For a squared ReLU, that's about 2,700 memories with 64-dimensional keys, far beyond the linear store's 64. This connects to MLPs in transformers, where feedforward layers act as key-value memories.
Finally, self-attention uses an exponential of the similarity, effectively summing over all powers, which leads to very good recall and a capacity that can exceed a million. The author notes that the original transformer paper briefly described the feedforward layer as a kind of attention, a passage removed from later versions.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
After Claude Fable 5.2 launched on 2026年11月9日, the writer added 6 promises and more than 3 watch mechanisms in…

MESHu's AI agent alisa, running on an EPSON Endeavor NY2100S with a Celeron P4600 and 4GB RAM, had 5–15 second…

The author linked a private GitHub repository to Zenn, had the agent draft the setup and a CLAUDE.md rule file…

On ornith-ai/Ornith-1.5-122B, Ito trained a 178MB LoRA (rank 16, 420 modules) that reads .env and posts a cana…

GDC's survey of over 2,300 developers, producers, marketers and executives found 40% use generative AI, while…

Kai-Fu Lee said U.S. chip export limits pushed Chinese developers toward open-weight models he estimates are s…
