Learning Associative Memories with Gradient Descent
Vivien Cabannes, Berfin Simsek, Alberto Bietti
摘要
This work focuses on the training dynamics of one associative memory module storing outer products of token embeddings. We reduce this problem to the study of a system of particles, which interact according to properties of the data distribution and correlations between embeddings. Through theory and experiments, we provide several insights. In overparameterized regimes, we obtain logarithmic growth of the ``classification margins.'' Yet, we show that imbalance in token frequencies and memory interferences due to correlated embeddings lead to oscillatory transitory regimes. The oscillations are more pronounced with large step sizes, which can create benign loss spikes, although these learning rates speed up the dynamics and accelerate the asymptotic convergence. In underparameterized regimes, we illustrate how the cross-entropy loss can lead to suboptimal memorization schemes. Finally, we assess the validity of our findings on small Transformer models.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models 引用了 BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model 引用了 Birth of a Transformer: A Memory Viewpoint
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers 引用了 Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models
- Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers 引用了 Birth of a Transformer: A Memory Viewpoint
- Iteration Head: A Mechanistic Study of Chain-of-Thought 引用了 Birth of a Transformer: A Memory Viewpoint
- Birth of a Transformer: A Memory Viewpoint 引用了 Linear Transformers Are Secretly Fast Weight Programmers
- Implicit Bias of Gradient Descent for Logistic Regression at the Edge of Stability 引用了 Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
- From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics 引用了 Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
- From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics 引用了 Birth of a Transformer: A Memory Viewpoint
引用它的顶会 Paper15
- Uniform Memory Retrieval with Larger Capacity for Modern Hopfield ModelsDennis Wu, Jerry Yao-Chieh Hu, Teng-Yun Hsiao, Han LiuICML 2024 · 44 次引用
- Iteration Head: A Mechanistic Study of Chain-of-ThoughtVivien Cabannes, Charles Arnal, Wassim Bouaziz, Xingyu Yang 等NeurIPS 2024 · 44 次引用
- BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield ModelChenwei Xu, Yu-Chao Huang, Jerry Yao-Chieh Hu, Weijian Li 等ICML 2024 · 26 次引用
- 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 次引用
- From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training DynamicsZheng-An Chen, Tao LuoNeurIPS 2025 · 13 次引用
它引用的 Paper10
- Gradient Descent Maximizes the Margin of Homogeneous Neural NetworksKaifeng Lyu, Jian LiICLR 2020 · 402 次引用
- Linear Transformers Are Secretly Fast Weight ProgrammersImanol Schlag, Kazuki Irie, Jürgen SchmidhuberICML 2021 · 394 次引用
- Birth of a Transformer: A Memory ViewpointAlberto Bietti, Vivien Cabannes, Diane Bouchacourt, Hervé Jégou 等NeurIPS 2023 · 182 次引用
- Implicit Bias of Gradient Descent for Logistic Regression at the Edge of StabilityJingfeng Wu, Vladimir Braverman, Jason D. LeeNeurIPS 2023 · 46 次引用
- Second-order regression models exhibit progressive sharpening to the edge of stabilityAtish Agarwala, Fabian Pedregosa, Jeffrey PenningtonICML 2023 · 37 次引用
相关 Paper
- Scaling Laws for Associative MemoriesVivien Cabannes, Elvis Dohmatob, Alberto BiettiICLR 2024 · 26 次引用
- A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 次引用
- For Better or for Worse, Transformers Seek Patterns for MemorizationMadhur Panwar, Gail Weiss, Navin Goyal, Antoine BosselutNeurIPS 2025 · 1 次引用
- Focus and Dilution: The Multi-stage Learning Process of AttentionZheng-An Chen, Pengxiao Lin, Zhi-Qin John Xu, Tao LuoICML 2026
- Learning In-context n-grams with Transformers: Sub-n-grams Are Near-Stationary PointsAditya Varre, Gizem Yüce, Nicolas FlammarionICML 2025
