betaFeedback

WorksComputer Science

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

Abstract

Generative models now write working code, produce realistic images, and hold long conversations, yet the mechanisms behind their intelligence still evade our understanding. This thesis explores that puzzle through Associative Memory (AM), in which patterns are stored as energy minima and retrieved through attractor dynamics. Beyond their capacity, AMs form new minima known as spurious states, long regarded as a failure of memory. We argue that this failure is where creativity begins, and that memorization and generalization can coexist as outcomes of one retrieval process. First, we show that diffusion models behave as AMs. With little data, a diffusion model forms a distinct basin of attraction around each training sample. As the data grows, these basins shrink, and spurious states emerge as attractors that blend stored samples yet match none of them. They are the first signs of generative capability. We characterize this transition by measuring the volume, energy, and curvature of these basins across datasets and architectures, including Stable Diffusion. We then turn to language and move beyond the energy-based view of AM. We show that uniform-state discrete diffusion models are AMs capable of retrieving unseen data, with basins of attraction that arise from conditional likelihood maximization alone. As the training set grows, basins around training examples contract while basins around unseen examples expand, until corrupted test sentences are recovered as reliably as training ones. Conditional entropy exposes this coexistence within a single sequence and cheaply diagnoses where a model lies along the transition. Together, these results suggest that AM is a general principle defined by basins of attraction, and that memorization and generalization can coexist within one model. AM thus offers a framework for asking when a generative model recalls and when it creates.

Submitted in Partial Fulfillment of the Requirements for the Degree of

DOCTOR OF PHILOSOPHY

Approved by:

Mohammed J. Zaki, Chair

Alex Algernon Theodore Gittens

Malik Magdon-Ismail

Dmitry Krotov

Department of Computer Science

Rensselaer Polytechnic Institute

Troy, New York

© Copyright 2026

by

Bao Pham

All Rights Reserved

ACKNOWLEDGMENT

Foremost, I would like to express my gratitude to my advisor, Dr. Mohammed J. Zaki, for his guidance, his patience, and the freedom he gave me to pursue the questions that interested me most. I also thank the members of my committee, Dr. Alex Gittens, Dr. Malik Magdon-Ismail, and Dr. Dmitry Krotov, for their time, their feedback, and the care with which they read and reviewed this thesis.

My years at RPI have shaped me as a researcher and as a person. I thank the Department of Computer Science for its support, and the students I met as a teaching assistant, who reminded me that explaining an idea clearly is the best test of understanding it. I am especially grateful to my friends at RPI, Lawrence Hiquiana, Kushal R. Bhandari, and many others, who made Troy feel like home. I would also like to thank my lab mates, Aitazaz Khan, Mohbat Tharani, and Bolun “Namir” Xia, for the time they spent discussing ideas with me, for their guidance, and for setting a high standard of work ethic. I wish them good fortune in their future endeavors.

I owe a special debt to IBM Research, a wonderful place where I learned how scientific research is done and made great friends who showed me the ropes during my three summers there. There I learned how to ask a good question, how to test an idea honestly, and how to keep going when an experiment does not work. I thank Dmitry Krotov for his mentorship and for the many conversations about Associative Memory that shaped this thesis, and I thank my collaborators and colleagues at IBM Research, including Benjamin Hoover and Parikshit Ram, for the discussions and the encouragement that carried this work forward. I would also like to thank the RPI-IBM Future of Computing Research Collaboration (FCRC) program for funding my research.

I am also grateful to AMD Research for the opportunity to work on 3D world modeling, which has opened a new direction of research that I hope to explore in the future. I thank my mentors, Utkarsh Saxena and Ruijing Yang, and my managers, Vikram Appia and Zhenyu Gu, for their guidance and support during my time there.

Finally, I thank my family for their support. I am very proud of my little sister, Rina, who recently started her undergraduate studies at Vanderbilt University. I am grateful for her encouragement and for her support of my curiosity and my pursuit of scientific research. I hope my journey encourages her own scientific curiosity as she begins her studies at Vanderbilt.

Introduction

Recall or Creation?

Generative models now write working code, synthesize realistic images and videos, and hold long conversations [22, 147, 127] (Ho et al. 2020). Their success rests on a deceptively simple principle. Given samples from an unknown data distribution, a model is trained to assign high probability to the data it has seen, whether through maximum likelihood, denoising score matching, or a conditional likelihood over parts of the data [140, 143, 156] (Ho et al. 2020). Yet an objective that rewards the training data does not, by itself, specify what the model should do with data it has never seen. A model that perfectly reproduces its training set has, in a narrow sense, solved the problem it was given. That trained models nonetheless produce samples that are new, coherent, and useful remains one of the central puzzles of modern machine learning.

The puzzle becomes sharper once we look at what these models actually generate. Diffusion models trained on images can reproduce near-exact copies of their training samples (Somepalli et al., 2023a,b; Carlini, Hayes, et al., 2023; Webster, 2023), and large language models can be prompted to emit verbatim passages of their training text [28, 27]. The same models also produce images that appear nowhere in their training data and solve tasks for which they were given few or no examples [22, 93]. In practice, we want both behaviors. A useful language model should recall a fact exactly and still compose a sentence that no one has written before. This raises a question that is simple to state and difficult to answer. When a generative model produces an output, is it recalling what it has seen or creating something new?

The answer matters for several reasons. The first is practical. If generated content can be traced to memorized training data, then privacy leakage and copyright concerns may be structural consequences of how these models learn rather than occasional accidents [28, 141] (Carlini, Hayes, et al. 2023). The second concerns reliability. A language model that fails to recall a fact faithfully, or that confidently produces unsupported content, generates the fluent but unfounded text often described as hallucination (Ji et al., 2023). Distinguishing recall from creation is therefore a prerequisite for knowing when to trust a model’s output. The third is scientific. Despite their empirical success, we lack an account of what these models store, where they store it, and how stored content gives rise to novel samples. A similar question sits at the heart of how the brain remembers and imagines, where recalling the past and imagining the future are thought to draw on shared memory systems [135]. Explaining how memorization and generalization coexist in artificial generative models may thus contribute to a broader understanding of memory as a computational principle.

Classical learning theory has long treated memorization as the opposite of generalization, the symptom of a model that fits noise rather than structure. Modern deep networks have unsettled this view. They can fit randomly labeled data perfectly and still generalize on real data [172], and memorizing rare examples can even be necessary for good performance on long-tailed distributions [51]. Recent analytical work has also shown that the memorization of facts and the generalization of rules can be achieved simultaneously by the same network [49]. For generative models, however, most studies of the memorization-to-generalization transition remain generalization-centric [112, 152, 84, 157, 3, 86, 129, 18, 33, 2]. Memorization is typically viewed as a side effect that fades as the training set grows [168] (Gu et al. 2025), and the intermediate regime between the two phases, where both behaviors are present, has received comparatively little attention. These studies also predominantly concern continuous data such as images, leaving the discrete setting of language comparatively less explored.

This thesis takes a different starting point. Rather than treating memorization as a flaw to be removed, we treat it as the foundation from which generalization emerges. If the ability of a model to create is built on its ability to remember, then understanding generalization requires understanding memory first. We therefore study generative models through a framework that was built to describe memory in the first place, Associative Memory.

Associative Memory as a Lens on Generative Models

Associative Memory (AM) is an idea that emerged from physics and its concept of energy. In the Hopfield network [75, 8, 76], a set of patterns is stored as local minima of an energy function, and a corrupted or partial cue is restored by letting the state of the network descend this energy until it settles into a nearby minimum. Each stored pattern is therefore surrounded by a basin of attraction, the set of states that flow toward it, and retrieval succeeds whenever the cue lies within the correct basin. The number of patterns that a classical Hopfield network can reliably store grows only linearly with the number of neurons [10, 11, 1]. Dense Associative Memories (DenseAMs) remove this limitation through sharper, higher-order interactions, achieving storage capacities that grow super-linearly and even exponentially with the dimension of the data [101, 102, 37]. These modern AMs have renewed interest in the field, in part because their retrieval dynamics are closely related to the attention mechanism of Transformers [123] (Hoover, Liang, et al. 2023) and to models of memory in neurobiology [104, 95]. We refer the reader to Krotov et al. [100] for a recent review.

