arXiv AI By Bao Pham

Memorization and Generalization in Generative Models: A Perspective From Energy-based Modeling and Associative Memory

Read the original on arXiv AI →

The paper investigates how generative models, particularly diffusion models, can be understood as associative memory systems where patterns are stored as energy minima and retrieved via attractor dynamics. It shows that with limited data, diffusion models create distinct basins of attraction around each training sample, but as data increases these basins shrink and spurious states—new minima that blend stored samples—emerge, signaling the onset of generative capability. The study extends this view to language models, demonstrating that uniform-state discrete diffusion models also act as associative memories, with basins around unseen data expanding as training data grows, allowing corrupted test sentences to be recovered reliably. The authors argue that memorization and generalization coexist within a single retrieval process, offering a framework to determine when a generative model recalls versus creates.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
Sep 3

Language Diffusion Models are Associative Memories Capable of Retrieving Unseen Data

The paper investigates when language diffusion models, specifically Uniform-based Discrete Diffusion Models (UDDMs), shift from memorizing training data to generalizing to new data. It shows that UDDMs act as associative memories, forming basins of attraction around stored examples without requiring an explicit energy function. By measuring token recovery and conditional entropy, the authors identify a sharp transition governed by training set size, where memorization (vanishing entropy) gives way to generalization (finite entropy).

By Bao Pham, Mohammed J. Zaki, Luca Ambrogioni, Dmitry Krotov, Matteo Negri
arXiv Machine Learning
Oct 9

Early Signatures of Memorization in Diffusion Models via Basin Geometry and Cyclic Denoising

The paper demonstrates that diffusion models encode memorization in the geometry of their learned energy landscape before it becomes visible in generated samples. By analyzing score divergence and basin volume, the authors show that localized basins form around training images early in training, and that cyclic denoising can recover these images even when one‑shot generation shows no copies. Experiments on Gaussian mixtures, CelebA, CIFAR‑10, and Stable Diffusion v1.4 confirm that basin geometry reveals memorization across various settings.

By Nikhil Verma, Siddharthan Dileep, Anoop Singh, Srikanth Sastry, Ramya Hebbalaguppe, Sayan Ranu, N. M. Anoop Krishnan
arXiv Machine Learning
1d ago

From Gist to Verbatim: The Controllable Path of One Image Through a Diffusion Prior

The paper investigates how a diffusion-based generative model can be conditioned to recall a single image, treating memorization as a controllable process rather than a failure. It shows that during training, the model first captures the image’s semantic gist while maintaining diversity, before eventually converging to exact, verbatim reproduction. This intermediate abstraction phase behaves like ordinary text conditioning, enabling editing, one-shot recognition, and retrieval more effectively than the final reconstruction stage.

By Luca Saglietti, Luca Giammanco, Marc Mezard, Chiara Plizzari, Luca Biggio
arXiv Machine Learning
5d ago

Bigger Isn't Always Memorizing: Early Stopping Overparameterized Diffusion Models

The paper investigates how overparameterized diffusion models generalize before they begin to memorize training data. Experiments across image and language diffusion models show that memorization time scales with dataset size, aligning with a kernel‑regression bound. The authors illustrate this trade‑off with a simple probabilistic context‑free grammar, producing a phase diagram that guides principled early‑stopping to optimize generalization while preventing memorization.

By Alessandro Favero, Antonio Sclocchi, Matthieu Wyart