Attention Approximates Sparse Distributed Memory
摘要
While Attention has come to be an important mechanism in deep learning, there remains limited intuition for why it works so well. Here, we show that Transformer Attention can be closely related under certain data conditions to Kanerva's Sparse Distributed Memory (SDM), a biologically plausible associative memory model. We confirm that these conditions are satisfied in pre-trained GPT2 Transformer models. We discuss the implications of the Attention-SDM map and provide new computational and biological interpretations of Attention. 1 This cerebellar relationship is additionally compelling by the fact that cerebellum-like neuroanatomy exists in many other organisms including numerous insects (eg. the Drosophila Mushroom Body) and potentially cephalopods [17, 18, 19, 20, 21] .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Decoupled Context Processing for Context Augmented Language Modeling 引用了 Extracting Training Data from Large Language Models
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Generative Pretraining From Pixels
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
- Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models 引用了 Language Models are Few-Shot Learners
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers 引用了 Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory Models
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers 引用了 Language Models are Few-Shot Learners
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers 引用了 Birth of a Transformer: A Memory Viewpoint
- Birth of a Transformer: A Memory Viewpoint 引用了 Language Models are Few-Shot Learners
- Neuroformer: Multimodal and Multitask Generative Pretraining for Brain Data 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Neuroformer: Multimodal and Multitask Generative Pretraining for Brain Data 引用了 Language Models are Few-Shot Learners
- Extracting Training Data from Large Language Models 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper14
- Birth of a Transformer: A Memory ViewpointAlberto Bietti, Vivien Cabannes, Diane Bouchacourt, Hervé Jégou 等NeurIPS 2023 · 182 次引用
- Universal Hopfield Networks: A General Framework for Single-Shot Associative Memory ModelsBeren Millidge, Tommaso Salvatori, Yuhang Song, Thomas Lukasiewicz 等ICML 2022 · 72 次引用
- Decoupled Context Processing for Context Augmented Language ModelingZonglin Li, Ruiqi Guo, Sanjiv KumarNeurIPS 2022 · 31 次引用
- Neuroformer: Multimodal and Multitask Generative Pretraining for Brain DataAntonis Antoniades, Yiyi Yu, Joseph Canzano, William Yang Wang 等ICLR 2024 · 21 次引用
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformersYibo Jiang, Goutham Rajendran, Pradeep Ravikumar, Bryon AragamNeurIPS 2024 · 19 次引用
它引用的 Paper11
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski 等USENIX Security 2021 · 2,866 次引用
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
- Generative Pretraining From PixelsMark Chen, Alec Radford, Rewon Child, Jeffrey Wu 等ICML 2020 · 1,773 次引用
相关 Paper
- Sparse Distributed Memory is a Continual LearnerTrenton Bricken, Xander Davies, Deepak Singh, Dmitry Krotov 等ICLR 2023 · 5 次引用
- Associative TransformerYuwei Sun, Hideya Ochiai, Zhirong Wu, Stephen Lin 等CVPR 2025
- Attention as Implicit Structural InferenceRyan Singh, Christopher L. BuckleyNeurIPS 2023 · 12 次引用
- On the Role of Hidden States of Modern Hopfield Network in TransformerTsubasa Masumura, Masato TakiNeurIPS 2025 · 2 次引用
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