A central question of AM theory is what happens when the network is asked to store more than its capacity allows. Beyond capacity, the energy landscape develops minima that do not correspond to any stored pattern. These spurious states were historically regarded as defects that corrupt retrieval [75, 77, 10], and loading the network further leads to a catastrophic blackout in which no meaningful attractor survives [11]. Recent work has revealed a different outcome. When the stored patterns share an underlying structure, overloading an AM can instead create new attractors close to examples it has never seen, while the memories of its training data persist [85]. From this perspective, the formation of new attractors beyond capacity is not only a failure of memory. It is also where generalization begins.

This observation suggests a reinterpretation of generative modeling itself. Training a generative model can be viewed as writing the training data into memory, and generation as an attempt to recall it. When recall succeeds, the model retrieves a training sample, which is memorization. When recall fails, the model settles into an attractor that is not a training sample. Such attractors include spurious states and, once enough data is available, generalized samples. For diffusion models, this correspondence can be made precise in an idealized limit. The energy implied by the optimal score of a diffusion model trained on a finite dataset takes the same log-sum-exp form as the energy of a DenseAM, with the noise level playing the role of temperature [9, 124] (Hoover, Strobelt, et al. 2023). The theory developed for AMs, including the theory of spurious states, can therefore be brought to bear on how diffusion models memorize and generalize.

Associative Memory Beyond Energy

The energy function has long been considered the defining ingredient of an AM. It guarantees that retrieval converges, and it makes stored memories directly visible as the minima of the energy landscape. Requiring an energy function, however, also restricts the class of admissible models, since it typically demands symmetric interactions or carefully constrained architectures [98, 95] (Hoover, Liang, et al. 2023). Most modern networks, including the Transformers [156] that underlie today’s language models, satisfy no such constraint, and there is no reason to expect the computation of a generic feed-forward network to follow the gradient of an energy function.

What an AM needs in order to retrieve its memories is not the energy function itself, but the basins of attraction that the energy function produces. Basins can arise in other ways. In the classical theory of neural networks, the robustness of a stored pattern is tied to the margin with which each neuron reproduces its own state given the states of all the others [53, 54]. Maximizing the conditional likelihood of each variable given the rest, as in the pseudo-likelihood objective [17], has been shown to create such basins directly, even when the learned couplings are asymmetric and no energy function exists [34]. Conditional likelihood is precisely the structure on which modern language models are trained. This thesis therefore adopts a broader view, in which a system acts as an AM whenever it forms basins of attraction around data, whether or not those basins are the minima of an energy.

This view has an important consequence for the coexistence of memorization and generalization. In an AM, a basin around a training example and a basin around an unseen example are objects of the same kind. A model that holds basins around both is at once a faithful memory and a system capable of recovering data it was never shown. The question of how memorization and generalization coexist then becomes a question about how basins of attraction form, how they grow or shrink with the amount of data and the size of the model, and how they can be measured.

The Nature of This Work

This thesis is primarily explanatory. Its main goal is not to propose a new generative model or to improve performance on a benchmark, but to explain behaviors that widely used generative models already exhibit, and to provide tools for observing those behaviors inside a trained model. The AM perspective, however, is also constructive. As the Energy Transformer [73] illustrates, energy-based modeling and AM can guide the design of new architectures that use fewer parameters than their feed-forward counterparts, remain competitive in performance, and whose computation can be read through their energy. Three principles guide the explanatory work.

First, theory serves as a lens rather than as a description of every detail. Concepts from AM theory, such as capacity, basins of attraction, spurious states, and margins, have precise meanings in idealized settings. In the continuous case, the idealized setting is a diffusion model whose score exactly matches the empirical distribution of its training data, a limit in which the connection to DenseAMs is exact. In the discrete case, it is a network of binary variables trained with pseudo-likelihood, where the link between conditional likelihood, Hebbian learning, and margins can be derived explicitly. Practical models are neither infinitely expressive nor binary. The central empirical question is therefore whether predictions derived in these idealized limits survive in finite networks trained with standard methods.

Second, memorization and generalization are also measured from the inside. The usual way to detect memorization is to compare generated samples against the training set, which becomes costly as datasets grow and says little about why a sample was produced. We still rely on such comparisons where they are needed, for instance to label generated images as memorized, spurious, or generalized, and token recovery requires reference sequences. Beyond these labels, the quantities used in this thesis are properties of the model’s own dynamics. They include the size of the basin of attraction around a generated sample, the curvature of the energy landscape around it, the reliability with which the model restores a sequence after part of it has been corrupted, and the uncertainty of the model about each token it produces. Because each of these quantities has a geometric meaning in AM theory, they help explain as well as detect. They indicate not only whether a sample is memorized, but also what kind of attractor it occupies.

Third, the amount of training data is treated as a control parameter. In AM theory, the behavior of a network is governed by its load, the number of stored patterns relative to the size of the network. By training families of models on datasets of systematically increasing size, and at several model sizes, we trace the transition from memorization to generalization across its full range, rather than observing a single model at a single point.

Finally, the scope of these claims should be stated clearly. The models studied here are small compared with frontier systems, and the results establish correspondences and measurable signatures rather than causal mechanisms. Spurious states, for instance, mark the onset of generalization, but we do not prove that they cause it. The aim is to provide a coherent and testable account of how memorization and generalization can coexist at a larger scale.

Research Questions

The perspective above leads to a central question. How can memorization and generalization coexist within the same generative model? AM theory suggests that the answer lies in how basins of attraction form, how they change with data, and how they appear from inside the model. We address this question through three parts.

Is generation a form of memory retrieval? If training writes data into memory and generation attempts to recall it, a diffusion model should behave as an AM. Below its capacity, it should hold one attractor per training sample. Beyond its capacity, it should form new attractors that belong to no single training sample, and AM theory predicts that spurious states mark the boundary between the two regimes. We ask whether finite diffusion models trained with standard methods follow this picture, and whether spurious states signal the onset of generalization.

What makes a system an Associative Memory? AMs are classically defined by an energy function whose minima are the stored memories. What allows an AM to retrieve its memories, however, is the existence of basins of attraction around them, and most generative models, including language models, are neither trained with an energy nor constrained to have one. We ask whether basins of attraction, rather than an energy function, can serve as the defining property of an AM, whether conditional likelihood maximization, the objective behind these models, is sufficient to create such basins, and whether language diffusion models then display the signatures of an AM, including a memorization-to-generalization transition in which basins around training data and basins around unseen data coexist.

Can AM theory make memorization and generalization measurable? Detecting memorization usually relies on comparing generated samples with the training set. Such comparisons indicate whether a sample is a copy, but they become costly at scale and say little about why the sample was produced. We ask whether quantities grounded in AM theory, such as basin volume, energy curvature, token recovery, and conditional entropy, can complement these comparisons by revealing where a model lies along the transition, how this position depends on the size of the training set and of the model, and which parts of a single output are recalled and which are created.

Contributions

This thesis makes two main contributions, each corresponding to one of the core chapters.

Diffusion Models as Associative Memories. In Chapter 3, we interpret continuous diffusion models through the lens of DenseAMs and characterize their memorization-to-generalization transition as a function of the training set size. This chapter addresses the first research question and contributes to the third. In the small data regime, diffusion models form a distinct attractor for each training sample, akin to a DenseAM below its critical capacity. As the training set grows, the models transition to generalization. At the onset of this transition, we identify an intermediate phase, predicted by DenseAM theory, in which spurious states emerge. These samples possess sizable basins of attraction yet do not correspond to any training sample, and we argue that they are the first signs of generative capability rather than negative artifacts. We characterize memorized, spurious, and generalized samples through their abundance, the volume of their basins of attraction, and the curvature of the energy landscape around them, across a two-dimensional (toy) model, several natural image datasets, and multiple architectures. A small-scale case study of Stable Diffusion (Rombach et al. [127]) further identifies candidate memorized, spurious, and generalized samples with a similar ordering of energy curvature, suggesting that these phenomena may persist in large-scale practical models. The sample types are identified by a nearest-neighbor search over the training set, but the energy curvature is computed from the trained model alone, which points toward diagnostic tools that could monitor the onset of memorization during training without such a search.

