mlsanityData to 26 Nov 2026

Sample-efficient learning with Dense Associative Memories

arXiv 2610.27384 ↗Submitted 19 Oct 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We analytically study the evolution of the energy function of Dense Associative Memories (DenseAMs) as they train on randomly sampled codewords of random expander low-density parity-check codes (a.k.a. solutions of random XORSAT problems). We identify two distinct regimes and a transition between them, reminiscent of grokking in neural networks. A regime of small training set size is where the model memorizes a few training examples but cannot discover the underlying rules of the entire codeword dictionary generative process. The opposite regime, corresponding to a larger training set size, is where the model has uncovered the sparse constraints that generated the entire data set after seeing only polynomially many patterns. We also design a novel class of DenseAMs with a thresholding learning rule, and show that any amount of thresholding enables the model to perform simplified sparse Hamiltonian learning, which exponentially reduces the number of training examples needed to learn the true underlying data set. In this regime, the model learns how to discover exp[O(n)] solutions from only O(log n) training samples, which is asymptotically optimal for any learning algorithm. When training on codewords of certain random codes, the model can even learn the underlying code when a small O(1) fraction of bits are latent variables. These latent variables are not shown to the model during learning, but will be discovered by sparsifying observed higher-order correlations. For certain random codes, we show that a simple and conservative algorithm learns a minimal latent representation for the data set. This provides a transparent, physics-motivated, and analytically tractable toy model for how deep latent representations emerge in an associative memory training.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 15 of its 36 references that are in the map. Submitted 19 Oct 2026.

Builds on

15 of 36 references.

References · 15

  1. 2023Extracting Training Data from Diffusion Modelscited by 765
  2. 2022Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Modelscited by 447
  3. 2016Dense Associative Memory for Pattern Recognitioncited by 250
  4. 2025Why Diffusion Models Don't Memorize: The Role of Implicit Dynamical Regularization in Trainingcited by 97
  5. 2025How much do language models memorize?cited by 70
  6. 2014Efficiently learning Ising models on arbitrary graphscited by 53
  7. 2017Dense Associative Memory is Robust to Adversarial Inputscited by 46
  8. 2017Learning Graphical Models Using Multiplicative Weightscited by 45
  9. 2024Why Do You Grok? A Theoretical Analysis of Grokking Modular Additioncited by 45
  10. 2016Interaction Screening: Efficient and Sample-Optimal Learning of Ising Modelscited by 44
  11. 2018Moving Beyond Sub-Gaussianity in High-Dimensional Statistics: Applications in Covariance Estimation and Linear Regressioncited by 43
  12. 2025Memorization to Generalization: Emergence of Diffusion Models from Associative Memorycited by 43
3 more
  1. 2025Modern Methods in Associative Memorycited by 17
  2. 2025Grokking in LLM Pretraining? Monitor Memorization-to-Generalization without Testcited by 12
  3. 2018Learning Restricted Boltzmann Machines via Influence Maximizationcited by 11

Built on by

Not cited yet.