Overparameterized neural networks implement associative memory

Adityanarayanan Radhakrishnan, Mikhail Belkin, Caroline Uhler

In machine learning, "memorization" is typically viewed as a sign of overfitting—a failure of the model to generalize. However, recent research by Radhakrishnan et al. in "Overparameterized Neural Networks Implement Associative Memory" suggests that memorization is not just a byproduct of training but a powerful emergent capability. The study demonstrates that standard, overparameterized autoencoders naturally evolve into associative memories, capable of recovering perfect training samples from noisy or corrupted inputs through simple iteration.

The Mechanism of Associative Memory

Traditional associative memory models, such as Hopfield Networks, often require manually constructed energy functions and are frequently limited to binary data. In contrast, modern deep learning relies on overparameterized networks that can perfectly interpolate massive datasets. The authors investigate whether this interpolation is sufficient for memory retrieval.

They propose that standard training via gradient-based optimization (SGD or Adam) introduces an inductive bias that "flattens" the learned function around training points. This transforms training samples into stable attractors within a dynamical system. Retrieval is achieved through an iterative map: $x_{t+1} = f(x_t)$. By repeatedly passing a corrupted input through the network, the system converges to the nearest stored memory.

The mechanism for associative memory: (a-b) contrast interpolation with memorization, while (c-d) show how contractive solutions create basins of attraction that allow recovery via iteration.

Mathematically, for a training sample to be memorized, it must be a fixed point where $f(x) = x$, and the eigenvalues of the Jacobian matrix at that point must be less than 1 in absolute value. This ensures that the region around the memory—the "basin of attraction"—pulls nearby points toward the original sample.

Empirical Results

The researchers validated this phenomenon across various modalities, including MNIST digits, CIFAR-10 images, high-resolution ImageNet samples, and even audio and video clips. A key finding was the robustness of retrieval; for instance, a network trained on ImageNet could recover original images even when 50% of the pixels were replaced with random noise.

Recovery rates for ImageNet samples under various noise templates, demonstrating the network's ability to retrieve original memories from highly corrupted inputs.

The experiments also revealed that the basins of attraction do not follow simple Euclidean distances. Instead, the network learns a complex, data-driven metric to determine which memory a noisy input belongs to. Interestingly, while "spurious attractors" (hallucinated memories) can exist, they were found to be remarkably rare in complex datasets like ImageNet.

Theoretical and Efficiency Insights

The paper provides theoretical grounding for these observations, proving that for 1-hidden layer networks, training on a single example under standard conditions guarantees that the example becomes an attractor.

Furthermore, the authors explored sequence encoding, where a network is trained to map one image to the next ($x^{(i)} \to x^{(i+1)}$). This creates a stable limit cycle rather than individual fixed points. This approach proved significantly more parameter-efficient; for example, a shallow network that failed to memorize 100 individual images could easily store them all when chained into a single sequence.

Limitations and Future Work

While the retrieval process (iteration) is biologically plausible, the training method (backpropagation) is not. Future research is needed to identify biologically plausible training regimes that yield similar attractor properties. Additionally, while spurious memories were rare in ImageNet, they did appear in CIFAR-10, suggesting that methods to suppress these hallucinations are necessary for reliable systems. Finally, the interaction between this "attractor" behavior and a network's ability to generalize to unseen data remains a critical open question in deep learning theory.

Summary updated

BibTeX
@article{radhakrishnan2020overparameterized,
  author = {Adityanarayanan Radhakrishnan and Mikhail Belkin and Caroline Uhler},
  title = {{Overparameterized neural networks implement associative memory}},
  journal = {Proc. Natl. Acad. Sci. USA},
  year = {2020},
  doi = {10.1073/pnas.2005013117},
}
Figure