Langevin Step

Chapter 18 Dynamics & diffusion

Chapter 18: Langevin Dynamics and Sampling — ULA

From the book

Chapter 18: Langevin Dynamics and Sampling. In the chapter mind map this icon labels ULA: $\mathbf{x}_{k+1} = \mathbf{x}_k + \eta\,\mathbf{s} + \sqrt{2\eta}\,\epsilon$. The discussion below is excerpted and lightly edited from § Discrete Langevin Dynamics - ULA in Mathematics for AI and Machine Learning.

Given a score function $\mathbf{s}(\mathbf{x})$, the Langevin update is

  • $\eta > 0$ is the step size (the learning rate in optimization)
  • $\mathbf{s}(\mathbf{x}_k) = \nabla_{\mathbf{x}} \log p(\mathbf{x}_k)$ is the score at the current point
  • $\boldsymbol\epsilon_k \sim \mathcal{N}(\mathbf{0}, I)$ is independent Gaussian noise, scaled by $\sqrt{2\eta}$ so that each step adds variance $2\eta$ per coordinate

This algorithm is the Unadjusted Langevin Algorithm (ULA); "unadjusted" means that there is no Metropolis–Hastings accept/reject step (compare MALA below).

What this drawing shows

What you see. Single Langevin update from $x_k$: dashed blue drift along $\nabla\log p$ versus red step that adds a noise kick beyond the drift target.

In the mind map. Chapter 18 — ULA. See From the book above for definitions, figures, and worked examples.

Where to read next

Open Chapter 18 companion →

Read the full definitions, figures, and worked examples in Chapter 18: Langevin Dynamics and Sampling — see the mind-map node ULA.

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