Supriya Ghosh (Editor)

Metropolis adjusted Langevin algorithm

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In computational statistics, the Metropolis-adjusted Langevin algorithm (MALA) is a Markov chain Monte Carlo (MCMC) method for obtaining random samples – sequences of random observations – from a probability distribution for which direct sampling is difficult. As the name suggests, MALA uses a combination of two mechanisms to generate the states of a random walk that has the target probability distribution as an invariant measure:

  • new states are proposed using (overdamped) Langevin dynamics, which use evaluations of the gradient of the target probability density function;
  • these proposals are accepted or rejected using the Metropolis–Hastings algorithm, which uses evaluations of the target probability density (but not its gradient).
  • Informally, the Langevin dynamics drive the random walk towards regions of high probability in the manner of a gradient flow, while the Metropolis–Hastings accept/reject mechanism improves the mixing and convergence properties of this random walk. MALA was originally proposed by Roberts and Rosenthal in 1998, and many variations and refinements have been introduced since then, e.g. the manifold variant of Girolami and Calderhead (2011).

    Further details

    Let π denote a probability density function on R d , one from which it is desired to draw an ensemble of independent and identically distributed samples. We consider the overdamped Langevin Itô diffusion

    X ˙ = log π ( X ) + 2 W ˙

    driven by the time derivative of a standard Brownian motion W . (Note that another commonly-used normalisation for this diffusion is

    X ˙ = 1 2 log π ( X ) + W ˙ ,

    which generates the same dynamics.) In the limit as t , this probability distribution ρ ( t ) of X ( t ) approaches a stationary distribution, which is also invariant under the diffusion, which we denote ρ . It turns out that, in fact, ρ = π .

    Approximate sample paths of the Langevin diffusion can be generated by many discrete-time methods. One of the simplest is the Euler–Maruyama method with a fixed time step τ > 0 . We set X 0 := x 0 and then recursively define an approximation X k to the true solution X ( k τ ) by

    X k + 1 := X k + τ log π ( X k ) + 2 τ ξ k ,

    where each ξ k is an independent draw from a multivariate normal distribution on R d with mean 0 and covariance matrix equal to the d × d identity matrix. Note that X k + 1 is normally distributed with mean X k + τ log π ( X k ) and covariance equal to 2 τ times the d × d identity matrix.

    In contrast to the Euler–Maruyama method for simulating the Langevin diffusion, which always updates X k according to the update rule

    X k + 1 := X k + τ log π ( X k ) + 2 τ ξ k ,

    MALA incorporates an additional step. We consider the above update rule as defining a proposal X ~ k + 1 for a new state,

    X ~ k + 1 := X k + τ log π ( X k ) + 2 τ ξ k .

    This proposal is accepted or rejected according to the Metropolis–Hastings algorithm: set

    α := min { 1 , π ( X ~ k + 1 ) q ( X k X ~ k + 1 ) π ( X k ) q ( X ~ k + 1 X k ) } ,

    where

    q ( x x ) exp ( 1 4 τ x x τ log π ( x ) 2 2 )

    is the transition probability density from x to x (note that, in general q ( x x ) q ( x x ) ). Let u be drawn from the continuous uniform distribution on the interval [ 0 , 1 ] . If u α , then the proposal is accepted, and we set X k + 1 := X ~ k + 1 ; otherwise, the proposal is rejected, and we set X k + 1 := X k .

    The combined dynamics of the Langevin diffusion and the Metropolis–Hastings algorithm satisfy the detailed balance conditions necessary for the existence of a unique, invariant, stationary distribution ρ = π . Compared to naive Metropolis–Hastings, MALA has the advantage that it usually proposes moves into regions of higher π probability, which are then more likely to be accepted. On the other hand, when π is strongly anisotropic (i.e. it varies much more quickly in some directions than others), it is necessary to take 0 < τ 1 in order to properly capture the Langevin dynamics; the use of a positive-definite preconditioning matrix A R d × d can help to alleviate this problem, by generating proposals according to

    X ~ k + 1 := X k + τ A log π ( X k ) + 2 τ A ξ k ,

    so that X ~ k + 1 has mean X k + τ A log π ( X k ) and covariance 2 τ A .

    References

    Metropolis-adjusted Langevin algorithm Wikipedia