Partition Function

Chapter 17 Probability & information

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

Open Chapter 17 companion →

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.

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs

Animated GIF (256×256 px)
GIF 256×256 px Copy GIF URL
Animated GIF (128×128 px)
GIF 128×128 px Copy GIF URL
Animated GIF (64×64 px)
GIF 64×64 px Copy GIF URL