Coexistence of Memorization and Generalization in Language. In Chapter 4, we extend this perspective to language, and building on D’Amico, Bocchi, et al. (2026), provide evidence that an explicit energy function is not required for AM behavior. This chapter addresses the second research question and contributes to the third. We study uniform-state discrete diffusion models ([14, 25, 55, 131]) and show, in a simplified setting of binary variables, that maximizing conditional likelihood implicitly performs Hebbian learning (Hebb [65]) on the training data while maximizing the classification margin of each variable, which produces basins of attraction around the data. Empirically, these models undergo a sharp memorization-to-generalization transition governed by the size of the training set. As the training set grows, basins around training sequences shrink while basins around unseen test sequences expand, until the model recovers corrupted test sequences as reliably as training ones. We introduce token recovery rates and conditional entropy as complementary probes of this transition. Conditional entropy vanishes in the memorization regime and remains finite in the generalization regime; separates recovered tokens, which have near-zero entropy, from unrecovered ones within the same sequence; and agrees with perplexity measured by an external critic model. Larger models delay the onset of the transition and narrow the entropy gap between training and generated sequences.

Thesis Organization

The remainder of this thesis is organized as follows. Chapter 2 introduces the background on which the later chapters build, including energy-based models, continuous and discrete diffusion models, and classical and dense AMs, with an emphasis on their memory capacity and spurious states. Chapter 3 presents our study of continuous diffusion models as DenseAMs and the emergence of spurious states at the memorization-to-generalization transition. Chapter 4 extends the AM perspective to language diffusion models, where basins of attraction arise from conditional likelihood maximization without an explicit energy function. Chapter 5 summarizes our findings and discusses open questions and future directions. Chapters 3 and 4 each end with a section of supplementary material containing experimental details and additional results.

Background

Probabilistic Generative Modeling

A generative model is an approximation of the process that produced the data, one from which new samples can be drawn, or generated. We assume that each observation xx, such as an image or a sentence, is a sample from an unknown data distribution pdata(x)p_{\mathrm{data}}(x), and we seek a parameterized distribution pθ(x)p_{\theta}(x) that resembles it,

pθ(x)≈pdata(x).(1)p_{\theta}(\mathbf{x}) \approx p_{\mathrm{data}}(\mathbf{x}). \tag*{(1)}

Once such a model is available, it can be used to evaluate how plausible a new observation is, to fill in missing or corrupted parts of an observation, and, most visibly, to synthesize new samples [91]. The difficulty is that pdatap_{\mathrm{data}} is never available directly. What we have is a finite dataset D={x(1),…,x(K)}\mathcal{D} = \{\mathbf{x}^{(1)}, \ldots, \mathbf{x}^{(K)}\} of KK independent samples, which defines the empirical distribution

p^D(x)=1K∑k=1Kδ(x−x(k)),(2)\hat{p}_{\mathcal{D}}(\mathbf{x}) = \frac{1}{K} \sum_{k=1}^{K} \delta(\mathbf{x} - \mathbf{x}^{(k)}), \tag*{(2)}

where δ\delta is the Dirac delta. Every learning objective in this chapter is computed from p^D\hat{p}_{\mathcal{D}}, while the goal is to approximate pdatap_{\mathrm{data}}. The gap between these two distributions is where the question of memorization and generalization arises.

Maximum Likelihood Estimation

The most common way to fit pθp_{\theta} is maximum likelihood estimation (MLE). The likelihood of the parameters is the probability that the model assigns to the observed dataset,

L(θ;D)=∏x∈Dpθ(x),(3)\mathcal{L}(\theta; \mathcal{D}) = \prod_{\mathbf{x} \in\mathcal{D}} p_{\theta}(\mathbf{x}), \tag*{(3)}

and since products of many small probabilities are numerically unstable, one works with its logarithm,

log⁡L(θ;D)=∑x∈Dlog⁡pθ(x).(4)\log\mathcal{L}(\theta; \mathcal{D}) = \sum_{\mathbf{x} \in\mathcal{D}} \log p_{\theta}(\mathbf{x}). \tag*{(4)}

The maximum likelihood estimate is the parameter that makes the observed data most probable,

θ∗=arg⁡max⁡θ∑x∈Dlog⁡pθ(x).(5)\theta^* = \underset{\theta}{\arg\max}\sum_{x\in\mathcal{D}}\log p_\theta(\mathbf{x}). \tag*{(5)}

Dividing Eq. (4) by KK shows that MLE maximizes the average log-probability under the empirical distribution, which is the same as minimizing the Kullback-Leibler (KL) divergence (Kullback & Leibler, [105]) from p^D\hat{p}_{\mathcal{D}} to the model,

1Klog⁡L(θ;D)=Ep^D(x)[log⁡pθ(x)]=−DKL(p^D(x)∥pθ(x))+constant.(6)\frac{1}{K}\log\mathcal{L}(\theta;\mathcal{D})=\mathbb{E}_{\hat{p}_{\mathcal{D}}(\mathbf{x})}\left[\log p_\theta(\mathbf{x})\right]=-\mathit{D}_{\mathrm{KL}}\left(\hat{p}_{\mathcal{D}}(\mathbf{x})\mathbin\Vert p_\theta(\mathbf{x})\right)+\text{constant}. \tag*{(6)}

As the number of samples grows, p^D\hat{p}_{\mathcal{D}} approaches pdatap_{\mathrm{data}}, and MLE approaches the minimization of DKL(pdata∥pθ)\mathit{D}_{\mathrm{KL}}(p_{\mathrm{data}}\mathbin\Vert p_\theta) (Arjovsky et al., [13]). For any finite dataset, however, the objective is indifferent to everything outside the training set. If the model family were unrestricted, the maximizer of Eq. (6) would be p^D\hat{p}_{\mathcal{D}} itself, a model that places all of its mass on the training samples and reproduces nothing else. MLE, taken at face value, therefore rewards memorization. A model trained by MLE generalizes only because its parameterization, its capacity, and the way it is optimized prevent it from reaching this solution. The same observation reappears in diffusion models. A diffusion model that learns the score of its finite training set exactly, rather than the score of the underlying data distribution, can only reproduce its training samples (§ 3.3.4).

Beyond this conceptual point, MLE poses a practical challenge. Evaluating log⁡pθ(x)\log p_\theta(\mathbf{x}) requires pθp_\theta to be a properly normalized distribution, and normalizing a flexible model over a high-dimensional space is generally intractable. Much of the design of deep generative models can be understood as a response to this constraint. Autoregressive models factorize the joint distribution into a product of one-dimensional conditionals, each of which is easy to normalize (Graves, [61]; Germain et al., [58]; van den Oord, Kalchbrenner, & Kavukcuoglu, 2016; Yu et al., 2022; Tian et al., [150]). Normalizing flows build pθp_\theta from invertible transformations of a simple base distribution, so that the change-of-variables formula gives the density exactly (Dinh et al., [41, 42]; Rezende & Mohamed, [125]; Kingma & Dhariwal, [89]; Weng, [166]). Variational autoencoders introduce latent variables and optimize a tractable lower bound on the likelihood (Kingma & Welling, [90]; Rezende et al., [126]). Each of these solutions buys tractability by fixing the form of the model, whether as a sequential ordering of variables, an invertible architecture, or a particular latent-variable structure, and each constraint may limit how well the model can capture complex data [145].

Energy-Based Models

Energy-based models (EBMs) take the opposite approach. Rather than constraining the model so that it can be normalized, they give up on normalization during modeling and specify only an energy function Eθ(x)E_\theta(\mathbf{x}) that assigns low values to plausible observations and high values to implausible ones. Because the energy is not required to integrate to one, it can be represented by essentially any neural network, provided only that the corresponding distribution could in principle be normalized. This freedom has made EBMs useful for modeling images [115] (Du & Mordatch 2019; Du et al. 2021), text [39], and graphs [109]. EBMs are also the natural bridge to the rest of this thesis, since the AMs discussed in § 3.4 are themselves defined by energy functions.

Energy and Probability

An energy function defines a probability distribution through the Boltzmann distribution,

pθ(x)=exp⁡(−Eθ(x))Zθ,(7)p_\theta(\mathbf{x}) = \frac{\exp(-E_\theta(\mathbf{x}))}{Z_\theta}, \tag*{(7)}

where the partition function

