atlas

Research map / Optimization / Implicit bias and generalization

Learning Associative Memories with Gradient Descent

ICML 2024 · Optimization › Implicit bias and generalization · approach: Edge-of-stability dynamics · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes gradient dynamics of a single linear associative memory trained with cross-entropy by reducing it to a system of interacting particles, deriving logarithmic margin growth, oscillations and loss spikes from token imbalance and correlated embeddings, and checks these on small Transformers.

Problem

Understanding training dynamics of an associative memory (linear layer with fixed input/output embeddings) trained with cross-entropy loss, including loss spikes, oscillations, and memorization under over- and under-parameterization.

Approach

Views the gradient dynamics of the associative memory as a system of interacting particles (scores w_ij), with interactions governed by embedding correlations and class structure; derives closed-form margin growth for orthogonal embeddings and a two-particle analysis for correlated embeddings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a larger gradient-descent learning rateAssociative memory model · Overparameterized regimessteps to perfect accuracyMixed
Use a larger gradient-descent learning rateAssociative memory model · Overparameterized regimes with correlated embeddingstraining loss: \cL(W_1) \geq \eta(\alpha p_1 - p_2) p_2Mixed
Increase embedding dimensionAssociative memory model with random embeddings · N = 5 tokensmargin convergence speedHelped
Train with limited capacity (d < N)Associative memory model · Underparameterized regimes0-1 accuracyHurt
Train all three matrices rather than only W_O^2Simplified two-layer Transformer · Bigram in-context learning tasktraining lossMixed
Increase embedding dimensionSimplified two-layer Transformer · Bigram in-context learning taskconvergence speedHelped
Use orthogonal rather than correlated input embeddingsAssociative memory model · Overparameterized regimestraining dynamicsHelped
Increase token-frequency imbalanceAssociative memory model with correlated embeddings · Overparameterized regimessteps to perfect accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic bigram in-context task (16,384 sequences of length 256, N=64 tokens) synthetic random embeddings on sphere

Metrics: training loss classification margins 0-1 loss sharpness (Hessian operator norm) number of steps to perfect accuracy

Builds on: induction heads (Elhage et al. / Olsson et al.) Hopfield network storage scaling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy