On sampling from a log-concave density using kinetic Langevin diffusions

Arnak S. Dalalyan, Lionel Riou-Durand

Introduction

Markov processes and, more particularly, diffusion processes are often used in order to solve the problem of sampling from a given density π\pi. This problem can be formulated as follows. Assume that we are able to generate an arbitrary number of independent standard Gaussian random variables ξ1,…,ξK\xi_{1},\ldots,\xi_{K}. For a given precision level ε>0\varepsilon>0 and a given metric dd on the space of probability measures, the goal is to devise a function FεF_{\varepsilon} such that the distribution νK\nu_{K} of the random variable ϑK=Fε(ξ1,…,ξK)\vartheta_{K}=F_{\varepsilon}(\xi_{1},\ldots,\xi_{K}) satisfies d(μK,π)≤εd(\mu_{K},\pi)\leq\varepsilon. For solving this task, it is often assumed that we can have access to the evaluations of the probability density function of π\pi as well as its derivatives. Among different functions FεF_{\varepsilon} having the aforementioned property, the most interesting are those that require the smallest number of computations.

Discretization of continuous-time Markov processes is a successful generic method for defining update rules. The idea is to start by specifying a continuous-time Markov process, {Lt:t≥0}\{L_{t}:t\geq 0\}, which is provably positive recurrent and has the target π\pi as invariant distribution More generally, one can consider a Markov process having an invariant distribution that is close to π\pi. . The second step is to set-up a suitable time-discretization of the continuous-time process. More precisely, since {Lt}\{L_{t}\} is a Markov process, for any step-size h>0h>0, there is a mapping GG such that Lkh=DG(L(k−1)h,ξk)L_{kh}\stackrel{{\scriptstyle\mathscr{D}}}{{=}}G(L_{(k-1)h},\xi_{k}), k=1,…,Kk=1,\ldots,K, where ξk\xi_{k} is a standard Gaussian random variable independent of L(k−1)hL_{(k-1)h}. This mapping GG might not be available in a closed form. Therefore, the last step is to approximate GG by a tractable mapping GεG_{\varepsilon}. Langevin diffusions are a class of continuous-time Markov processes for which the invariant density is available in closed-form. For this reason, they are suitable candidates for applying the generic approach of the previous paragraph.

where W\boldsymbol{W} is a pp-dimensional standard Brownian motion. The update rule associated to this process, obtained by using the Euler discretization, is given by the equation Gε(L(k−1)h,ξk)=−h∇f(L(k−1)h)+2h ξkG_{\varepsilon}(\boldsymbol{L}_{(k-1)h},\boldsymbol{\xi}_{k})=-h\nabla f(\boldsymbol{L}_{(k-1)h})+\sqrt{2h}\,\boldsymbol{\xi}_{k} with ξk=Dh−1/2(Wkh−W(k−1)h)\boldsymbol{\xi}_{k}\stackrel{{\scriptstyle\mathscr{D}}}{{=}}h^{-1/2}(\boldsymbol{W}_{kh}-\boldsymbol{W}_{(k-1)h}) being a pp-dimension standard Gaussian vector. The resulting approximate sampling method is often called Langevin Monte Carlo (LMC) or Unadjusted Langevin Algorithm (ULA). Its update rule follows from (2) by replacing the function t↦∇f(Lt)t\mapsto\nabla f(\boldsymbol{L}_{t}) by its piecewise constant approximation. Therefore, the behavior of the LMC is governed by the following two characteristics of the continuous-time process: the mixing rate and the smoothness of the sample paths. A quantitative bound on the mixing rate allows us to choose a time horizon TT such that the distribution of the random vector LT\boldsymbol{L}_{T} is within a distance ε/2\varepsilon/2 of the target distribution, whereas the smoothness of sample paths helps us to design a step-size hh so that the distribution of the discretized process at K=T/hK=T/h is within a distance ε/2\varepsilon/2 of the distribution of LT\boldsymbol{L}_{T}. For the LMC, we know that the Langevin diffusion mixes exponentially fast with the precise rate e−mte^{-mt}. In addition, almost all sample paths of L\boldsymbol{L} are Hölder continuous of degree α\alpha, for every α<1/2\alpha<1/2. Combining these properties, it has been shown that it suffices Kε=O((p/ε2)log⁡(p/ε2))K_{\varepsilon}=O((p/\varepsilon^{2})\log(p/\varepsilon^{2})) iterations for the LMC algorithm to achieve an error smaller than ε\varepsilon (both in total-variation and Wasserstein distances); see (Dalalyan 2017b) for the first nonasymptotic result of this type and (Durmus and Moulines 2016; Durmus and Moulines 2017; Dalalyan and Karagulyan 2017) for improved versions of it.

Under the same assumptions on the log-target ff, one can consider the kinetic Langevin diffusion, also known as the second-order Langevin process, defined by

where γ>0\gamma>0 is the friction coefficient and u>0u>0 is the inverse mass. As proved in (Nelson 1967, Theorem 10.1), the highly overdamped Langevin diffusion (2) is obtained as a limit of the rescaled kinetic diffusion Lˉt=Lγt\bar{\boldsymbol{L}}_{t}=\boldsymbol{L}_{\gamma t}, where L\boldsymbol{L} is defined as in (3) with u=1u=1, when the friction coefficient γ\gamma tends to infinity.