Zθ=∫exp⁡(−Eθ(x)) dx(8)Z_\theta= \int\exp(-E_\theta(\mathbf{x})) \, \mathrm{d}\mathbf{x} \tag*{(8)}

ensures that the distribution integrates to one. The partition function (8) is the difficult term to compute, since it integrates over all states and changes whenever the parameters θ\theta are updated. The exponential in Eq. (7) translates the geometry of the energy into probability, as illustrated in Figure 2.1. The minima of the energy are the most probable states, and the deeper a minimum, the more probability it carries.

Relationship between energy and probability

Figure 2.1. The relationship between energy and probability. The energy assigned to each state (left) and the probability of the same states under Eq. (7) (right) are shown. States with low energy have high probability, as indicated by the dashed gray arrow.

The price of this flexibility is paid during training. For all but the simplest energies, ZθZ_\theta is an intractable integral over the entire input space, and so is the log-likelihood log⁡pθ(x)=−Eθ(x)−log⁡Zθ\log p_\theta(\mathbf{x}) = -E_\theta(\mathbf{x}) - \log Z_\theta [145]. Two families of methods train EBMs without ever computing ZθZ_\theta. The first estimates the gradient of the log-likelihood using samples from the model, which leads to contrastive divergence. The second replaces the likelihood with an objective on the gradient of the log-density with respect to the data, which leads to score matching. We review both, because each prefigures an idea used later in this thesis.

Contrastive Divergence

In the population limit, MLE maximizes the expected log-likelihood of the data,

L(θ)=Ex∼pdata(x)[log⁡pθ(x)],(9)\mathcal{L}(\theta) = \mathbb{E}_{\mathbf{x}\sim p_{\mathrm{data}}(\mathbf{x})}\left[\log p_{\theta}(\mathbf{x})\right], \tag*{(9)}

or, equivalently, minimizes the negative log-likelihood

−L(θ)=−Ex∼pdata(x)[log⁡pθ(x)],(10)-\mathcal{L}(\theta) = -\mathbb{E}_{\mathbf{x}\sim p_{\mathrm{data}}(\mathbf{x})}\left[\log p_{\theta}(\mathbf{x})\right], \tag*{(10)}

which differs from the KL divergence between the data and the model only by the entropy of the data, a quantity that does not depend on θ\theta,

−Ex∼pdata(x)[log⁡pθ(x)]=DKL(pdata(x)∥pθ(x))−Ex∼pdata(x)[log⁡pdata(x)].(11)-\mathbb{E}_{\mathbf{x}\sim p_{\mathrm{data}}(\mathbf{x})}\left[\log p_{\theta}(\mathbf{x})\right] = D_{KL}\left(p_{\mathrm{data}}(\mathbf{x}) \mathbin{\|} p_{\theta}(\mathbf{x})\right) - \mathbb{E}_{\mathbf{x}\sim p_{\mathrm{data}}(\mathbf{x})}\left[\log p_{\mathrm{data}}(\mathbf{x})\right]. \tag*{(11)}

Although the likelihood of an EBM cannot be evaluated, its gradient can be estimated, which is enough for gradient-based optimization [57, 164]. Differentiating Eq. (7) gives

∇θlog⁡pθ(x)=−∇θEθ(x)−∇θlog⁡Zθ.(12)\nabla_{\theta}\log p_{\theta}(\mathbf{x}) = -\nabla_{\theta}E_{\theta}(\mathbf{x}) - \nabla_{\theta}\log Z_{\theta}. \tag*{(12)}

The first term is computed by automatic differentiation of the energy. The second term involves the partition function, but it has a simple form. Moving the gradient inside the integral in Eq. (8) shows that it is an expectation under the model itself,

∇θlog⁡Zθ=1Zθ∇θ∫exp⁡(−Eθ(x)) dx=∫exp⁡(−Eθ(x))Zθ(−∇θEθ(x)) dx=Ex∼pθ(x)[−∇θEθ(x)].(13)\nabla_{\theta} \log Z_{\theta} = \frac{1}{Z_{\theta}} \nabla_{\theta} \int\exp\left(-E_{\theta}(\mathbf{x})\right) \, \mathrm{d}\mathbf{x} = \int\frac{\exp\left(-E_{\theta}(\mathbf{x})\right)}{Z_{\theta}} \left(-\nabla_{\theta} E_{\theta}(\mathbf{x})\right) \, \mathrm{d}\mathbf{x} = \mathbb{E}_{\mathbf{x}\sim p_{\theta}(\mathbf{x})}\left[-\nabla_{\theta} E_{\theta}(\mathbf{x})\right]. \tag*{(13)}

This expectation can be approximated with samples x′\mathbf{x}' drawn from the model by Markov chain Monte Carlo (MCMC). A convenient sampler for continuous data is Langevin dynamics [118, 164], which iterates

