A Langevin sampling algorithm inspired by the Adam optimizer

We present a framework for adaptive-stepsize MCMC sampling based on time-rescaled Langevin dynamics, in which the stepsize variation is dynamically driven by an additional degree of freedom which facilitates accumulation of a moving average of a local monitor function. This approach provides for precise control of the timestep while circumventing the need to modify the drift term in the physical system. The algorithm is straightforward to implement and can be readily combined with any off-the-peg fixed-stepsize Langevin integrator. As a particular example, we consider control of the stepsize by monitoring the norm of the log-posterior gradient, which takes inspiration from the Adam optimizer, the stepsize being automatically reduced in regions of steep change of the log posterior and increased on plateaus, improving numerical stability and convergence speed. As in Adam, the stepsize variation depends on the recent history of the monitor function, which enhances stability and improves accuracy compared to more immediate control approaches. We demonstrate the potential benefit of this method–both in accuracy and in stability–in numerical experiments including Neal's funnel and a Bayesian neural network for classification of MNIST data.

Authors

Institutions

Publication Details

Journal
ACM transactions on probabilistic machine learning.
Published
2026-04-01
DOI
https://doi.org/10.1145/3806203
Primary Topic
Markov Chains and Monte Carlo Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Langevin sampling algorithm inspired by the Adam optimizer

Benedict Leimkuhler, René Lohmann, Peter A. Whalley
ACM transactions on probabilistic machine learning.
Markov Chains and Monte Carlo Methods
article

A Langevin sampling algorithm inspired by the Adam optimizer

Benedict Leimkuhler, René Lohmann, Peter A. Whalley
article en

Abstract

We present a framework for adaptive-stepsize MCMC sampling based on time-rescaled Langevin dynamics, in which the stepsize variation is dynamically driven by an additional degree of freedom which facilitates accumulation of a moving average of a local monitor function. This approach provides for precise control of the timestep while circumventing the need to modify the drift term in the physical system. The algorithm is straightforward to implement and can be readily combined with any off-the-peg fixed-stepsize Langevin integrator. As a particular example, we consider control of the stepsize by monitoring the norm of the log-posterior gradient, which takes inspiration from the Adam optimizer, the stepsize being automatically reduced in regions of steep change of the log posterior and increased on plateaus, improving numerical stability and convergence speed. As in Adam, the stepsize variation depends on the recent history of the monitor function, which enhances stability and improves accuracy compared to more immediate control approaches. We demonstrate the potential benefit of this method–both in accuracy and in stability–in numerical experiments including Neal's funnel and a Bayesian neural network for classification of MNIST data.

ACM transactions on probabilistic machine learning.
ETH Zurich (CH), University of Edinburgh (GB)
Peace, Justice and strong institutions
Openalex Percentile: Top 22%
Markov Chains and Monte Carlo Methods
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.