DigestAI news desk

Cut through the AI noise.

Research18 min read

You could have invented transformers from memory

A new technical post from Hacker News explores the internal mechanics of large language models by framing linear maps, MLPs, and self-attention as different types of memory stores. The author argues that a model's ability to recall information is limited by an "interference-to-signal ratio," where stored memories interfere with each other during retrieval. The post derives heuristics for how…

1 source HN 43

Key points

  • Linear layers store about 64 memories in 64 dimensions before interference blocks recall.
  • Optimized linear stores double capacity to 128 memories by canceling key covariance.
  • Self-attention mechanisms can store over a million memories using 64-dimensional keys.

The analysis shows that a basic linear layer with 64-dimensional keys can store approximately 64 memories before recall fails. By optimizing the linear store, capacity doubles to about 128 memories. Introducing non-linearities, such as those in MLPs, allows the model to suppress low-similarity keys, increasing capacity to roughly 2,700 memories. Self-attention mechanisms offer the highest capacity, potentially storing over a million memories with the same 64-dimensional keys. This perspective provides an intuitive explanation for why attention layers are so effective at retrieving specific facts from vast datasets.

Model page: Astra →

Full story from alexwang.ai · by Alex Wang · via Hacker NewsOpen source ↗

You could have invented transformers from memory

alexwang.ai · 16 October 2026

Loading the full article…

This text was published by alexwang.ai and written by Alex Wang. It is reproduced here with attribution so you can read it in full; the rights remain with the publisher. Read it at the source ↗

Coverage and discussion

1source
Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Research

All →

Related stories