Partition Function
Chapter 17: Score Function and Energy-Based Models — Partition Function Z
From the book
Chapter 17: Score Function and Energy-Based Models. In the chapter mind map this icon labels Partition Function Z. The discussion below is excerpted and lightly edited from § Partition Function Z in Mathematics for AI and Machine Learning.
Write any density as $p(\mathbf{x}) = f(\mathbf{x})/Z$ with $Z = \int f(\mathbf{x})\, d\mathbf{x}$. Then
because $\log Z$ does not depend on $\mathbf{x}$. The gradient of the log-density does not depend on the normalization constant, even when $Z$ is intractable. For an EBM, $f(\mathbf{x}) = \exp(-E_\theta(\mathbf{x}))$, so
The score of an EBM is the negative gradient of its energy function, and $Z_\theta$ never has to be evaluated, even in dimensions where the integral is out of reach.
What this drawing shows
What you see. Integration domain $\int e^{-E}\,dx$ fills in while $Z$ stays intractable, highlighting normalization of energy-based models.
In the mind map. Chapter 17 — Partition Function Z. See From the book above for definitions, figures, and worked examples.
Where to read next
Read the full definitions, figures, and worked examples in Chapter 17: Score Function and Energy-Based Models — see the mind-map node Partition Function Z.