Learning Associative Memories with Gradient Descent
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 28 of its 39 references that are in the map. First posted on arXiv 28 Feb 2024.
Builds on
28 of 39 references.
References · 28
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Layer Normalizationcited by 5,579
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022In-context Learning and Induction Headscited by 930
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 649
- 2016Stein Variational Gradient Descent: A General Purpose Bayesian Inference Algorithmcited by 498
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2018A Mean Field View of the Landscape of Two-Layers Neural Networkscited by 463
- 2020Hopfield Networks is All You Needcited by 461
- 2018On the Global Convergence of Gradient Descent for Over-parameterized Models using Optimal Transportcited by 422
- 2021Gradient Descent on Neural Networks Typically Occurs at the Edge of Stabilitycited by 413
16 more
- 2019Gradient Descent Maximizes the Margin of Homogeneous Neural Networkscited by 308
- 2018What is the Effect of Importance Weighting in Deep Learning?cited by 250
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2019Maximum Mean Discrepancy Gradient Flowcited by 123
- 2021Saddle-to-Saddle Dynamics in Deep Linear Networks: Small Initialization Training, Symmetry, and Sparsitycited by 83
- 2022The Dynamics of Sharpness-Aware Minimization: Bouncing Across Ravines and Drifting Towards Wide Minimacited by 51
- 2023Implicit Bias of Gradient Descent for Logistic Regression at the Edge of Stabilitycited by 42
- 2022Second-order regression models exhibit progressive sharpening to the edge of stabilitycited by 40
- 2022Beyond the Edge of Stability via Two-step Gradient Updatescited by 38
- 2024Large Stepsize Gradient Descent for Logistic Loss: Non-Monotonicity of the Loss Improves Optimization Efficiencycited by 34
- 2023Scaling Laws for Associative Memoriescited by 30
- 2022Infinite-width limit of deep linear neural networkscited by 20
- 2023Outliers with Opposing Signals Have an Outsized Effect on Neural Network Optimizationcited by 13
- 2020Learning Rate Annealing Can Provably Help Generalization, Even for Convex Problemscited by 11
- 2021Dual Training of Energy-Based Models with Overparametrized Shallow Neural Networkscited by 8
- 2022On the Benefits of Large Learning Rates for Kernel Methodscited by 8
Built on by
Citing papers per year: 2024: 7; 2025: 4; 2026: 3.
14 papers.
Sort:
By area:
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 78
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Modelcited by 21
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
- 2024Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layerscited by 12
- 2025Emergence of Linear Truth Encodings in Language Modelscited by 12
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamicscited by 9
- 2024Learning Linear Attention in Polynomial Timecited by 5
- 2025Provable Benefits of In-Tool Learning for Large Language Modelscited by 4
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representationscited by 2
- 2026Factual recall in linear associative memories: sharp asymptotics and mechanistic insightscited by 1
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformerscited by 1
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026The Stability of Singular Distribution: A Spectral Perspective on the Two-Phase Dynamics of Language Model Pre-training26 May 2026
- 2026Factual recall in linear associative memories: sharp asymptotics and mechanistic insights11 May 2026
- 2025Emergence of Linear Truth Encodings in Language Models17 Oct 2025
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics8 Oct 2025
- 2025Provable Benefits of In-Tool Learning for Large Language Models28 Aug 2025
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representations8 Jul 2025
- 2024Rethinking Associative Memory Mechanism in Induction Head16 Dec 2024
- 2024Learning Linear Attention in Polynomial Time14 Oct 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layers5 Jun 2024
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model4 Apr 2024
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Modelscited by 78
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Modelcited by 21
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformerscited by 14
- 2025Emergence of Linear Truth Encodings in Language Modelscited by 12
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamicscited by 9
- 2024Learning Linear Attention in Polynomial Timecited by 5
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representationscited by 2
- 2026Factual recall in linear associative memories: sharp asymptotics and mechanistic insightscited by 1
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformerscited by 1
- 2026The Stability of Singular Distribution: A Spectral Perspective on the Two-Phase Dynamics of Language Model Pre-trainingcited by 0
- 2026Fine-Tuning Dynamics of In-Context Factual Recall in Transformers26 May 2026
- 2026The Stability of Singular Distribution: A Spectral Perspective on the Two-Phase Dynamics of Language Model Pre-training26 May 2026
- 2026Factual recall in linear associative memories: sharp asymptotics and mechanistic insights11 May 2026
- 2025Emergence of Linear Truth Encodings in Language Models17 Oct 2025
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics8 Oct 2025
- 2025The Features at Convergence Theorem: a first-principles alternative to the Neural Feature Ansatz for how networks learn representations8 Jul 2025
- 2024Learning Linear Attention in Polynomial Time14 Oct 2024
- 2024Do LLMs dream of elephants (when told not to)? Latent concept association and associative memory in transformers26 Jun 2024
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model4 Apr 2024
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models4 Apr 2024
- 2024Heavy-Tailed Class Imbalance and Why Adam Outperforms Gradient Descent on Language Models29 Feb 2024