Energy-based model
An energy-based model (EBM), also called Canonical Ensemble Learning (CEL) or Learning via Canonical Ensemble (LCE), is an application of canonical ensemble formulation from statistical physics for learning from data.[src] The approach prominently appears in generative AI.[src] EBMs provide a unified framework for many probabilistic and non-probabilistic approaches to such learning, particularly for training graphical and other structured models.[src] An EBM learns the characteristics of a target dataset and generates a similar but larger dataset.[src] EBMs detect the latent variables of a dataset and generate new datasets with a similar distribution.[src] Energy-based generative neural networks is a class of generative models, which aim to learn explicit probability distributions of data in the form of energy-based models, the energy functions of which are parameterized by modern deep neural networks.[src] Boltzmann machines are a special form of energy-based models with a specific parametrization of the energy.[src]
An energy-based model (EBM), also called Canonical Ensemble Learning (CEL) or Learning via Canonical Ensemble (LCE), is an application of canonical ensemble formulation from statistical physics for learning from data.[src] The approach prominently appears in generative AI.[src] EBMs provide a unified framework for many probabilistic and non-probabilistic approaches to such learning, particularly for training graphical and other structured models.[src] An EBM learns the characteristics of a target dataset and generates a similar but larger dataset.[src] EBMs detect the latent variables of a dataset and generate new datasets with a similar distribution.[src] Energy-based generative neural networks is a class of generative models, which aim to learn explicit probability distributions of data in the form of energy-based models, the energy functions of which are parameterized by modern deep neural networks.[src] Boltzmann machines are a special form of energy-based models with a specific parametrization of the energy.[src] ==Description== For a given input x , the model describes an energy E_\theta(x) such that the Boltzmann distribution P_\theta(x)={e^{-\beta E_\theta(x)}\over Z(\theta)} is a probability (density), and typically \beta=1 .[src] Since the normalization constant: Z(\theta):=\int_{x \in X} e^{-\beta E_\theta(x)} dx (also known as the partition function) depends on all the Boltzmann factors of all possible inputs x , it cannot be easily computed or reliably estimated during training simply using standard maximum likelihood estimation.[src] However, for maximizing the likelihood during training, the gradient of the log-likelihood of a single training example x is given by using the chain rule: \partial_\theta \log\left(P_\theta(x)\right)=\mathbb{E}_{x'\sim P_\theta}[\partial_\theta E_\theta(x')]-\partial_\theta E_\theta(x) \, (*) The expectation in the above formula for the gradient can be approximately estimated by drawing samples x' from the distribution P_\theta using Markov chain Monte Carlo (MCMC).[src] Early energy-based models, such as the 2003 Boltzmann machine by Hinton, estimated this expectation via blocked Gibbs sampling.[src] Newer approaches make use of more efficient Stochastic Gradient Langevin Dynamics (LD), drawing samples using: x_0' \sim P_0, x_{i+1}' = x_i' - \frac{\alpha}{2}\frac{\partial E_\theta(x_i') }{\partial x_i'} +\epsilon , where \epsilon \sim \mathcal{N}(0,\alpha) .[src] A replay buffer of past values x_i' is used with LD to initialize the optimization module.[src] The parameters \theta of the neural network are therefore trained in a generative manner via MCMC-based maximum likelihood estimation: the learning process follows an "analysis by synthesis" scheme, where within each learning iteration, the algorithm samples the synthesized examples from the current model by a gradient-based MCMC method (e.g., Langevin dynamics or Hybrid Monte Carlo), and then updates the parameters \theta based on the difference between the training examples and the synthesized ones – see equation (*) .[src] This process can be interpreted as an alternating mode seeking and mode shifting process, and also has an adversarial interpretation.[src] Essentially, the model learns a function E_\theta that associates low energies to correct values, and higher energies to incorrect values.[src] After training, given a converged energy model E_\theta , the Metropolis–Hastings algorithm can be used to draw new samples.[src] The acceptance probability is given by: P_{acc}(x_i \to x^*)=\min\left(1, \frac{P_\theta(x^*)}{P_\theta(x_i)}\right).[src] === Joint energy-based models=== Joint energy-based models (JEM), proposed in 2020 by Grathwohl et al., allow any classifier with softmax output to be interpreted as energy-based model.[src] The key observation is that such a classifier is trained to predict the conditional probability p_\theta(y | x)=\frac{e^{\vec{f}_\theta(x)[y]}}{\sum_{j=1}^K e^{\vec{f}_\theta(x)[j]}} \ \ \text{ for } y = 1, \dotsc, K \text{ and } \vec{f}_\theta = (f_1, \dotsc, f_K) \in \R^K, where \vec{f}_\theta(x)[y] is the y-th index of the logits \vec{f} corresponding to class y.[src] Without any change to the logits it was proposed to reinterpret the logits to describe a joint probability density: p_\theta(y,x)=\frac{e^{\vec{f}_\theta(x)[y]}}{Z(\theta)}, with unknown partition function Z(\theta) and energy E_\theta (x, y)=-f_\theta(x)[y] .[src] By marginalization, we obtain the unnormalized density p_\theta(x)=\sum_y p_\theta(y,x)= \sum_y \frac{e^{\vec{f}_\theta(x)[y]}}{Z(\theta)}=:e^{-E_\theta(x)}, therefore, E_\theta(x)=-\log\left(\sum_y \frac{e^{\vec{f}_\theta(x)[y]}}{Z(\theta)}\right), so that any classifier can be used to define an energy function E_\theta(x) .[src]
29 sentences · 29 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Energy-based model." encyclopegia.org, 2026, https://encyclopegia.org/wiki/energy-based-model. Accessed 03 December 2026.
Chicago
"Energy-based model." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/energy-based-model.
APA
encyclopegia.org. (2026). Energy-based model. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/energy-based-model
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON