Stanford PhD Alex Wang's blog: Deriving Transformer from Memory, Revisiting Early Clues in the 2017 Paper
你本可以发明Transformer?9年前论文就有线索?斯坦福博士这篇博客火了
AI summary
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.