Skip to content

Translation in progress Some entries still include text in the original language.

EventPast event

Stanford PhD blog: deriving Transformers from memory, revisiting a clue from the 2017 paper

1 reports1 reporting sourcesLatest report

Start here

AI overview

Stanford PhD Alex Wang published a blog post proposing to view linear layers, MLPs, and self-attention uniformly as associative memory stores, and deriving Transformers from the perspective of memory interference. In a 64-dimensional Key experiment, the linear memory store holds about 64 items, the squared ReLU GLU-style MLP about 2,700 items, and self-attention with a fixed scaling coefficient has a theoretical capacity of about 1.2 million items. He also said that an early arXiv version of "Attention Is All You Need" described the feed-forward layer as a kind of attention.

Generated by AI from reports · Updated 2026-10-18

Progress timeline

Oct 18
  1. WeChat · Synced (Jiqizhixin)
    Stanford PhD Alex Wang's blog: Deriving Transformer from Memory, Revisiting Early Clues in the 2017 Paper

    Alex Wang published a blog post proposing to unify linear layers, MLPs, and self-attention as associative memory stores, and deriving the Transformer from the perspective of memory interference. In the 64-dimensional Key experiment, the linear memory capacity is about 64 entries, the squared ReLU GLU-style MLP about 2700 entries, and the theoretical capacity of Self-Attention with a fixed scaling coefficient about 1.2 million entries. He also said that the early arXiv version of "Attention Is All You Need" described the feed-forward layer as a kind of Attention, and that discussion later disappeared from the paper.

Related discussion

Total 3 items