Physics gave us a powerful idea: systems drift toward their lowest energy state. A ball rolls downhill, a molecule settles into its lowest-energy conformation, a magnet aligns its spins. Energy-based models (EBMs) borrow exactly this intuition and hand it to a neural network.
The recipe is simple. Define an energy function that maps any data point to a real number — a scalar "badness score." The corresponding probability is
where is the partition function — a normalizing constant that makes everything sum to 1. This is the Boltzmann distribution, the same formula statistical mechanics uses for a gas in thermal equilibrium.
The catch: is almost always intractable. Computing it would require integrating over the entire input space, which is exponentially large or even continuous and infinite-dimensional. EBMs sidestep this by never computing directly. Instead they learn to push energy down on real data and push it up everywhere else — and they sample from the model using Markov chain Monte Carlo (MCMC), most elegantly via Langevin dynamics.
The result is a remarkably flexible family of models. Unlike neural network training pipelines that insist on an explicit likelihood, EBMs can impose arbitrary structure on the energy function and still define a valid (if unnormalized) probability distribution over any space.
Comments
Loading comments...