Mathematics for AI and Machine Learning

Foundations for modern AI and machine learning

Score Field

Chapter 17 Dynamics & diffusion

Chapter 17: Score Function and Energy-Based Models — Motivation: From Density to Geometry; Score vs Density (also appears in Ch. 18)

From the book

Chapter 17: Score Function and Energy-Based Models — Motivation: From Density to Geometry; Score vs Density (also appears in Ch. 18). The passage below is adapted from the manuscript discussion of Score Field. Look in § Motivation: From Density to Geometry; Score vs Density and the surrounding mind-map node "Score vs Density: Visualizing Vector Fields" when reading the print/PDF edition.

Figure local-information in Chapter 17 contrasts samples from an unknown mixture with the score field ∇_x log p(x) for the same distribution. Observations give local information near data points, but the normalization constant Z remains inaccessible. The score field, drawn as vectors over the density, encodes how log-probability changes locally at every location—and this gradient does not depend on Z. Geometrically, the score points toward higher density, its magnitude measures steepness, and zeros mark extrema. For a bivariate Gaussian the field is radial toward the mean; for a mixture it becomes a weighted blend of component score fields, producing multiple attractors near each mode. Section Score vs Density lists why this vector field is attractive for high-dimensional modeling: it is normalization-free, local, geometric, and directly usable for sampling via Langevin dynamics (developed further in Chapter 18).

What this drawing shows

What you see. Visualizes ∇_x log p(x) as arrows over a density landscape.

In the mind map. Chapter 17 — Score vs Density: Visualizing Vector Fields. See From the book above for definitions, figures, and worked examples.

Also appears in Ch. 18 (Score-Based Sampling Algos).

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 Score vs Density: Visualizing Vector Fields.

This concept is also referenced in Chapter 18 (Score-Based Sampling Algos).

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