This means that under the invariant distribution, the components L\boldsymbol{L} and V\boldsymbol{V} are independent, L\boldsymbol{L} is distributed according to the target π\pi, whereas V/u\boldsymbol{V}/\sqrt{u} is a standard Gaussian vector. Therefore, one can use this process for solving the problem of sampling from π\pi. As discussed above, the quality of the resulting sampler will depend on two key properties of the process: rate of mixing and smoothness of sample paths. The rate of mixing of kinetic diffusions has been recently studied by Eberle et al. 2017 under conditions that are more general than strong convexity of ff. In strongly convex case, a more tractable result has been obtained by Cheng et al. 2017. It establishes that for γ=2\gamma=2 and u=1/Mu=1/M, the mixing rate in the Wasserstein distance is e−(m/2M)te^{-(m/2M)t}; see Theorem 5 in (Cheng et al. 2017). On the other hand, sample paths of the process {L}\{\boldsymbol{L}\} defined in (3) are smooth of order 1+α1+\alpha, for every α∈[0,1/2[\alpha\in[0,1/2[. Combining these two properties, (Cheng et al. 2017) prove that a suitable discretization of (3) leads to a sampler that achieves an error smaller than ε\varepsilon in a number of iterations KK satisfying K=O((p/ε2)1/2log⁡(p/ε))K=O((p/\varepsilon^{2})^{1/2}\log(p/\varepsilon)).

It follows from the discussion of previous paragraphs that the kinetic LMC based on (3) converges faster than the standard LMC based on (2). Furthermore, this improved rate of convergence is mainly due to the higher smoothness of sample paths of the underlying Markov process. The main purpose of the present work is to pursue the investigation of the kinetic Langevin Monte Carlo (KLMC) initiated in (Cheng et al. 2017) by addressing the following questions:

What is the rate of mixing of the continuous-time kinetic Langevin diffusion for general values of the parameters uu and γ\gamma?

Is it possible to improve the rate of convergence of the KLMC by optimizing it over the choice of uu, γ\gamma and the step-size ?

If the function ff happens to have a Lipschitz-continuous Hessian, is it possible to devise a discretization that takes advantage of this additional smoothness and leads to improved rates of convergence?

The rest of the paper is devoted to answering these questions. The rate of mixing for the continuous-time process is discussed in Section 2. In a nutshell, we show that if γ≥(M+m)u\gamma\geq\sqrt{(M+m)u}, then the rate of mixing is of order e−(um/γ)te^{-(um/\gamma)t}. Non-asymptotic guarantees for the KLMC algorithm are stated and discussed in Section 3. They are in the same spirit as those established in (Cheng et al. 2017), but have an improved dependence on the condition number, the ratio of the Lipschitz constant MM and the strong convexity constant mm. Our result has also improved constants and is much less sensitive to the choice of the initial distribution. These improvements are achieved thanks to a more careful analysis of the discretization error of the Langevin process. Finally, we present in Section 4 a new discretization, termed second-order KLMC, of the kinetic Langevin diffusion that exploits the knowledge of the Hessian of ff. Its error, measured in the Wasserstein distance W2W_{2} is shown to be bounded by ε\varepsilon for a number of iterations that scales as (p/ε)1/2(p/\varepsilon)^{1/2}. Thus, we get an improvement of order (1/ε)1/2(1/\varepsilon)^{1/2} over the first-order KLMC algorithm.

Mixing rate of the kinetic Langevin diffusion

Since the process (V,L)(\boldsymbol{V},\boldsymbol{L}) is ergodic, whatever the initial distribution, for large values of tt the distribution of Lt\boldsymbol{L}_{t} is close to the invariant distribution. We want to quantify how fast does this convergence occur. Furthermore, we are interested in a nonasymptotic result in the Wasserstein-Kantorovich distance W2W_{2}, valid for a large set of possible values (γ,u)(\gamma,u).

A first observation is that, without loss of generality, we can focus our attention to the case u=1u=1. This is made formal in the next lemma.

Let (V,L)(\boldsymbol{V},\boldsymbol{L}) be the kinetic Langevin diffusion defined by (3). The modified process (Vˉt,Lˉt)=(u−1/2Vt/u,Lt/u)(\bar{\boldsymbol{V}}_{t},\bar{\boldsymbol{L}}_{t})=(u^{-1/2}\boldsymbol{V}_{t/\sqrt{u}},\boldsymbol{L}_{t/\sqrt{u}}) is an kinetic Langevin diffusion as well with associated parameters γˉ=γ/u\bar{\gamma}=\gamma/\sqrt{u} and uˉ=1\bar{u}=1.

The proof of this result is straightforward and therefore is omitted. Note that it shows that the parameter uu merely represents a time scale (the speed of running over the path of the process L\boldsymbol{L}). Therefore, in the rest of this paper, we will consider the parameter uu to be equal to 1.

More precisely, for every v∈[0,γ/2[v\in[0,\gamma/2[, we have One can observe that (5) can be deduced from (6) by taking v=0v=0.

The proof of this result is postponed to Section 7. Here, we will discuss some consequences of it and present the main ingredient of the proof. First of all, note that this result implies that for γ2>2∨M\gamma^{2}>2\vee M, the operator PtL\mathbf{P}_{t}^{\boldsymbol{L}} is a contraction. The rate of this contraction is characterized by the parameter β\beta. If we optimize the exponent in (6) with respect to vv, we get the optimal rates of contraction reported in Table 1.

If we consider the case γ=2Mu=2M\gamma=2\sqrt{Mu}=2\sqrt{M} previously studied in (Cheng et al. 2017), then the best rate of contraction provided by (6) corresponds to v=M−M−mv=\sqrt{M}-\sqrt{M-m}, and the upper bound of Theorem 1 reads as

One can check that the constant M−M−m\sqrt{M}-\sqrt{M-m} that we obtain within the exponential is optimal, in the sense that one gets exactly this constant in the case where ff is the bivariate quadratic function f(x1,x2)=(m/2)x12+(M/2)x22f(x_{1},x_{2})=(m/2)x_{1}^{2}+(M/2)x_{2}^{2}. This constant is slightly better than the one obtained in (Cheng et al. 2017, Lemma 8) for the particular choice of the time scale u=1/Mu=1/M. Indeed, if we rewrite the two results in the common time-scale u=1u=1, (Cheng et al. 2017, Lemma 8) provides the contraction rate β=m/(2M)\beta=m/(2\sqrt{M}), which is smaller than (but asymptotically equivalent to) M−M−m\sqrt{M}-\sqrt{M-m}.

Another relevant consequence is obtained by instantiating (5) to the case γ≥M+m\gamma\geq\sqrt{M+m}. This leads to the bound

This result is interesting since it allows to optimize the argument of the exponent with respect to γ\gamma for fixed tt. The corresponding optimized constant is m/M+mm/\sqrt{M+m}, which improves on the constant obtained in (7) for γ=2M\gamma=2\sqrt{M}. When M/mM/m becomes large, the improvement factor gets close to 2.

We now describe the main steps of the proof of Theorem 1. The main idea is to consider along with the process (V,L)(\boldsymbol{V},\boldsymbol{L}), another process (V′,L′)(\boldsymbol{V}^{\prime},\boldsymbol{L}^{\prime}) that satisfies the same SDE (3) as (V,L)(\boldsymbol{V},\boldsymbol{L}), with the same Brownian motion but with different initial conditions. One easily checks that

Using the mean value theorem, we infer that for a suitable symmetric matrix Ht\mathbf{H}_{t}, we have ∇f(Lt)−∇f(Lt′)=Ht(Lt−Lt′)\nabla f(\boldsymbol{L}_{t})-\nabla f(\boldsymbol{L}^{\prime}_{t})=\mathbf{H}_{t}(\boldsymbol{L}_{t}-\boldsymbol{L}^{\prime}_{t}). Furthermore, Ht\mathbf{H}_{t} being the Hessian of a strongly convex function satisfies Ht⪰mIp\mathbf{H}_{t}\succeq m\mathbf{I}_{p}. Then, (9) can be rewritten as

In a small neighborhood of any fixed time instance t0t_{0}, (10) is close to a linear differential equation with the associated matrix

It is well-known that the solution of such a differential equation will tend to zero if and only if the real parts of all the eigenvalues of M(t0)\mathbf{M}(t_{0}) are negative. The matrix M(t0)\mathbf{M}(t_{0}) is not symmetric; it is in most cases diagonalizable but its eigenvectors generally depend on t0t_{0}. To circumvent this difficulty, we determine the transformations diagonalizing the surrogate matrix

This yields an invertible matrix P\mathbf{P} such that P−1MP\mathbf{P}^{-1}\mathbf{M}\mathbf{P} is diagonal. We can thus rewrite (10) in the form

Interestingly, we prove that the quadratic form associated with the matrix P−1M(t)P\mathbf{P}^{-1}\mathbf{M}(t)\mathbf{P} is negative definite and this provides the desired result. Furthermore, we use this same matrix P\mathbf{P} for analyzing the discretized version of the kinetic Langevin diffusion and proving the main result of the next section.

Error bound for the KLMC in Wasserstein distance

Let us start this section by recalling the KLMC algorithm, the sampler derived from a suitable time-discretization of the kinetic diffusion, introduced by Cheng et al. 2017. Let us define the sequence of functions ψk\psi_{k} by ψ0(t)=e−γt\psi_{0}(t)=e^{-\gamma t} and ψk+1(t)=∫0tψk(s) ds\psi_{k+1}(t)=\int_{0}^{t}\psi_{k}(s)\,ds. Recall that ff is assumed twice differentiable and, without loss of generality, the parameter uu is assumed to be equal to one. The discretization involves a step-size h>0h>0 and is defined by the following recursion:

where (ξk+1,ξk+1′)(\boldsymbol{\xi}_{k+1},\boldsymbol{\xi}^{\prime}_{k+1}) is a 2p2p-dimensional centered Gaussian vector satisfying the following conditions:

(ξj,ξj′)(\boldsymbol{\xi}_{j},\boldsymbol{\xi}^{\prime}_{j})’s are iid and independent of the initial condition (v0,ϑ0)(\boldsymbol{v}_{0},\boldsymbol{\vartheta}_{0}),

for any fixed jj, the random vectors ((ξj)1,(ξj′)1)\big((\boldsymbol{\xi}_{j})_{1},(\boldsymbol{\xi}^{\prime}_{j})_{1}\big), ((ξj)2,(ξj′)2)\big((\boldsymbol{\xi}_{j})_{2},(\boldsymbol{\xi}^{\prime}_{j})_{2}\big), …\ldots, ((ξj)p,(ξj′)p)\big((\boldsymbol{\xi}_{j})_{p},(\boldsymbol{\xi}^{\prime}_{j})_{p}\big) are iid with the covariance matrix

This recursion may appear surprizing, but one can check that it is obtained by first replacing in (3), on each time interval t∈[kh,(k+1)h]t\in[kh,(k+1)h], the gradient ∇f(Lt)\nabla f(\boldsymbol{L}_{t}) by ∇f(Lkh)\nabla f(\boldsymbol{L}_{kh}), by renaming (Vkh,Lkh)(\boldsymbol{V}_{kh},\boldsymbol{L}_{kh}) into (vk,ϑk)(\boldsymbol{v}_{k},\boldsymbol{\vartheta}_{k}) and by explicitly solving the obtained linear SDE (which leads to an Ornstein-Uhlenbeck process). To the best of our knowledge, the algorithm (12), that we will refer to as KLMC, has been first proposed by Cheng et al. 2017. The next result characterizes its approximation properties.

The proof of this theorem, postponed to Section 8, is inspired by the proof in (Cheng et al. 2017), but with a better control of the discretization error. This allows us to achieve the following improvements as compared to aforementioned paper:

The second term in the upper bound provided by Theorem 2 scales linearly as a function of the condition number ϰ≜M/m\varkappa\triangleq M/m, whereas the corresponding term in (Cheng et al. 2017) scales as ϰ3/2\varkappa^{3/2}.

The impact of the initial distribution ν0\nu_{0} on the overall error of sampling appears only in the first term, which is multiplied by a sequence that has an exponential decay in kk. As a consequence, if we denote by KK the number of iterations sufficient for the error to be smaller than a prescribed level ε\varepsilon, our result leads to an expression of KK in which W2(ν0,π)W_{2}(\nu_{0},\pi) is within a logarithm. Recall that the expression of KK in (Cheng et al. 2017, Theorem 1) scales linearly in W2(ν0,π)W_{2}(\nu_{0},\pi).

The numerical constants of Theorem 2 are much smaller than those of the corresponding result in (Cheng et al. 2017).

In order to ease the comparison of our result to (Cheng et al. 2017, Theorem 1), let us apply Theorem 2 to

and γ=m+M\gamma=\sqrt{m+M}, which corresponds to the tightest upper bound furnished by our theorem. Note that in (Cheng et al. 2017) it is implicitly assumed that p/ε2p/\varepsilon^{2} is large enough so that the second term in the minimum appearing in (14) is smaller than the first term. From (14) we obtain that This value of KK is obtained by choosing hh and KK so that the second term in the upper bound of Theorem 2 is equal to (1−2/24)ϵ(1-\sqrt{2}/24)\epsilon whereas the first term is smaller than (2/24)ϵ(\sqrt{2}/24)\epsilon.

iterations are sufficient for having W2(νK,π)≤εW_{2}(\nu_{K},\pi)\leq\varepsilon. After some simplifications, we get

Remind that the corresponding result in Cheng et al. 2017 requires KK to satisfy This lower bound on KK is obtained by replacing D2≜∥θ0−θ∗∥2\mathcal{D}^{2}\triangleq\|\boldsymbol{\theta}_{0}-\boldsymbol{\theta}^{*}\|_{2} by 0 in (Cheng et al. 2017, Theorem 1).

Thus, the improvement in terms of the number of iterations we obtain is at least by a factor 17ϰ17\sqrt{\varkappa}, whenever κ≤p/(16mε2)\kappa\leq p/(16m\varepsilon^{2}).

It is also helpful to compare the obtained result (16) to the analogous result for the highly overdamped Langevin diffusion (Durmus and Moulines 2016). Using (Durmus et al. 2018, Eq. (22)), one can check that this is enough to choose an integer

such that KLMCK_{\rm LMC} iterations of the LMC algorithm are sufficient to arrive at an error bounded by ε\varepsilon. Comparing (16) and (18), we see that the KLMC is preferable to the LMC when p/(mε2)p/(m\varepsilon^{2}) is large as compared to the condition number ϰ\varkappa. This is typically the case when the dimensionality is high or a high precision approximation is required. The order of preference is reversed when the condition number ϰ\varkappa is large as compared to p/(mε2)p/(m\varepsilon^{2}). Such a situation corresponds to settings where the target log-density ff is nearly flat (mm is small) or has a gradient that may increase very fast (MM is large). As an important conclusion, we can note that none of these two methods is superior to the other in general. The plot in Figure 1 illustrates this fact by showing in gray the regions where LMC outperforms KLMC.

Second-order KLMC and a bound on its error

ψ0,ψ1,ψ2\psi_{0},\psi_{1},\psi_{2} are defined as in the beginning of the previous section,

φk+1(t)=∫0te−γ(t−s)ψk(s) ds\varphi_{k+1}(t)=\int_{0}^{t}e^{-\gamma(t-s)}\psi_{k}(s)\,ds for every t>0t>0,

the 4p4p dimensional random vectors (ξk+1(1),ξk+1(2),ξk+1(3),ξk+1(4))(\boldsymbol{\xi}_{k+1}^{(1)},\boldsymbol{\xi}_{k+1}^{(2)},\boldsymbol{\xi}_{k+1}^{(3)},\boldsymbol{\xi}_{k+1}^{(4)}) are iid Gaussian with zero mean,

for any fixed jj, the 44-dimensional random vectors ([(ξj(1))1,(ξj(2))1,(ξj(3))1,(ξj(4))1]\big([(\boldsymbol{\xi}_{j}^{(1)})_{1},(\boldsymbol{\xi}_{j}^{(2)})_{1},(\boldsymbol{\xi}_{j}^{(3)})_{1},(\boldsymbol{\xi}_{j}^{(4)})_{1}], …\ldots, [(ξj(1))p,(ξj(2))p,(ξj(3))p,(ξj(4))p])[(\boldsymbol{\xi}_{j}^{(1)})_{p},(\boldsymbol{\xi}_{j}^{(2)})_{p},(\boldsymbol{\xi}_{j}^{(3)})_{p},(\boldsymbol{\xi}_{j}^{(4)})_{p}]\big) are iid with the covariance matrix

This definition is somewhat complicated, but it follows from an application of the second-order Taylor approximation to the drift term of the kinetic Langevin diffusion For more detailed explanations, see Section 9.1. At this stage, one can note that if the Hessian Hk\mathbf{H}_{k} is zero, then the update rule (19) boils down to the update rule of the KLMC algorithm in (12). Iterating the update rule (19) we get a random variable that will be henceforth called KLMC2 or second-order kinetic Langevin Monte-Carlo algorithm.

Assume that, for some constants m,M,M2>0m,M,M_{2}>0, the function ff is mm-strongly convex, its gradient is MM-Lipschitz, and its Hessian is M2M_{2}-Lipschitz for the spectral norm. In addition, let the initial condition of the second-order KLMC algorithm be drawn from the product distribution μ=N(0p,Ip)⊗ν0\mu=\mathcal{N}(\mathbf{0}_{p},\mathbf{I}_{p})\otimes\nu_{0}. For every

the distribution νkKLMC2\nu_{k}^{\rm KLMC2} of the kkth iterate ϑkKLMC2\boldsymbol{\vartheta}_{k}^{\rm KLMC2} of the second-order KLMC algorithm (19) satisfies One can see from the proof that e−p/2e^{-p/2} in this inequality can be replaced by the smaller quantity e−m2160M22h2e^{-\frac{m^{2}}{160M_{2}^{2}h^{2}}}.

Several important consequences can be drawn from this result. First, the value of the parameter γ\gamma minimizing the right hand side is its smallest possible value γ=m+M\gamma=\sqrt{m+M}. Second, one can note that the last term of the obtained upper bound is independent of dimension pp and decreases exponentially fast in 1/h1/h. This term is in most cases negligible with respect to the other terms involved in the upper bound. In particular, we deduce from this result that if the Lipschitz constants MM and M2M_{2} are bounded and the strong convexity constant mm is bounded away from zero, then the KLMC2 algorithm achieves the precision level ε\varepsilon after KεK_{\varepsilon} iterations, with KεK_{\varepsilon} being of order p/ε\sqrt{p/\varepsilon}, up to a logarithmic factor. Finally, if we neglect the last term in the upper bound of Theorem 3, and choose the parameters hh and kk so that the other terms are equal to ε/4m\varepsilon/\sqrt{4m}, we get that the number of iteration KεK_{\varepsilon} to achieve an error ε/m\varepsilon/\sqrt{m} scales, up to a logarithmic factor, as M/(mhε)=p ϰ22+p/ε ϰ25/4\sqrt{M}/(mh_{\varepsilon})=\sqrt{p}\,\varkappa_{2}^{2}+\sqrt{p/\varepsilon}\,\varkappa_{2}^{5/4}, where ϰ2=(M22/3+Mp−1/3)/m\varkappa_{2}=(M_{2}^{2/3}+Mp^{-1/3})/m is a version of the condition number taking into account the Hessian-Lipschitz assumption.

It is interesting to compare this result to the convergence result for the LMCO algorithm established in (Dalalyan and Karagulyan 2017). We can note that the number of iterations that are sufficient for the KLMC2 to achieve the error ε\varepsilon is much smaller than the corresponding number for the LMCO: p/ε\sqrt{p/\varepsilon} versus p/εp/\varepsilon. In addition, the KLMC2 algorithm does not need to compute matrix exponentials neither to do matrix inversion. The most costly operations are that of computing the products of the p×pp\times p Hessian and the vectors vk\boldsymbol{v}_{k}, ξk+13\boldsymbol{\xi}_{k+1}^{3} and ξk+13\boldsymbol{\xi}_{k+1}^{3}. In most cases, the complexity of these computations scales linearly in pp.

As a conclusion, to the best of our knowledge, the second-order KLMC algorithm provides the best known convergence rate p/ε\sqrt{p/\varepsilon} for a target density π\pi having a log-density that is concave and Hessian-Lipschitz.

Related work

The idea of using the Langevin diffusion (see (Pavliotis 2014) for an introduction to this topic) for approximating a random variable drawn from its invariant distribution is quite old and can be traced back at least to (Roberts and Tweedie 1996). Since then, many papers focused on analyzing the asymptotic behavior of the Langevin-based methods under various assumptions, see (Lamberton and Pagès 2003; Lamberton and Pagès 2002; Stramer and Tweedie 1999a; Stramer and Tweedie 1999b; Douc et al. 2004; Pillai et al. 2012; Xifara et al. 2014; Roberts and Stramer 2002; Roberts and Rosenthal 1998; Bou-Rabee and Hairer 2013) and the references therein. Convergence to the invariant distribution for Langevin processes is studied in (Desvillettes and Villani 2001; Helffer and Nier 2005; Dolbeault et al. 2015).

Non-asymptotic and computable bounds on the convergence to equilibrium of the kinetic Langevin diffusion have been recently obtained in (Eberle et al. 2017; Cheng et al. 2018; Cheng et al. 2017). While (Cheng et al. 2017) considers only the convex case, (Eberle et al. 2017; Cheng et al. 2018) deal also with nonconvexity. On the one hand, (Cheng et al. 2018) provide results only for a fixed value of parameters (γ,u)=(2,1/M)(\gamma,u)=(2,1/M). On the other hand, if we instantiate results of (Eberle et al. 2017) to the case of convex functions ff, convergence to the invariant density is proved under the condition γ2≥30Mu\gamma^{2}\geq 30Mu. This is to be compared to the conditions of Theorem 1 that establishes exponential convergence as soon as γ2>Mu\gamma^{2}>Mu.

Nonasymptotic bounds on the precision of the Langevin Monte Carlo under strong convexity have been established in (Dalalyan 2017b) and then extended and refined in a series of papers (Durmus and Moulines 2016; Bubeck et al. 2015; Dalalyan 2017a; Cheng and Bartlett 2017; Durmus and Moulines 2017; Brosse et al. 2017; Durmus et al. 2018; Luu et al. 2017; Bernton 2018). Very recently, it was proved in (Dwivedi et al. 2018) that applying a Metropolis-Hastings correction to the LMC leads to improved dependence on the target precision ϵ\epsilon of the number of gradient evaluations. The fact that the discretized version of the kinetic Langevin diffusion may outperform its highly overdamped counterpart was observed and quantified in (Cheng et al. 2017).

Previous work has also studied the precision of Langevin algorithms in the case when the gradient evaluations are contaminated by some noise (Dalalyan 2017a; Dalalyan and Karagulyan 2017; Cheng et al. 2017; Baker et al. 2018; Chatterji et al. 2018) and the relation with stochastic optimization (Raginsky et al. 2017; Zhang et al. 2017; Xu et al. 2017; Dieuleveut et al. 2017). There are certainly many other papers related to the present work that are not mentioned in this section. There is a vast literature on this topic and it will be impossible to quote all the papers. We believe that the papers cited here and the references therein provide a good overview of the state of the art.

Conclusion

In order to summarize the content of the previous sections, let us return, on by one, to the questions raised in the introduction. First, concerning the mixing properties of the kinetic Langevin diffusion for general values of uu and γ\gamma, we have established that as soon as γ2>Mu\gamma^{2}>Mu, the process mixes exponentially fast with a rate at least equal to {mu∧(γ2−Mu)}/γ\{mu\wedge(\gamma^{2}-Mu)\}/\gamma. Therefore, for fixed values of mm, MM and uu, the nearly fastest rate of mixing is obtained for γ2=(m+M)u\gamma^{2}=(m+M)u and is equal to m/m+Mm/\sqrt{m+M}.

To answer the second question, we have seen that optimization with respect to γ\gamma and uu leads to improved constants but does not improve the rate. Indeed, if we use the values of γ\gamma and uu used in (Cheng et al. 2017) (that is γ=2\gamma=2 and u=1/Mu=1/M, which in view of Lemma 1 are equivalent to γ=2M\gamma=2\sqrt{M} and u=1u=1) lead to a bound on the number of iterates sufficient to achieve a precision ε\varepsilon that is of the same order as the optimized one given in (15). Interestingly, our analysis revealed that not only the numerical constants of the result in (Cheng et al. 2017) can be improved, but also the dependence on the condition number ϰ=M/m\varkappa=M/m can be made better. Indeed, we have managed to replace the factor ϰ2\varkappa^{2} by ϰ3/2\varkappa^{3/2}. Such an improvement might have important consequences in generalizing the results to the case of a convex function which is not strongly convex. This line of research will be explored in a future work. Our bound exhibits also a better dependence on the error of the first step: it is logarithmic in our result while it was linear in (Cheng et al. 2017).

Finally, we have given an affirmative answer to the third question. We have shown that leveraging second-order information may reduce the number of steps of the algorithm by a factor proportional to 1/ε1/\sqrt{\varepsilon}, where ε\varepsilon is the target precision. In order to better situate this improvement in the context of prior work, the table below reports the order of magnitude of the number of steps To ease the comparison, we consider ϰ\varkappa as a fixed constant and do not report the dependence on ϰ\varkappa in this table. of Langevin related algorithms in the strongly convex case:

Proof of the mixing rate

This section is devoted to proofs of the results stated in Section 2. Let L0,L0′\boldsymbol{L}_{0},\boldsymbol{L}_{0}^{\prime} and V0\boldsymbol{V}_{0} be three pp-dimensional random vectors defined on the same probability space such that

V0\boldsymbol{V}_{0} is independent of (L0,L0′)(\boldsymbol{L}_{0},\boldsymbol{L}_{0}^{\prime}),

V0∼μ1\boldsymbol{V}_{0}\sim\mu_{1}, whereas L0∼μ2\boldsymbol{L}_{0}\sim\mu_{2} and L0′∼μ2′\boldsymbol{L}^{\prime}_{0}\sim\mu_{2}^{\prime},

W22(μ2,μ2′)=E[∥L0−L0′∥22]W_{2}^{2}(\mu_{2},\mu_{2}^{\prime})=\mathbf{E}[\|\boldsymbol{L}_{0}-\boldsymbol{L}_{0}^{\prime}\|_{2}^{2}].

Let W\boldsymbol{W} be a Brownian motion on the same probability space. We define (V,L)(\boldsymbol{V},\boldsymbol{L}) and (V′,L′)(\boldsymbol{V}^{\prime},\boldsymbol{L}^{\prime}) as kinetic Langevin diffusion processes driven by the same Brownian motion W\boldsymbol{W} and satisfying the initial condition V0′=V0\boldsymbol{V}^{\prime}_{0}=\boldsymbol{V}_{0}. From the definition of the Wasserstein distance, it follows that

In view of this inequality, it suffices to find an appropriate upper bound on the right hand side of the last display, in order to prove Theorem 1. This upper bound is provided below in Proposition 1.

As a consequence, we can see that for γ2≥2(M+m)\gamma^{2}\geq 2(M+m) by setting

We will use the following short hand notations ψt≜(Vt+λ+Lt)−(Vt′+λ+Lt′)\psi_{t}\triangleq(\boldsymbol{V}_{t}+\lambda_{+}\boldsymbol{L}_{t})-(\boldsymbol{V}^{\prime}_{t}+\lambda_{+}\boldsymbol{L}^{\prime}_{t}) and zt≜(−Vt−λ−Lt)+Vt′+λ−Lt′z_{t}\triangleq(-\boldsymbol{V}_{t}-\lambda_{-}\boldsymbol{L}_{t})+\boldsymbol{V}^{\prime}_{t}+\lambda_{-}\boldsymbol{L}^{\prime}_{t}, where λ+\lambda_{+} and λ−\lambda_{-} are two positive numbers such that λ++λ−=γ\lambda_{+}+\lambda_{-}=\gamma and λ+>λ−\lambda_{+}>\lambda_{-}. First note that using Taylor’s theorem with the remainder term in integral form, we get

with Ht≜∫01∇2f(Lt−x(Lt−Lt′))dx\mathbf{H}_{t}\triangleq\int_{0}^{1}\nabla^{2}f(\boldsymbol{L}_{t}-x(\boldsymbol{L}_{t}-\boldsymbol{L}^{\prime}_{t}))dx. In view of this formula and the fact that (V,L)(\boldsymbol{V},\boldsymbol{L}) and (V′,L′)(\boldsymbol{V}^{\prime},\boldsymbol{L}^{\prime}) satisfy the SDE (3), we obtain

In the above inequalities, we have used that λ+−γ=−λ−\lambda_{+}-\gamma=-\lambda_{-}. Similar computations yield

An application of Gronwall’s inequality yields

Since V0=V0′\boldsymbol{V}_{0}=\boldsymbol{V}^{\prime}_{0} and Lt−Lt′=(ψt+zt)/(λ+−λ−)\boldsymbol{L}_{t}-\boldsymbol{L}^{\prime}_{t}=(\psi_{t}+z_{t})/(\lambda_{+}-\lambda_{-}), we get

and the claim of the proposition follows. ∎

Proof of the convergence of the first-order KLMC

This section contains the complete proof of Theorem 2. We first write

where μ∗=N(0p,Ip)⊗π\mu^{*}=\mathcal{N}(\mathbf{0}_{p},\mathbf{I}_{p})\otimes\pi and μ∗PkhL\mu^{*}\mathbf{P}^{\boldsymbol{L}}_{kh} is the distribution In other words, μ∗PkhL\mu^{*}\mathbf{P}^{\boldsymbol{L}}_{kh} is the first marginal of the distribution μ∗Pkh(L,V)\mu^{*}\mathbf{P}^{(\boldsymbol{L},\boldsymbol{V})}_{kh}, the last notation being standard in the theory of Markov processes. of the kinetic Langevin process L\boldsymbol{L} at time instant khkh when the initial condition of this process is drawn from μ∗\mu^{*}. In order to upper bound the term in the right hand side of the last display, we introduce the discretized version of the kinetic Langevin diffusion: (V~0,L~0)∼μ(\widetilde{\boldsymbol{V}}_{0},\widetilde{\boldsymbol{L}}_{0})\sim\mu and for every j=0,1,…,kj=0,1,\ldots,k and for every t∈]jh,(j+1)h]t\in]jh,(j+1)h],

We stress that W\boldsymbol{W} in the above formula is the same Brownian motion as the one used for defining the process (V,L)(\boldsymbol{V},\boldsymbol{L}). Furthermore, we choose V~0=V0\widetilde{\boldsymbol{V}}_{0}=\boldsymbol{V}_{0} and (L0,L~0)(\boldsymbol{L}_{0},\widetilde{\boldsymbol{L}}_{0}) so that

The process (V~,L~)(\widetilde{\boldsymbol{V}},\widetilde{\boldsymbol{L}}) realizes the synchronous coupling between the sequences {(vj,ϑj);j=0,…,k}\{(\boldsymbol{v}_{j},\boldsymbol{\vartheta}_{j});j=0,\ldots,k\} and {(Vjh,Ljh);j=0,…,k}\{(\boldsymbol{V}_{jh},\boldsymbol{L}_{jh});j=0,\ldots,k\}. Indeed, one easily checks by mathematical induction that (V~jh,L~jh)(\widetilde{\boldsymbol{V}}_{jh},\widetilde{\boldsymbol{L}}_{jh}) has exactly the same distribution as the vector (vj,ϑj)(\boldsymbol{v}_{j},\boldsymbol{\vartheta}_{j}). Therefore, we have

Let P\mathbf{P} be the matrix used in the proof of the contraction in continuous time for v=0v=0, that is

where in the last inequality we have used the contraction established in continuous time. For the first norm in the right hand side of the last display, we use the fact that the considered processes (V′,L′)(\boldsymbol{V}^{\prime},\boldsymbol{L}^{\prime}) and (V~,L~)(\widetilde{\boldsymbol{V}},\widetilde{\boldsymbol{L}}) have the same value at the time instant jhjh. Therefore,

which implies that ∥[Ip, 0p]P∥=1\|[\mathbf{I}_{p},\ \mathbf{0}_{p}]\mathbf{P}\|=1. This completes the proof of the lemma. ∎

From this lemma and previous inequalities, we infer that

Choosing h≤1/(4γ)h\leq 1/(4\gamma), we arrive at

Combining this inequality and (44), for every h≤m/(4γM)h\leq m/(4\gamma M), we get

Using the inequality e−x≤1−x+12x2e^{-x}\leq 1-x+\frac{1}{2}x^{2}, we can derive from (65) that

Unfolding this recursive inequality, we arrive at

Finally, one easily checks that A0=γW2(ν0,π)A_{0}=\gamma W_{2}(\nu_{0},\pi) and

Putting all these pieces together, we arrive at

Proofs for the second-order discretization of the kinetic Langevin diffusion

We start this section by providing some explanations on the definition of the KLMC2 algorithm. We turn then to the proof of Theorem 3.

Recall that the kinetic diffusion is given by the equation

From (74), by integration by parts, we can deduce that

Fubini’s Theorem and a change of variables yield

If the function ff is twice continuously differentiable, then, for small values of ss, the value ∇f(Ls)\nabla f(\boldsymbol{L}_{s}) appearing in (77) can be approximated by an affine function of Ls\boldsymbol{L}_{s}:

From the above approximation, we can infer that

In the last step of the above equation, we have used that

Combining the last approximation and the diffusion equation (77), we arrive at

This approximation will be used for defining the discretized version of the process V\boldsymbol{V}. In order to define the discretized version of L\boldsymbol{L}, we will simply use the plug-in approximation of V\boldsymbol{V}, and then integrate. This leads to

2 Proof of Theorem 3

Recall that we have defined in Section 4 the following functions

We first evaluate the error of one iteration of the KLMC2 algorithm. To this end, we introduce the processes

We need an auxiliary process, denoted by (V^,L^)(\widehat{\boldsymbol{V}},\widehat{\boldsymbol{L}}), which at time 0 coincides with (V,L)(\boldsymbol{V},\boldsymbol{L}) but evolves according to exactly the same dynamics as (V~,L~)(\widetilde{\boldsymbol{V}},\widetilde{\boldsymbol{L}}).

Assume that, for some constants m,M,M2>0m,M,M_{2}>0, the function ff is mm-strongly convex, its gradient is MM-Lipschitz, and its Hessian is M2M_{2}-Lipschitz for the spectral norm. If the parameter γ\gamma and the step size tt of the kinetic Langevin diffusion are such that

From the definition of P−1\mathbf{P}^{-1}, we compute

Recall that ψ1(t)=∫0te−γ(t−s)ds\psi_{1}(t)=\int_{0}^{t}e^{-\gamma(t-s)}ds, ψ2(t)=∫0tse−γ(t−s)ds\psi_{2}(t)=\int_{0}^{t}se^{-\gamma(t-s)}ds and

This yields the following convenient re-writing of the first integral

Now, we replace Vr\boldsymbol{V}_{r} by its explicit expression

Summing the two expressions allows some terms to cancel out leading to

where we have used the stationarity of the process Vr\boldsymbol{V}_{r}. Since V0\boldsymbol{V}_{0} is standard Gaussian, we get E[∥V0∥24]=p2+2p\mathbf{E}\left[\|\boldsymbol{V}_{0}\|_{2}^{4}\right]=p^{2}+2p.

In the same way, Minkowski’s inequality in its integral version yields

The bound for process L−L^\boldsymbol{L}-\widehat{\boldsymbol{L}} follows from Minkowski’s inequality combined with the bound just proven:

The claim of the proposition follows from the assumption γt≤1/5\gamma t\leq 1/5 and that

The next, perhaps the most important, step of the proof is to assess the distance between the random vectors (V^t,L^t)(\widehat{\boldsymbol{V}}_{t},\widehat{\boldsymbol{L}}_{t}) and (V~t,L~t)(\widetilde{\boldsymbol{V}}_{t},\widetilde{\boldsymbol{L}}_{t}).

Assume that, for some constants m,M,M2>0m,M,M_{2}>0, the function ff is mm-strongly convex, its gradient is MM-Lipschitz, and its Hessian is M2M_{2}-Lipschitz for the spectral norm. If the parameter γ\gamma and the step size tt of the kinetic Langevin diffusion satisfy the inequalities

then, for the (2p)×(2p)(2p)\times(2p) matrix P\mathbf{P} defined in (103), and for every a≥5pa\geq 5p, it holds

Step 1: After change of basis, the new discretized process rewrites:

By Minkowski’s inequality and the definition of P−1\mathbf{P}^{-1}, we get

Therefore, ξ2(t)≤t2/2\xi_{2}(t)\leq t^{2}/\sqrt{2}.

Step 2: We give an upper bound for the following spectral norm

where α=max⁡(1−M/γ2,3M/γ2−1)\alpha=\max(1-M/\gamma^{2},3M/\gamma^{2}-1).

Since ∇2f(L~0)\nabla^{2}f(\widetilde{\boldsymbol{L}}_{0}) and H0\mathbf{H}_{0} are both upper bounded by MIpM\mathbf{I}_{p} and 0≤ψ2(t)≤φ2(t)≤φ2(t)+γφ3(t)≤t2/20\leq\psi_{2}(t)\leq\varphi_{2}(t)\leq\varphi_{2}(t)+\gamma\varphi_{3}(t)\leq t^{2}/2, we get

Taylor’s expansion ensures that t−γt2/2≤ψ1(t)≤tt-\gamma t^{2}/2\leq\psi_{1}(t)\leq t and, therefore,

Finally, we use the condition t≤1/(5γϰ)t\leq 1/(5\gamma\varkappa) to bound ρt\rho_{t} by 1−mt/(2γ)1-mt/(2\gamma).

Since mIp≼∇2f(x)≼MIpm\mathbf{I}_{p}\preccurlyeq\nabla^{2}f(x)\preccurlyeq M\mathbf{I}_{p}, combined with the fact that the Hessian is M2M_{2}-Lipschitz, we get

Using the obvious inequality ∥V0∥22≤a+(∥V0∥22−a)+\|\boldsymbol{V}_{0}\|_{2}^{2}\leq a+(\|\boldsymbol{V}_{0}\|_{2}^{2}-a)_{+}, for every a>0a>0, this implies that

where inequality (1) is valid for every a≥5pa\geq 5p according to well-known bounds on the χ2\chi^{2} distribution; see for instance (Collier and Dalalyan 2017, Lemmas 5-6). Finally, recall that

Taking square roots yields the claim of the proposition. ∎

The last piece of the proof is the following proposition.

Assume that, for some constants m,M,M2>0m,M,M_{2}>0, the function ff is mm-strongly convex, its gradient is MM-Lipschitz, and its Hessian is M2M_{2}-Lipschitz for the spectral norm. If the parameter γ\gamma and the step size hh of the kinetic Langevin diffusion satisfy the inequalities

By Proposition 2 and Proposition 3, we thus have

Assuming that a=m/(4M2h)≥5p\sqrt{a}=m/(4M_{2}h)\geq\sqrt{5p} and unfolding the last recursion, we get

This is exactly the claim of the proposition. ∎

To complete the proof of Theorem 3, we need to do some simple algebra. First of all, using the relations

as well as the inequality p2+2p≤2p2p^{2}+2p\leq 2p^{2} (since p≥2p\geq 2), we arrive at

Acknowledgments

The work of AD was partially supported by the grant Investissements d’Avenir (ANR-11-IDEX-0003/Labex Ecodec/ANR-11-LABX-0047).

References