An energy defines a density
The topic Sampling unnormalized densities: MALA and HMC sampled a density known only up to its normalizer: Langevin dynamics, MALA and HMC need nothing but . There the energy was given. Here it gets parameters and is learned from data.
Take any network with one scalar output and call it the energy. An energy-based model (EBM) turns it into a density:
Low energy means high density. The normalizer is called the partition function. For it equals , and is .
Nothing restricts . A flow had to be invertible, keep the dimension and have a cheap Jacobian (see The change of variables); an energy can be any convolutional network.
The price is . It is an integral over all of . Even a crude grid with 10 values per pixel on a image has nodes. What survives without it are comparisons. As in the previous topic, the normalizer cancels in a ratio of densities:
So the model can say which of two images is more plausible, and by how much. It cannot say how likely one image is on its own, and it cannot produce an image directly.