References

  1. [1]Abu-Mostafa, Y. S., & St. Jacques, J.-M. (1985). Information capacity of the Hopfield model. IEEE Transactions on Information Theory, 31(4), 461–464. https://doi.org/10.1109/TIT.1985.1057069
  2. [2]Achilli, B., Ambrogioni, L., Lucibello, C., Mézard, M., & Ventura, E. (2025). Memorization and generalization in generative diffusion under the manifold hypothesis. Journal of Statistical Mechanics: Theory and Experiment, 2025(7), Article 073401. https://doi.org/10.1088/1742-5468/ade136
  3. [3]Achilli, B., Ventura, E., Silvestri, G., Pham, B., Raya, G., Krotov, D., Lucibello, C., & Ambrogioni, L. (2024). Losing dimensions: Geometric memorization in generative diffusion. arXiv. https://doi.org/10.48550/arXiv.2410.08727
  4. [4]Ackley, D. H., Hinton, G. E., & Sejnowski, T. J. (1985). A learning algorithm for Boltzmann machines. Cognitive Science, 9(1), 147–169. https://doi.org/10.1016/S0364-0213(85)80012-4
  5. [5]Agliari, E., Alemanno, F., Barra, A., Centonze, M., & Fachechi, A. (2020). Neural networks with a redundant representation: Detecting the undetectable. Physical Review Letters, 124(2), Article 028301. https://doi.org/10.1103/PhysRevLett.124.028301
  6. [6]Agliari, E., & De Marzo, G. (2020). Tolerance versus synaptic noise in dense associative memories. The European Physical Journal Plus, 135(11), Article 883. https://doi.org/10.1140/epjp/s13360-020-00894-8
  7. [7]Albanese, L., Alemanno, F., Alessandrelli, A., & Barra, A. (2022). Replica symmetry breaking in dense Hebbian neural networks. Journal of Statistical Physics, 189(2), Article 24. https://doi.org/10.1007/s10955-022-02966-8
  8. [8]Amari, S.-I. (1972). Learning patterns and pattern sequences by self-organizing nets of threshold elements. IEEE Transactions on Computers, C-21(11), 1197–1206. https://doi.org/10.1109/T-C.1972.223477
  9. [9]Ambrogioni, L. (2024). In search of dispersed memories: Generative diffusion models are associative memory networks. Entropy, 26(5), Article 381. https://doi.org/10.3390/e26050381
  10. [10]Amit, D. J., Gutfreund, H., & Sompolinsky, H. (1985). Storing infinite numbers of patterns in a spin-glass model of neural networks. Physical Review Letters, 55(14), 1530–1533. https://doi.org/10.1103/PhysRevLett.55.1530
  11. [11]Amit, D. J., Gutfreund, H., & Sompolinsky, H. (1987). Statistical mechanics of neural networks near saturation. Annals of Physics, 173(1), 30–67. https://doi.org/10.1016/0003-4916(87)90092-3
  12. [12]Anderson, B. D. O. (1982). Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3), 313–326. https://doi.org/10.1016/0304-4149(82)90051-5
  13. [13]Arjovsky, M., Chintala, S., & Bottou, L. (2017). Wasserstein generative adversarial networks. In Proceedings of the 34th international conference on machine learning (Vol. 70, pp. 214–223). PMLR.
  14. [14]Austin, J., Johnson, D. D., Ho, J., Tarlow, D., & van den Berg, R. (2021). Structured denoising diffusion models in discrete state-spaces. In Advances in neural information processing systems (Vol. 34, pp. 17981–17993). Curran Associates.arxiv.org/abs/2107.03006
  15. [15]Bai, S., Kolter, J. Z., & Koltun, V. (2019). Deep equilibrium models. In Advances in neural information processing systems (Vol. 32). Curran Associates.arxiv.org/abs/1909.01377
  16. [16]Benedetti, M., Ventura, E., Marinari, E., Ruocco, G., & Zamponi, F. (2022). Supervised perceptron learning vs unsupervised Hebbian unlearning: Approaching optimal memory retrieval in Hopfield-like networks. The Journal of Chemical Physics, 156(10), Article 104107. https://doi.org/10.1063/5.0084219
  17. [17]Besag, J. (1974). Spatial interaction and the statistical analysis of lattice systems. Journal of the Royal Statistical Society: Series B (Methodological), 36(2), 192–236. https://doi.org/10.1111/j.2517-6161.1974.tb00999.x
  18. [18]Biroli, G., Bonnaire, T., de Bortoli, V., & Mézard, M. (2024). Dynamical regimes of diffusion models. Nature Communications, 15, Article 9957. https://doi.org/10.1038/s41467-024-54281-3
  19. [19]Biroli, G., & Mézard, M. (2023). Generative diffusion in very large dimensions. Journal of Statistical Mechanics: Theory and Experiment, 2023(9), Article 093402. https://doi.org/10.1088/1742-5468/acf8ba
  20. [20]Blattmann, A., Rombach, R., Ling, H., Dockhorn, T., Kim, S. W., Fidler, S., & Kreis, K. (2023). Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 22563–22575). IEEE.arxiv.org/abs/2304.08818
  21. [21]Bonnaire, T., Urfin, R., Biroli, G., & Mézard, M. (2025). Why diffusion models don’t memorize: The role of implicit dynamical regularization in training. In Advances in neural information processing systems (Vol. 38, pp. 141266–141286). Curran Associates. https://doi.org/10.52202/085713-4720
  22. [22]Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., . . . Amodei, D. (2020). Language models are few-shot learners. In Advances in neural information processing systems (Vol. 33, pp. 1877–1901). Curran Associates.arxiv.org/abs/2005.14165
  23. [23]Brush, S. G. (1967). History of the Lenz–Ising model. Reviews of Modern Physics, 39(4), 883–893. https://doi.org/10.1103/RevModPhys.39.883
  24. [24]Cagnetta, F., Raventós, A., Ganguli, S., & Wyart, M. (2026). Deriving neural scaling laws from the statistics of natural language. In Proceedings of the 43rd international conference on machine learning (Vol. 306, pp. 10450–10480). PMLR.arxiv.org/abs/2602.07488
  25. [25]Campbell, A., Yim, J., Barzilay, R., Rainforth, T., & Jaakkola, T. (2024). Generative flows on discrete state-spaces: Enabling multimodal flows with applications to protein co-design. In Proceedings of the 41st international conference on machine learning (Vol. 235, pp. 5453–5512). PMLR.arxiv.org/abs/2402.04997
  26. [27]Carlini, N., Ippolito, D., Jagielski, M., Lee, K., Tramèr, F., & Zhang, C. (2023). Quantifying memorization across neural language models. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=TatRHT_lcKarxiv.org/abs/2202.07646
  27. [28]Carlini, N., Tramèr, F., Wallace, E., Jagielski, M., Herbert-Voss, A., Lee, K., Roberts, A., Brown, T., Song, D., Erlingsson, Ú., Oprea, A., & Raffel, C. (2021). Extracting training data from large language models. In Proceedings of the 30th USENIX security symposium (pp. 2633–2650). USENIX Association.arxiv.org/abs/2012.07805
  28. [29]Chelba, C., Mikolov, T., Schuster, M., Ge, Q., Brants, T., Koehn, P., & Robinson, T. (2014). One billion word benchmark for measuring progress in statistical language modeling. In Proceedings of Interspeech 2014 (pp. 2635–2639). International Speech Communication Association. https://doi.org/10.21437/Interspeech.2014-564
  29. [30]Chen, R. T. Q., Rubanova, Y., Bettencourt, J., & Duvenaud, D. (2018). Neural ordinary differential equations. In Advances in neural information processing systems (Vol. 31, pp. 6571–6583). Curran Associates.arxiv.org/abs/1806.07366
  30. [31]Chen, N., Zhang, Y., Zen, H., Weiss, R. J., Norouzi, M., & Chan, W. (2021). WaveGrad: Estimating gradients for waveform generation. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=NsMLjcFaO8Oarxiv.org/abs/2009.00713
  31. [32]Cheung, K. F., Atlas, L. E., & Marks, R. J. (1987). Synchronous vs asynchronous behavior of Hopfield’s CAM neural net. Applied Optics, 26(22), 4808–4813. https://doi.org/10.1364/AO.26.004808
  32. [33]Cui, H., Pehlevan, C., & Lu, Y. M. (2025). A solvable model of learning generative diffusion: Theory and insights. In Advances in neural information processing systems (Vol. 38, pp. 5253–5296). Curran Associates. https://doi.org/10.52202/085713-0187
  33. [34]D’Amico, F., Bocchi, D., Del Bono, L. M., Rossi, S., & Negri, M. (2026). Pseudo-likelihood produces associative memories able to generalize, even for asymmetric couplings. Physica A: Statistical Mechanics and its Applications, 692, Article 131497. https://doi.org/10.1016/j.physa.2026.131497
  34. [35]D’Amico, F., Bocchi, D., & Negri, M. (2026). Implicit bias produces neural scaling laws in learning curves, from perceptrons to deep networks. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=qBAV2DEvACarxiv.org/abs/2505.13230
  35. [36]Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., & Kaiser, L. (2019). Universal transformers. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=HyzdRiR9Y7arxiv.org/abs/1807.03819
  36. [37]Demircigil, M., Heusel, J., Löwe, M., Upgang, S., & Vermet, F. (2017). On a model of associative memory with huge storage capacity. Journal of Statistical Physics, 168(2), 288–299. https://doi.org/10.1007/s10955-017-1806-y
  37. [38]Deng, L. (2012). The MNIST database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6), 141–142. https://doi.org/10.1109/MSP.2012.2211477
  38. [39]Deng, Y., Bakhtin, A., Ott, M., Szlam, A., & Ranzato, M. (2020). Residual energy-based models for text generation. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=B114SgHKDHarxiv.org/abs/2004.11714
  39. [40]Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009). ImageNet: A large-scale hierarchical image database. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 248–255). IEEE. https://doi.org/10.1109/CVPR.2009.5206848
  40. [41]Dinh, L., Krueger, D., & Bengio, Y. (2014). NICE: Non-linear independent components estimation. arXiv. https://doi.org/10.48550/arXiv.1410.8516
  41. [42]Dinh, L., Sohl-Dickstein, J., & Bengio, S. (2017). Density estimation using Real NVP. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=HkppbnH9lxarxiv.org/abs/1605.08803
  42. [43]Dormand, J. R., & Prince, P. J. (1980). A family of embedded Runge–Kutta formulae. Journal of Computational and Applied Mathematics, 6(1), 19–26. https://doi.org/10.1016/0771-050X(80)90013-3
  43. [47]Eccles, J. C. (1953). The neurophysiological basis of mind: The principles of neurophysiology. Clarendon Press.
  44. [48]Elman, J. L. (1990). Finding structure in time. Cognitive Science, 14(2), 179–211. https://doi.org/10.1207/s15516709cog1402_1
  45. [49]Farné, G., Boncoraglio, F., & Zdeborová, L. (2026). The rules-and-facts model for simultaneous generalization and memorization in neural networks. arXiv. https://doi.org/10.48550/arXiv.2603.25579
  46. [50]Favero, A., Sclocchi, A., & Wyart, M. (2026). Bigger isn’t always memorizing: Early stopping over-parameterized diffusion models. Transactions on Machine Learning Research. Retrieved November 6, 2026, from https://openreview.net/forum?id=P6r9OxZ1vmarxiv.org/abs/2505.16959
  47. [51]Feldman, V. (2020). Does learning require memorization? A short tale about a long tail. In Proceedings of the 52nd annual ACM SIGACT symposium on theory of computing (pp. 954–959). Association for Computing Machinery. https://doi.org/10.1145/3357713.3384290
  48. [52]Forrest, B. M. (1988). Content-addressability and learning in neural networks. Journal of Physics A: Mathematical and General, 21(1), 245–255. https://doi.org/10.1088/0305-4470/21/1/029
  49. [53]Gardner, E. (1988). The space of interactions in neural network models. Journal of Physics A: Mathematical and General, 21(1), 257–270. https://doi.org/10.1088/0305-4470/21/1/030
  50. [54]Gardner, E., & Derrida, B. (1988). Optimal storage properties of neural network models. Journal of Physics A: Mathematical and General, 21(1), 271–284. https://doi.org/10.1088/0305-4470/21/1/031
  51. [55]Gat, I., Remez, T., Shaul, N., Kreuk, F., Chen, R. T., Synnaeve, G., Adi, Y., & Lipman, Y. (2024). Discrete flow matching. In Advances in neural information processing systems (Vol. 37, pp. 133345–133385). Curran Associates. https://doi.org/10.52202/079017-4239
  52. [56]Geiping, J., McLeish, S., Jain, N., Kirchenbauer, J., Singh, S., Bartoldson, B. R., Kailkhura, B., Bhatele, A., & Goldstein, T. (2025). Scaling up test-time compute with latent reasoning: A recurrent depth approach. In Advances in neural information processing systems (Vol. 38, pp. 41340–41391). Curran Associates. https://doi.org/10.52202/085713-1380
  53. [57]Gelfand, A. E., & Smith, A. F. M. (1990). Sampling-based approaches to calculating marginal densities. Journal of the American Statistical Association, 85(410), 398–409. https://doi.org/10.1080/01621459.1990.10476213
  54. [58]Germain, M., Gregor, K., Murray, I., & Larochelle, H. (2015). MADE: Masked autoencoder for distribution estimation. In Proceedings of the 32nd international conference on machine learning (Vol. 37, pp. 881–889). PMLR.arxiv.org/abs/1502.03509
  55. [59]Gladstone, A., Nanduru, G., Islam, M. M., Han, P., Ha, H., Chadha, A., Du, Y., Ji, H., Li, J., & Iqbal, T. (2026). Energy-based transformers are scalable learners and thinkers. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=ZBj3Qp1bYgarxiv.org/abs/2507.02092
  56. [60]Gradshteyn, I. S., & Ryzhik, I. M. (2014). Table of integrals, series, and products (8th ed.). Academic Press.
  57. [61]Graves, A. (2013). Generating sequences with recurrent neural networks. arXiv. https://doi.org/10.48550/arXiv.1308.0850
  58. [63]Gutmann, M., & Hyvärinen, A. (2010). Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the thirteenth international conference on artificial intelligence and statistics (Vol. 9, pp. 297–304). PMLR.
  59. [65]Hebb, D. O. (1949). The organization of behavior: A neuropsychological theory. Wiley.
  60. [66]Hertz, J., Krogh, A., & Palmer, R. G. (1991). Introduction to the theory of neural computation. Addison-Wesley.
  61. [67]Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., & Hochreiter, S. (2017). GANs trained by a two time-scale update rule converge to a local Nash equilibrium. In Advances in neural information processing systems (Vol. 30, pp. 6626–6637). Curran Associates.arxiv.org/abs/1706.08500
  62. [68]Hinton, G. E. (2002). Training products of experts by minimizing contrastive divergence. Neural Computation, 14(8), 1771–1800. https://doi.org/10.1162/089976602760128018
  63. [71]Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735
  64. [72]Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., de Las Casas, D., Hendricks, L. A., Welbl, J., Clark, A., Hennig​an, T., Noland, E., Millican, K., van den Driessche, G., Damoc, B., Guy, A., Osindero, S., Simonyan, K., Elsen, E., . . . Sifre, L. (2022). An empirical analysis of compute-optimal large language model training. In Advances in neural information processing systems (Vol. 35, pp. 30016–30030). Curran Associates. https://doi.org/10.52202/068431-2176
  65. [73]Hoover, B., Liang, Y., Pham, B., Panda, R., Strobel, H., Chau, D. H., Zaki, M., & Krotov, D. (2023). Energy transformer. In Advances in neural information processing systems (Vol. 36, pp. 27532–27559). Curran Associates. https://doi.org/10.52202/075280-1197
  66. [75]Hopfield, J. J. (1982). Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences, 79(8), 2554–2558. https://doi.org/10.1073/pnas.79.8.2554
  67. [76]Hopfield, J. J. (1984). Neurons with graded response have collective computational properties like those of two-state neurons. Proceedings of the National Academy of Sciences, 81(10), 3088–3092. https://doi.org/10.1073/pnas.81.10.3088
  68. [77]Hopfield, J. J., Feinstein, D. I., & Palmer, R. G. (1983). ‘Unlearning’ has a stabilizing effect in collective memories. Nature, 304(5922), 158–159. https://doi.org/10.1038/304158a0
  69. [78]Hutchinson, M. F. (1990). A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics – Simulation and Computation, 19(2), 433–450. https://doi.org/10.1080/03610919008812866
  70. [79]Hyvärinen, A. (2005). Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6(24), 695–709.DOI
  71. [80]Jeon, D., Kim, D., & No, A. (2025). Understanding and mitigating memorization in generative models via sharpness of probability landscapes. In Proceedings of the 42nd international conference on machine learning (Vol. 267, pp. 27091–27112). PMLR.arxiv.org/abs/2412.04140
  72. [82]Jolicoeur-Martineau, A. (2025). Less is more: Recursive reasoning with tiny networks. arXiv. https://doi.org/10.48550/arXiv.2510.04871
  73. [83]Jordan, M. I. (1997). Serial order: A parallel distributed processing approach. In J. W. Donahoe & V. P. Dorsel (Eds.), Neural-network models of cognition (Vol. 121, pp. 471–495). North-Holland. https://doi.org/10.1016/S0166-4115(97)80111-2
  74. [84]Kadkhodaie, Z., Guth, F., Simoncelli, E. P., & Mallat, S. (2024). Generalization in diffusion models arises from geometry-adaptive harmonic representations. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=ANVmVS2Yr0arxiv.org/abs/2310.02557
  75. [85]Kalaj, S., Lauditi, C., Perugini, G., Lucibello, C., Malatesta, E. M., & Negri, M. (2025). Random features Hopfield networks generalize retrieval to previously unseen examples. Physica A: Statistical Mechanics and its Applications, 678, Article 130946.arxiv.org/abs/2407.05658
  76. [86]Kamb, M., & Ganguli, S. (2025). An analytic theory of creativity in convolutional diffusion models. In Proceedings of the 42nd international conference on machine learning (Vol. 267, pp. 28795–28831). PMLR.arxiv.org/abs/2412.20292
  77. [87]Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020). Scaling laws for neural language models. arXiv. https://doi.org/10.48550/arXiv.2001.08361
  78. [88]Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. In International conference on learning representations. Retrieved November 6, 2026, from https://arxiv.org/abs/1412.6980
  79. [89]Kingma, D. P., & Dhariwal, P. (2018). Glow: Generative flow with invertible 1×1 convolutions. In Advances in neural information processing systems (Vol. 31, pp. 10215–10224). Curran Associates.arxiv.org/abs/1807.03039
  80. [90]Kingma, D. P., & Welling, M. (2014). Auto-encoding variational Bayes. arXiv. https://doi.org/10.48550/arXiv.1312.6114
  81. [91]Kingma, D. P., & Welling, M. (2019). An introduction to variational autoencoders. Foundations and Trends in Machine Learning, 12(4), 307–392. https://doi.org/10.1561/2200000056
  82. [92]Kloeden, P. E., & Platen, E. (1992). Numerical solution of stochastic differential equations. Springer. https://doi.org/10.1007/978-3-662-12616-5
  83. [93]Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., & Iwasawa, Y. (2022). Large language models are zero-shot reasoners. In Advances in neural information processing systems (Vol. 35, pp. 22199–22213). Curran Associates. https://doi.org/10.52202/068431-1613
  84. [94]Kong, Z., Ping, W., Huang, J., Zhao, K., & Catanzaro, B. (2021). DiffWave: A versatile diffusion model for audio synthesis. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=a-xFK8Ymz5Jarxiv.org/abs/2009.09761
  85. [95]Kozachkov, L., Slotine, J.-J., & Krotov, D. (2025). Neuron–astrocyte associative memory. Proceedings of the National Academy of Sciences, 122(21), Article e2417788122. https://doi.org/10.1073/pnas.2417788122
  86. [96]Krizhevsky, A. (2009). Learning multiple layers of features from tiny images [Technical report]. University of Toronto.
  87. [97]Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. In Advances in neural information processing systems (Vol. 25, pp. 1097–1105). Curran Associates.
  88. [98]Krotov, D. (2021). Hierarchical associative memory. arXiv. https://doi.org/10.48550/arXiv.2107.06446
  89. [99]Krotov, D. (2023). A new frontier for Hopfield networks. Nature Reviews Physics, 5, 366–367. https://doi.org/10.1038/s42254-023-00595-y
  90. [100]Krotov, D., Hoover, B., Ram, P., & Pham, B. (2025, July). Modern methods in associative memory [Tutorial]. 42nd International Conference on Machine Learning, Vancouver, Canada.arxiv.org/abs/2507.06211
  91. [101]Krotov, D., & Hopfield, J. J. (2016). Dense associative memory for pattern recognition. In Advances in neural information processing systems (Vol. 29, pp. 1172–1180). Curran Associates.arxiv.org/abs/1606.01164
  92. [102]Krotov, D., & Hopfield, J. (2018). Dense associative memory is robust to adversarial inputs. Neural Computation, 30(12), 3151–3167. https://doi.org/10.1162/neco_a_01143
  93. [103]Krotov, D., & Hopfield, J. J. (2019). Unsupervised learning by competing hidden units. Proceedings of the National Academy of Sciences, 116(16), 7723–7731. https://doi.org/10.1073/pnas.1820458116
  94. [104]Krotov, D., & Hopfield, J. J. (2021). Large associative memory problem in neurobiology and machine learning. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=X4y_10OXhXarxiv.org/abs/2008.06996
  95. [105]Kullback, S., & Leibler, R. A. (1951). On information and sufficiency. The Annals of Mathematical Statistics, 22(1), 79–86. https://doi.org/10.1214/aoms/1177729694
  96. [106]LeCun, Y., Chopra, S., Hadsell, R., Ranzato, M., & Huang, F. J. (2006). A tutorial on energy-based learning. In G. Bakir, T. Hofmann, B. Schölkopf, A. J. Smola, B. Taskar, & S. V. N. Vishwanathan (Eds.), Predicting structured data (pp. 191–246). MIT Press.
  97. [109]Liu, M., Yan, K., Oztekin, B., & Ji, S. (2021). GraphEBM: Molecular graph generation with energy-based models. arXiv. https://doi.org/10.48550/arXiv.2102.00546
  98. [110]Lyapunov, A. M. (1992). The general problem of the stability of motion. International Journal of Control, 55(3), 531–773. https://doi.org/10.1080/00207179208934253
  99. [112]Meehan, C., Chaudhuri, K., & Dasgupta, S. (2020). A three sample hypothesis test for evaluating generative models. In Proceedings of the twenty third international conference on artificial intelligence and statistics (Vol. 108, pp. 3546–3556). PMLR.
  100. [113]Millidge, B., Salvatori, T., Song, Y., Lukasiewicz, T., & Bogacz, R. (2022). Universal Hopfield networks: A general framework for single-shot associative memory models. In Proceedings of the 39th international conference on machine learning (Vol. 162, pp. 15561–15583). PMLR.arxiv.org/abs/2202.04557
  101. [114]Montanari, A., Zhong, Y., & Zhou, K. (2024). Tractability from overparameterization: The example of the negative perceptron. Probability Theory and Related Fields, 188(3–4), 805–910. https://doi.org/10.1007/s00440-023-01248-y
  102. [115]Ngiam, J., Chen, Z., Koh, P. W., & Ng, A. Y. (2011). Learning deep energy models. In Proceedings of the 28th international conference on machine learning (pp. 1105–1112). Omnipress.
  103. [116]Niu, X., Bai, B., Deng, L., & Han, W. (2024). Beyond scaling laws: Understanding transformer performance with associative memory. arXiv. https://doi.org/10.48550/arXiv.2405.08707
  104. [117]Øksendal, B. (1992). Stochastic differential equations: An introduction with applications (3rd ed.). Springer.
  105. [118]Parisi, G. (1981). Correlation functions and computer simulations. Nuclear Physics B, 180(3), 378–384. https://doi.org/10.1016/0550-3213(81)90056-0
  106. [119]Peebles, W., & Xie, S. (2023). Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision (pp. 4195–4205). IEEE.arxiv.org/abs/2212.09748
  107. [120]Pham, B., Hoover, B., Krotov, D., & Ram, P. (2026, April). Energy minimization for training dense associative memory [Paper presentation]. ICLR 2026 Workshop on New Frontiers in Associative Memories, Rio de Janeiro, Brazil. Retrieved November 6, 2026, from https://openreview.net/forum?id=d7PjRsguov
  108. [121]Pham, B., Raya, G., Negri, M., Zaki, M. J., Ambrogioni, L., & Krotov, D. (2026). Emergence of diffusion models from associative memory through memorization and generalization. Nature Communications. https://doi.org/10.1038/s41467-026-78727-y
  109. [122]Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., & Sutskever, I. (2019). Language models are unsupervised multitask learners [Technical report]. OpenAI. Retrieved November 6, 2026, from https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf
  110. [123]Ramsauer, H., Schäfl, B., Lehner, J., Seidl, P., Widrich, M., Gruber, L., Holzleitner, M., Adler, T., Kreil, D., Kopp, M. K., Klambauer, G., Brandstetter, J., & Hochreiter, S. (2021). Hopfield networks is all you need. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=tL89RnziICdarxiv.org/abs/2008.02217
  111. [124]Raya, G., & Ambrogioni, L. (2023). Spontaneous symmetry breaking in generative diffusion models. In Advances in neural information processing systems (Vol. 36, pp. 66377–66389). Curran Associates. https://doi.org/10.52202/075280-2897
  112. [125]Rezende, D., & Mohamed, S. (2015). Variational inference with normalizing flows. In Proceedings of the 32nd international conference on machine learning (Vol. 37, pp. 1530–1538). PMLR.arxiv.org/abs/1505.05770
  113. [126]Rezende, D. J., Mohamed, S., & Wierstra, D. (2014). Stochastic backpropagation and approximate inference in deep generative models. In Proceedings of the 31st international conference on machine learning (Vol. 32, pp. 1278–1286). PMLR.arxiv.org/abs/1401.4082
  114. [127]Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 10684–10695). IEEE.arxiv.org/abs/2112.10752
  115. [128]Rosenblatt, F. (1958). The perceptron: A probabilistic model for information storage and organization in the brain. Psychological Review, 65(6), 386–408. https://doi.org/10.1037/h0042519
  116. [129]Ross, B. L., Kamkari, H., Wu, T., Hosseinzadeh, R., Liu, Z., Stein, G., Cresswell, J. C., & Loaiza-Ganem, G. (2025). A geometric framework for understanding memorization in generative models. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=aZ1gNJu8wOarxiv.org/abs/2411.00113
  117. [130]Saha, B., Krotov, D., Zaki, M. J., & Ram, P. (2023). End-to-end differentiable clustering with associative memories. In Proceedings of the 40th international conference on machine learning (Vol. 202, pp. 29649–29670). PMLR.arxiv.org/abs/2306.03209
  118. [131]Sahoo, S., Arriola, M., Schiff, Y., Gokaslan, A., Marroquin, E., Chiu, J., Rush, A., & Kuleshov, V. (2024). Simple and effective masked diffusion language models. In Advances in neural information processing systems (Vol. 37, pp. 130136–130184). Curran Associates. https://doi.org/10.52202/079017-4135
  119. [132]Sahoo, S. S., Deschenaux, J., Gokaslan, A., Wang, G., Chiu, J. T., & Kuleshov, V. (2025). The diffusion duality. In Proceedings of the 42nd international conference on machine learning (Vol. 267, pp. 52584–52619). PMLR.arxiv.org/abs/2506.10892
  120. [133]Salimans, T., Karpathy, A., Chen, X., & Kingma, D. P. (2017). PixelCNN++: Improving the Pixel-CNN with discretized logistic mixture likelihood and other modifications. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=BJrFC6ceg
  121. [134]Scellier, B., & Bengio, Y. (2017). Equilibrium propagation: Bridging the gap between energy-based models and backpropagation. Frontiers in Computational Neuroscience, 11, Article 24. https://doi.org/10.3389/fncom.2017.00024
  122. [135]Schacter, D. L., & Addis, D. R. (2007). The cognitive neuroscience of constructive memory: Remembering the past and imagining the future. Philosophical Transactions of the Royal Society B: Biological Sciences, 362(1481), 773–786. https://doi.org/10.1098/rstb.2007.2087
  123. [136]Schuhmann, C., Beaumont, R., Vencu, R., Gordon, C., Wightman, R., Cherti, M., Coombes, T., Katta, A., Mullis, C., Wortsman, M., Schramowski, P., Kundurthy, S., Crowson, K., Schmidt, L., Kaczmarczyk, R., & Jitsev, J. (2022). LAION-5B: An open large-scale dataset for training next generation image-text models. In Advances in neural information processing systems (Vol. 35, pp. 25278–25294). Curran Associates. https://doi.org/10.52202/068431-1833
  124. [137]Sebah, P., & Gourdon, X. (2002). Introduction to the gamma function. Numbers, constants and computation. Retrieved November 6, 2026, from http://numbers.computation.free.fr/Constants/constants.html
  125. [138]Simonyan, K., & Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition. arXiv. https://doi.org/10.48550/arXiv.1409.1556
  126. [139]Snell, C., Lee, J., Xu, K., & Kumar, A. (2025). Scaling LLM test-time compute optimally can be more effective than scaling model parameters. arXiv. https://doi.org/10.48550/arXiv.2408.03314
  127. [140]Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., & Ganguli, S. (2015). Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd international conference on machine learning (Vol. 37, pp. 2256–2265). PMLR.
  128. [141]Somepalli, G., Singla, V., Goldblum, M., Geiping, J., & Goldstein, T. (2023a). Diffusion art or digital forgery? Investigating data replication in diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 6048–6058). IEEE.
  129. [143]Song, Y., & Ermon, S. (2019). Generative modeling by estimating gradients of the data distribution. In Advances in neural information processing systems (Vol. 32). Curran Associates.arxiv.org/abs/1907.05600
  130. [144]Song, Y., Garg, S., Shi, J., & Ermon, S. (2019). Sliced score matching: A scalable approach to density and score estimation. In Proceedings of the thirty-fifth conference on uncertainty in artificial intelligence (Vol. 115, pp. 574–584). PMLR.arxiv.org/abs/1905.07088
  131. [145]Song, Y., & Kingma, D. P. (2021). How to train your energy-based models. arXiv. https://doi.org/10.48550/arXiv.2101.03288
  132. [146]Song, J., Meng, C., & Ermon, S. (2021). Denoising diffusion implicit models. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=St1giarCHlParxiv.org/abs/2010.02502
  133. [147]Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., & Poole, B. (2021). Score-based generative modeling through stochastic differential equations. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=PxTIG12RRHSarxiv.org/abs/2011.13456
  134. [148]Soudry, D., Hoffer, E., Nacson, M. S., Gunasekar, S., & Srebro, N. (2018). The implicit bias of gradient descent on separable data. Journal of Machine Learning Research, 19(70), 1–57.arxiv.org/abs/1710.10345
  135. [149]Stanczuk, J. P., Batzolis, G., Deveney, T., & Schönlieb, C.-B. (2024). Diffusion models encode the intrinsic dimension of data manifolds. In Proceedings of the 41st international conference on machine learning (Vol. 235, pp. 46412–46440). PMLR.
  136. [150]Tian, K., Jiang, Y., Yuan, Z., Peng, B., & Wang, L. (2024). Visual autoregressive modeling: Scalable image generation via next-scale prediction. In Advances in neural information processing systems (Vol. 37, pp. 84839–84865). Curran Associates. https://doi.org/10.52202/079017-2694
  137. [151]Tieleman, T. (2008). Training restricted Boltzmann machines using approximations to the likelihood gradient. In Proceedings of the 25th international conference on machine learning (pp. 1064–1071). Association for Computing Machinery. https://doi.org/10.1145/1390156.1390290
  138. [152]van den Burg, G. J. J., & Williams, C. K. I. (2021). On memorization in probabilistic deep generative models. In Advances in neural information processing systems (Vol. 34, pp. 27916–27928). Curran Associates.arxiv.org/abs/2106.03216
  139. [155]Vastola, J. J. (2025). Generalization through variance: How noise shapes inductive biases in diffusion models. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=71Udo8Vuqaarxiv.org/abs/2504.12532
  140. [156]Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems (Vol. 30, pp. 5998–6008). Curran Associates.arxiv.org/abs/1706.03762
  141. [157]Ventura, E., Achilli, B., Silvestri, G., Lucibello, C., & Ambrogioni, L. (2025). Manifolds, random matrices and spectral gaps: The geometric phases of generative diffusion. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=KIN00vQEY2arxiv.org/abs/2410.05898
  142. [158]Vincent, P. (2011). A connection between score matching and denoising autoencoders. Neural Computation, 23(7), 1661–1674. https://doi.org/10.1162/NECO_a_00142
  143. [159]Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., . . . SciPy 1.0 Contributors (2020). SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
  144. [160]von Platen, P., Patil, S., Lozhkov, A., Cuenca, P., Lambert, N., Rasul, K., Davaadorj, M., Nair, D., Paul, S., Berman, W., Xu, Y., Liu, S., & Wolf, T. (2022). Diffusers: State-of-the-art diffusion models [Computer software]. GitHub. Retrieved November 6, 2026, from https://github.com/huggingface/diffusers
  145. [161]Wang, G., Li, J., Sun, Y., Chen, X., Liu, C., Wu, Y., Lu, M., Song, S., & Abbasi Yadkori, Y. (2025). Hierarchical reasoning model. arXiv. https://doi.org/10.48550/arXiv.2506.21734
  146. [162]Webster, R. (2023). A reproducible extraction of training images from diffusion models. arXiv. https://doi.org/10.48550/arXiv.2305.08694
  147. [163]Webster, R., Rabin, J., Simon, L., & Jurie, F. (2023). On the de-duplication of LAION-2B. arXiv. https://doi.org/10.48550/arXiv.2303.12733
  148. [164]Welling, M., & Teh, Y. W. (2011). Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th international conference on machine learning (pp. 681–688). Omnipress.
  149. [165]Wen, Y., Liu, Y., Chen, C., & Lyu, L. (2024). Detecting, explaining, and mitigating memorization in diffusion models. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=84n3UwkH7barxiv.org/abs/2407.21720
  150. [166]Weng, L. (2018, October 13). Flow-based deep generative models. Lil’ Log. Retrieved November 6, 2026, from https://lilianweng.github.io/posts/2018-10-13-flow-models/
  151. [167]Xiao, H., Rasul, K., & Vollgraf, R. (2017). Fashion-MNIST: A novel image dataset for benchmarking machine learning algorithms. arXiv. https://doi.org/10.48550/arXiv.1708.07747
  152. [168]Yoon, T., Choi, J. Y., Kwon, S., & Ryu, E. K. (2023, July). Diffusion probabilistic models generalize when they fail to memorize [Paper presentation]. ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling, Honolulu, HI, United States.
  153. [171]Yuille, A. L., & Rangarajan, A. (2001). The concave-convex procedure (CCCP). In Advances in neural information processing systems (Vol. 14, pp. 1033–1040). MIT Press.
  154. [172]Zhang, C., Bengio, S., Hardt, M., Recht, B., & Vinyals, O. (2017). Understanding deep learning requires rethinking generalization. In International conference on learning representations. OpenReview. Retrieved November 6, 2026, from https://openreview.net/forum?id=Sy8gdB9xxarxiv.org/abs/1611.03530
  155. [173]Zhang, R., Isola, P., Efros, A. A., Shechtman, E., & Wang, O. (2018). The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 586–595). IEEE.arxiv.org/abs/1801.03924

Paper details

vlnc:W_8wb3hpv4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents