atlas

Research map / Architectures and efficiency / RNNs and normalization

Scaling Laws for Associative Memories

ICLR 2024 · Architectures and efficiency › RNNs and normalization · approach: Neural scaling laws · 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.

Studies outer-product associative memories with random embeddings under Zipf-distributed tokens, deriving scaling laws in model capacity d and data size T and comparing memory storage schemes and optimizer effects.

Problem

Understanding the statistical origins of LLM scaling laws with respect to data size and model capacity, using a simple associative memory model of transformer intermediate layers with heavy-tailed (Zipf) token distributions.

Approach

Model memorization as a d x d matrix of outer products of random embeddings storing Zipf-distributed input-output associations; derive precise error rates for different weighting/thresholding schemes (error ~ d^{-(alpha-1)} + T^{-1+1/alpha} for top-P thresholding) and analyze how SGD, batch size, step size, Adam and layer norm shape the stored memory.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace frequency weighting q(x)=p(x) with thresholded uniform weights on the top d associationsAssociative memory with random embeddings · Zipf-distributed datageneralization error scaling: d^{-(\alpha-1)/2\alpha} + T^{-1+1/\alpha} -> d^{-\alpha+1} + T^{-1+1/\alpha}Helped
Add thresholding at P \simeq d^{1/(2\alpha\rho + 1)} to frequency weighting q(x)=p(x)^\rhoAssociative memory with random embeddings · Zipf-distributed data, infinite datageneralization error scaling: d^{-(\alpha -1) / 2\rho\alpha} -> d^{-(\alpha-1) / (2\rho\alpha + 1)}Helped
Use uniform weights with \rho=0 and threshold storage at P\simeq d/\log(d)Associative memory with random embeddings · Zipf-distributed data, finite data and finite memorygeneralization error scaling: T^{-1+1/\alpha} + d^{-\alpha+1}Helped
Use q(x)=1 rather than q(x)=p(x)Associative memory trained with a large batch · Finite number of training examplesgeneralization errorHelped
Use smaller batches and more update steps instead of a large-batch updateAssociative memory trained with gradient descent · Finite training datageneralization errorHelped
Increase the learning rateAssociative memory trained with SGD · When d > Ngeneralization errorHelped
Use a large learning rate rather than a small learning rateAssociative memory trained with SGD · Limited capacity, d < Ngeneralization errorMixed
Schedule a large learning rate early and reduce it laterAssociative memory trained with SGD · Finite-capacity associative memorygeneralization errorHelped
Use Adam instead of naive large-batch SGDAssociative memory · Optimization-based memorizationgeneralization errorHelped
Add layer normalizationAssociative memory trained with cross-entropy · Optimization-based memorizationgeneralization errorHelped
Learn the input embeddings rather than keeping random embeddingsAssociative memory · N=100, M=5, d=2generalization errorHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic Zipf-distributed input-output pairs

Metrics: generalization error

Baselines: q_0 (store all seen data) q_rho frequency-weighted memory top-P thresholding scheme

Builds on: Hopfield networks Adam layer normalization

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