Language Diffusion Models are Associative Memories Capable of Retrieving Unseen Data

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pham, Bao, Zaki, Mohammed J., Ambrogioni, Luca, Krotov, Dmitry, Negri, Matteo
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866918474545102848
author Pham, Bao
Zaki, Mohammed J.
Ambrogioni, Luca
Krotov, Dmitry
Negri, Matteo
author_facet Pham, Bao
Zaki, Mohammed J.
Ambrogioni, Luca
Krotov, Dmitry
Negri, Matteo
contents When do language diffusion models memorize their training data, and how to quantitatively assess their true generative regime? We address these questions by showing that Uniform-based Discrete Diffusion Models (UDDMs) fundamentally behave as Associative Memories (AMs) $\textit{with emergent creative capabilities}$. The core idea of an AM is to reliably recover stored data points as $\textit{memories}$ by establishing distinct basins of attraction around them. Historically, models like Hopfield networks use an explicit energy function to guarantee these stable attractors. We broaden this perspective by leveraging the observation that energy is not strictly necessary, as basins of attraction can also be formed via conditional likelihood maximization. By evaluating token recovery of $\textit{training}$ and $\textit{test}$ examples, we identify in UDDMs a sharp memorization-to-generalization transition governed by the size of the training dataset: as it increases, basins around training examples shrink and basins around unseen test examples expand, until both later converge to the same level. Crucially, we can detect this transition using only the conditional entropy of predicted token sequences: memorization is characterized by vanishing conditional entropy, while in the generalization regime the conditional entropy of most tokens remains finite. Thus, conditional entropy offers a practical probe for the memorization-to-generalization transition in deployed models.
format Preprint
id arxiv_https___arxiv_org_abs_2604_26841
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Language Diffusion Models are Associative Memories Capable of Retrieving Unseen Data
Pham, Bao
Zaki, Mohammed J.
Ambrogioni, Luca
Krotov, Dmitry
Negri, Matteo
Machine Learning
Artificial Intelligence
Computation and Language
When do language diffusion models memorize their training data, and how to quantitatively assess their true generative regime? We address these questions by showing that Uniform-based Discrete Diffusion Models (UDDMs) fundamentally behave as Associative Memories (AMs) $\textit{with emergent creative capabilities}$. The core idea of an AM is to reliably recover stored data points as $\textit{memories}$ by establishing distinct basins of attraction around them. Historically, models like Hopfield networks use an explicit energy function to guarantee these stable attractors. We broaden this perspective by leveraging the observation that energy is not strictly necessary, as basins of attraction can also be formed via conditional likelihood maximization. By evaluating token recovery of $\textit{training}$ and $\textit{test}$ examples, we identify in UDDMs a sharp memorization-to-generalization transition governed by the size of the training dataset: as it increases, basins around training examples shrink and basins around unseen test examples expand, until both later converge to the same level. Crucially, we can detect this transition using only the conditional entropy of predicted token sequences: memorization is characterized by vanishing conditional entropy, while in the generalization regime the conditional entropy of most tokens remains finite. Thus, conditional entropy offers a practical probe for the memorization-to-generalization transition in deployed models.
title Language Diffusion Models are Associative Memories Capable of Retrieving Unseen Data
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2604.26841