SGLD

Chapter 18 Dynamics & diffusion

Chapter 18: Langevin Dynamics and Sampling — SGLD

From the book

Chapter 18: Langevin Dynamics and Sampling. In the chapter mind map this icon labels SGLD: Mini-Batch Langevin, Bayesian Neural Networks. The discussion below is excerpted and lightly edited from § Stochastic Gradient Langevin Dynamics (SGLD) in Mathematics for AI and Machine Learning.

Langevin dynamics needs the gradient of the log-density at every iteration. When the target is a posterior over parameters given a large dataset, this gradient is a sum over all data points, expensive to compute in full and unavailable for streaming data. Stochastic Gradient Langevin Dynamics (SGLD) replaces it with a mini-batch estimate, the gradient on a random mini-batch rescaled to estimate the full sum; the mini-batch noise adds to the injected Langevin noise.

What this drawing shows

What you see. Mini-batch gradient (green) drives a noisy Langevin chain (purple); animation extends the sample path with drift (blue) plus noise (red) steps.

In the mind map. Chapter 18 — SGLD: Mini-Batch Langevin, Bayesian Neural Networks. 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 SGLD: Mini-Batch Langevin, Bayesian Neural Networks.

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