Stochastic Runge-Kutta Accelerates Langevin Monte Carlo and Beyond
Xuechen Li, Denny Wu, Lester Mackey, Murat A. Erdogdu
Introduction
Sampling from a probability distribution is a fundamental problem that arises in machine learning, statistics, and optimization. In many situations, the goal is to obtain samples from a target distribution given only the unnormalized density . A prominent approach to this problem is the method of Markov chain Monte Carlo (MCMC), where an ergodic Markov chain is simulated so that iterates converge exactly or approximately to the distribution of interest .
MCMC samplers based on numerically integrating continuous-time dynamics have proven very useful due to their ability to accommodate a stochastic gradient oracle . Moreover, when used as optimizations algorithms, these methods can deliver strong theoretical guarantees in non-convex settings . A popular example in this regime is the unadjusted Langevin Monte Carlo (LMC) algorithm . Fast mixing of LMC is inherited from exponential Wasserstein decay of the Langevin diffusion, and numerical integration using the Euler-Maruyama scheme with a sufficiently small step size ensures the Markov chain tracks the diffusion. Asymptotic guarantees of this algorithm are well-studied , and non-asymptotic analyses specifying explicit constants in convergence bounds were recently conducted .
Our contributions can be summarized as follows:
We provide a broadly applicable theorem for establishing convergence rates of sampling algorithms based on discretizing Itô diffusions exhibiting exponential Wasserstein-2 contraction to the target invariant measure. The convergence rate is explicitly expressed in terms of the contraction rate of the diffusion and local properties of the numerical scheme, both of which can be easily derived.
We provide examples and numerical studies of sampling from both convex and non-convex potentials with SRK methods and show they lead to better stability and lower asymptotic errors.
The convergence analyses of sampling using the overdamped and underdamped Langevin diffusion were extended to the non-convex setting . For the Langevin diffusion, the most common assumption on the potential is strong convexity outside a ball of finite radius, in addition to Lipschitz smoothness and twice differentiability . More generally, Vempala and Wibisono showed that convergence in the KL divergence of LMC can be derived assuming a log-Sobolev inequality on the target measure. For general Itô diffusions, the notion of distant dissipativity is used to study convergence to target measures with non-convex potentials in the -Wasserstein distance. Different from these works, our non-convex convergence analysis, due to conducted in , requires the slightly stronger uniform dissipativity condition . In optimization, non-asymptotic results for stochastic gradient Langevin dynamics and its variants have been established for non-convex objectives .
Sampling with Discretized Diffusions
We study the problem of sampling from a target distribution with the help of a candidate Itô diffusion given as the solution to the following stochastic differential equation (SDE):
It is straightforward to verify (2) for the above diffusion which implies that the target is its invariant measure. Moreover, strong convexity of implies uniform dissipativity and ensures that the diffusion achieves fast convergence.
In practice, the Itô diffusion (1) (similarly (3)) cannot be simulated in continuous time and is instead approximated by a discrete-time numerical integration scheme. Owing to its simplicity, a common choice is the Euler-Maruyama (EM) scheme , which relies on the following update rule,
where denotes the th column of . Then, applying Itô’s lemma to the integral form of the SDE (1) with the starting point yields the following expansion around :
The expansion justifies the update rule of the EM scheme, since the discretization is nothing more than taking the first three terms on the right hand side of (6). Similarly, a mean-square order 1.0 SRK scheme for general Itô diffusions – introduced in Section 4.2 – approximates the first four terms. In principle, one may recursively apply Itô’s lemma to terms in the expansion to obtain a more fine-grained approximation. However, the appearance of non-Gaussian terms in the guise of iterated Brownian integrals presents a challenge for simulation. Nevertheless, it is clear that the above SRK scheme will be a more accurate local approximation than the EM scheme, due to accounting more terms in the expansion. As a result, the local deviation between the continuous-time process and Markov chain will be smaller. We characterize this property of a numerical scheme as follows.
Convergence Rates of Numerical Schemes for Sampling
We present a user-friendly and broadly applicable theorem that establishes the convergence rate of a diffusion-based sampling algorithm. We develop our explicit bounds in the -Wasserstein distance based on two crucial steps. We first verify that the candidate diffusion exhibits exponential Wasserstein-2 contraction and thereafter compute the uniform local deviation orders of the scheme.
where denotes the distribution of the diffusion starting from . Moreover, if for some , then we say the diffusion has exponential -contraction.
The above condition guarantees fast mixing of the sampling algorithm. For Itô diffusions, uniform dissipativity suffices to ensure exponential -contraction [24, Prop. 3.3].
A diffusion defined by (1) is -uniformly dissipative if
For Itô diffusions with a constant diffusion coefficient, uniform dissipativity is equivalent to one-sided Lipschitz continuity of the drift with coefficient . In particular, for the overdamped Langevin diffusion (3), this reduces to strong convexity of the potential. Moreover, for this special case, exponential -contraction of the diffusion and strong convexity of the potential are equivalent . We will ultimately verify uniform dissipativity for the candidate diffusions, but we first use -contraction to derive the convergence rate of a diffusion-based sampling algorithm.
For a diffusion with invariant measure , exponentially contracting -rate , and Lipschitz drift and diffusion coefficients, suppose its discretization based on a numerical integration scheme has uniform local deviation orders where and . Let be the measure associated with the Markov chain obtained from the discretization after steps starting from the dirac measure . Then, for constant step size satisfying
where is the step size constraint for obtaining the uniform local deviation orders, we have
Moreover, if and the step size additionally satisfies
Theorem 1 directly translates mean-square order results in the SDE literature to convergence rates of sampling algorithms in . The proof deferred to Appendix A follows from an inductive argument over the local deviation at each step (see e.g. ), and the convergence is provided by the exponential -contraction of the diffusion. To invoke the theorem and obtain convergence rates of a sampling algorithm, it suffices to (i) show that the candidate diffusion is uniformly dissipative and (ii) derive the local deviation orders for the underlying discretization. Below, we demonstrate this on both the overdamped Langevin and general Itô diffusions when the EM scheme is used for discretization, as well as the underdamped Langevin diffusion when a linearization is used for discretization . For these schemes, local deviation orders are either well-known or straightforward to derive. Thus, convergence rates for corresponding sampling algorithms can be easily obtained using Theorem 1.
Consider sampling from a target distribution whose potential is strongly convex using the underdamped Langevin diffusion:
Cheng et al. show that the continuous-time process exhibits exponential -contraction when the coefficients and are appropriately chosen [8, Thm. 5]. Moreover, the scheme devised by linearizing the degenerate SDE for the augmented state has uniform local deviation orders Cheng et al. derive the uniform local mean-square deviation order. Jensen’s inequality implies that the local mean deviation is of the same uniform order. This entails uniform local deviation orders are and hence also when step size constraint ; note is required to invoke Theorem 1. [8, Thm. 9]. Theorem 1 implies that the convergence rate is , where the dimension dependence is extracted from explicit bounds. This recovers the result by Cheng et al. [8, Thm. 1].
Since the first version of this paper appeared on arXiv, several new schemes were devised in the literature. We include the example of deriving the convergence rate for the recently proposed randomized midpoint method . This example demonstrates that Theorem 1 can also be applied to schemes that include additional randomness which is independent of that of the Brownian motion.
Shen and Lee discretize the underdamped Langevin diffusion with a variant of the midpoint method, where the midpoint is computed with the linearization scheme at a random time uniformly selected in . It can be shown that the local mean-square deviation order is the same as that of the one-step linearization scheme [56, Lem. 2]. However, one sees that the local mean deviation order improves by inspecting the following bound
While computing the local deviation orders of a numerical scheme for a single step is often straightforward, it is not immediately clear how one might verify them uniformly for each iteration. This requires a uniform bound on moments of the Markov chain defined by the numerical scheme. As our second principal contribution, we explicitly bound the Markov chain moments of SRK schemes which, combined with Theorem 1, leads to improved rates by only accessing the first-order oracle.
Sampling with Stochastic Runge-Kutta and Improved Rates
We show that convergence rates of sampling can be significantly improved if an Itô diffusion with exponential -contraction is discretized using SRK methods. Compared to the EM scheme, SRK schemes we consider query the same order oracle and improve on the deviation orders.
Theorem 1 hints that one may expect the convergence rate of sampling to improve as more terms of the Itô-Taylor expansion are incorporated in the numerical integration scheme. However, in practice, a challenge for simulation is the appearance of non-Gaussian terms in the form of iterated Itô integrals. Fortunately, since the overdamped Langevin diffusion has a constant diffusion coefficient, efficient SRK methods can still be applied to accelerate convergence.
The proof of this theorem is given in Appendix B where we provide explicit constants. The basic idea of the proof is to match up the terms in the Itô-Taylor expansion to terms in the Taylor expansion of the discretization scheme. However, extreme care is needed to ensure a tight dimension dependence.
For large-scale Bayesian inference, computing the full gradient of the potential can be costly. Fortunately, for SRK-LD, the convergence rate is retained when we replace the first-order oracle with an unbiased stochastic one, provided queries of the latter have a variance not overly large. We provide an informal discussion in Appendix E.
2 Sampling from Non-Convex Potentials with Itô Diffusions
For the Langevin diffusion, the conclusions of Theorem 1 only apply to distributions with strongly convex potentials, as exponential -contraction of the Langevin diffusion is equivalent to strong convexity of the potential. This shortcoming can be addressed using a non-constant diffusion coefficient which allows us to sample from non-convex potentials using uniformly dissipative candidate diffusions. Below, we use a mean-square order 1.0 SRK scheme for general diffusions and achieve an improved convergence rate compared to sampling with the EM scheme.
We refer to the sampling algorithm as SRK-ID, which has the following update rule:
In practice, accurately simulating both the iterated Itô integrals and the Brownian motion increments simultaneously is difficult. We comment on two possible approximations based on truncating an infinite series in Appendix H.2.
Examples and Numerical Studies
We provide examples of our theory and numerical studies showing SRK methods achieve lower asymptotic errors, are stable under large step sizes, and hence converge faster to a prescribed tolerance. We sample from strongly convex potentials with SRK-LD and non-convex potentials with SRK-ID. Since our theory is in , we compare with EM on and mean squared error (MSE) between iterates of the Markov chain and the target. We do not compare to schemes that require computing derivatives of the drift and diffusion coefficients. Since directly computing is infeasible, we estimate it using samples instead. However, sample-based estimators have a bias of order , so we perform a heuristic correction whose description is in Appendix G.
We consider sampling from a multivariate Gaussian mixture with density
The potential is strongly convex and has Lipschitz gradient and Hessian . One can also verify that it has a Lipschitz third derivative.
To obtain the potential, we generate data from the model with the parameter following . To obtain each , we sample a vector whose components are independently drawn from the Rademacher distribution and normalize it by the Frobenius norm of the sample matrix times . Note that our normalization scheme is different from that adopted in , where each is normalized by its Euclidean norm. We sample the corresponding from the model and fix the regularizer .
To characterize the true posterior, we sample 50k particles driven by EM with a step size of until convergence. We subsample from these particles 5k examples to represent the true posterior each time we intend to estimate squared . We monitor the kernel Stein discrepancy Unfortunately, there appear to be two definitions for KSD and the energy distance in the literature, differing in whether a square root is taken or not. We adopt the version with the square root taken. (KSD) using the inverse multiquadratic kernel with hyperparameters and to measure the distance between the 100k particles and the true posterior. We confirm that these particles faithfully approximate the true posterior with the squared KSD being less than in all settings.
When sampling from a Gaussian mixture and the posterior of BLR, we observe that SRK-LD leads to a consistent improvement in the asymptotic error compared to the EM scheme when the same step size is used. In particular, Figure 1 (a) plots the estimated asymptotic error in squared of different step sizes for 2D and 20D Gaussian mixture problems and shows that SRK-LD is surprisingly stable for exceptionally large step sizes. Figure 1 (b) plots the estimated error in squared as the number of iterations increases for 2D BLR. We include additional results on problems in 2D and 20D with error estimates in squared and the energy distance along with a wall time analysis in Appendix H.
2 Non-Convex Potentials
We consider sampling from the non-convex potential
where are scalar parameters of the distribution. The corresponding density is a simplified abstraction for the posterior distribution of Student’s t regression with a pseudo-Huber prior . One can verify that when and , the Hessian has a negative eigenvalue. The candidate diffusion, where the drift coefficient is given by (2) and diffusion coefficient with g(x)=\bigl{(}\beta+\|x\|_{2}^{2}\bigr{)}^{1/2}, is uniformly dissipative if . Indeed, one can verify that , , and . Therefore,
Moreover, and have Lipschitz first two derivatives, and the latter satisfies the sublinear growth condition in Theorem 3.
To study the behavior of SRK-ID, we simulate using both SRK-ID and EM. For both schemes, we simulate with a step size of initiated from the same 50k particles approximating the stationary distribution obtained by simulating EM with a step size of until convergence. We compute the MSE between the continuous-time process and the Markov chain with the same Brownian motion for iterations when we observe the MSE curve plateaus. We approximate the continuous-time process by simulating using the EM scheme with a step size of similar to the setting in . To obtain final results, we average across ten independent runs. We note that the MSE upper bounds due to the latter being an infimum over all couplings. Hence, the MSE value serves as an indication of the convergence performance in .
Figure 1 (c) shows that for , and , when simulating from a good approximation to the target distribution with the same step size, the MSE of SRK-ID remains small, whereas the MSE of EM converges to a larger value. However, this improvement diminishes as the dimensionality of the sampling problem increases. We report additional results with other parameter settings in Appendix H.2.2. Notably, we did not observe significant differences in the estimated squared values. We suspect this is due to the discrepancy being dominated by the bias of our estimator.
Discussion
We established convergence rates of samplings algorithm obtained by discretizing Itô diffusions with exponential -contraction based on local properties of numerical schemes. The user-friendly conditions promote one to derive rates based on the uniform orders of the local deviation. In addition, we showed that discretizing diffusions with SRK schemes leads to improved rates in for both strongly convex potentials and a certain class of non-convex potentials.
Despite focusing on SRK methods, Theorem 1 can be used to obtain convergence rates for other classes of schemes. For the underdamped Langevin diffusion, quasi-symplectic schemes that rely on Runge-Kutta-type updates can achieve mean-square order 2.0 and beyond . For general Itô diffusions, there exist schemes of mean-square order 1.5 and beyond, using the Fourier-Legendre series to approximate the Lévy area .
Compared to some existing proofs for convergence rates in (e.g. [8, Thm. 1]), our Theorem 1 requires two conditions (the uniform local mean and mean-square deviation bounds), neither of which can be eliminated in order to obtain a tight convergence bound. The uniform local mean deviation appears in our proof due to a direct expansion of the squared -norm. This can be thought of a natural consequence of our convergence bounds being based on . An avenue of interest is to see whether additional conditions can be identified to obtain refined bounds in for even integer .
Another direction of interest is to relax the -contraction condition on the diffusion to -contraction or -decay. This would enable us to leverage results based on distant dissipativity, and consequently allow us to sample from a wider class of non-convex potentials . Orthogonally, for the overdamped Langevin diffusion, the -contraction condition may be relaxed to a log-Sobolev inequality condition on the target measure, if the discretization analysis is adapted to be based on the KL divergence . This would also broaden the class of non-convex potentials from which we can sample with theoretical guarantees.
Parallel to studying sampling from a mean-square convergence aspect, works in numerical analysis have established convergence results in the weak sense for SRK schemes applied to ergodic SDEs with techniques as aromatic trees and B-series . However, moment bounds in these works are proven by generic arguments (see e.g. [46, Lem. 2.2.2]), and reasoning about the rate’s dimension dependence becomes less obvious. Refined non-asymptotic convergence bounds would provide more insight for these algorithms’ performance on practical problems.
Lastly, the convergence results in for SRK-LD and SRK-ID can be augmented to yield generalization bounds for optimization when the excess risk is characterized using the Gibbs distribution .
Acknowledgments
We thank Mufan Li for insightful discussions, and Jimmy Ba, David Duvenaud and Taiji Suzuki for helpful comments on an early draft of this work. We also thank anonymous reviewers for helpful suggestions. MAE is partially funded by NSERC and CIFAR AI Chairs program at Vector Institute.
References
Appendix A Proof of Theorem 1
Let denote the continuous-time process defined by the SDE (1) initiated from the target stationary distribution, driven by the Brownian motion . Since the continuous-time transition kernel preserves the stationary distribution, the marginal distribution of remains to be the stationary distribution for all .
This we can achieve due to exponential -contraction. We define the process as follows
For , by Young’s inequality, Jensen’s inequality, and Itô isometry,
By the integral form of Grönwall’s inequality for continuous functions,
Combining (13) (17) and (18), by the Cauchy-Schwarz inequality,
Let . Then, by the Cauchy–Schwarz inequality, we obtain a recursion
where the third to last inequality follows from when , and the second to last inequality follows from the elementary relation below with the choice of
Let . By unrolling the recursion,
Let and be the measures associated with the th iterate of the Markov chain and the target distribution, respectively. Since is defined as an infimum over all couplings,
To ensure is less than some small positive tolerance , we need only ensure the two terms in the above inequality are each less than . Some simple calculations show that it suffices that
Note that for small enough positive tolerance , when the step size satisfies (34), it suffices that
Appendix B Proof of Theorem 2
Verifying the order conditions in Theorem 1 for SRK-LD requires bounding the second, fourth, and sixth moments of the Markov chain. In principle, one may employ an exponential moment bound argument using a Lyapunov function. However, in this case, the tightness of the final convergence bound may depend on the selection of the Lyapunov function, and reasoning about the dimension dependence can become less obvious. Here, we directly bound all the even moments by expanding the expression. Intuitively, one expects the th moments of the Markov chain iterates to be . The following proofs assume Lipschitz smoothness of the potential to a certain order and dissipativity.
For constants , the diffusion satisfies the following
For the Langevin diffusion, dissipativity directly follows from strong convexity of the potential . Here, can be chosen as the strong convexity parameter, provided is an appropriate constant of order .
Additionally, we assume the discretization has a constant step size and the timestamp of the th iterate is as per the proof of Theorem 1. To simplify notation, we define the following
If the second moment of the initial iterate is finite, then the second moments of Markov chain iterates defined in (11) are uniformly bounded by a constant of order , i.e.
where and .
Additionally, by the Cauchy-Schwarz inequality,
Combining (35) and (36), we obtain the following using AM–GM,
where and .
Additionally, by Stein’s lemma for multivariate Gaussians,
Therefore, by dissipativity and the lower bound (37),
Notice the second equality above also implies
By Taylor’s Theorem with the remainder in integral form,
Since is Lipschitz, is bounded, and
Therefore, for ,
where .
Putting things together, for , we obtain
For , by unrolling the recursion, we obtain the following
B.1.2 2n2𝑛2nth Moment Bound
and constants to are given in the proof, if the step size
Our proof is by induction. The base case is given in Lemma 4. For the inductive case, we prove that the th moment is uniformly bounded by a constant of order , assuming the th moment is uniformly bounded by a constant of order .
Now, we bound the expectation of using (42),
where .
Next, we bound the expectation of . By the Cauchy–Schwarz inequality,
where the second to last inequality follows from Young’s inequality for products with three variables.
Since does not depend on the dimension, let
In the following, we bound the expectations of and separately. By Young’s inequality for products and the function being concave on the positive domain,
Thus, when , by (43) and (48),
B.2 Local Deviation Orders
We first provide two lemmas on bounding the second and fourth moments of the change in the continuous-time process. These will be used later when we verify the order conditions.
Suppose is the continuous-time process defined by (3) initiated from some iterate of the Markov chain defined by (11), then the second moment of is uniformly bounded by a constant of order , i.e.
where .
Suppose is the continuous-time process defined by (3) initiated from some iterate of the Markov chain defined by (11), then
where .
Suppose is the continuous-time process defined by (3) initiated from some iterate of the Markov chain defined by (11), then the fourth moment of is uniformly bounded by a constant of order , i.e.
where .
By Itô’s lemma, dissipativity, and Lemma 6,
Suppose is the continuous-time process defined by (3) initiated from some iterate of the Markov chain defined by (11), then
where .
Since the two processes share the same Brownian motion,
We bound the second moment of by bounding those of , , and separately. For , by the Cauchy–Schwarz inequality,
Next, we characterize the terms in the Markov chain update. By Taylor’s theorem,
Using the above information, we bound the second moments of and ,
B.2.2 Local Mean Deviation
The proof is similiar to that of Lemma 10 with slight variations on truncating the expansions. Recall since the two processes share the same Brownian motion,
By Taylor’s theorem with the remainder in integral form,
Now, we show the following equality in a component-wise manner,
To see this, recall that odd moments of the Brownian motion is zero. So, for each ,
Adding the previous two equations together, we obtain the desired equality (53).
Next, we bound the second moments of and . For , recall from the proof of Lemma 10,
We bound the sixth moments of , and using , and the closed form moments of a chi-squared random variable with degrees of freedom ,
Now, we bound the second moments of and using the derived sixth-moment bounds,
B.3 Invoking Theorem 1
Now, we invoke Theorem 1 with our derived constants. We obtain that if the constant step size
Appendix C Proof of Theorem 3
Verifying the order conditions in Theorem 1 for SRK-ID requires bounding the second and fourth moments of the Markov chain.
The following proofs only assume Lipschitz smoothness of the drift coefficient and diffusion coefficient to a certain order and a generalized notion of dissipativity for Itô diffusions.
For constants , the diffusion satisfies the following
For general Itô diffusions, dissipativity directly follows from uniform dissipativity, where is an appropriate constant of order . Additionally, we assume the discretization has a constant step size and the timestamp of the th iterate is as per the proof of Theorem 1. To simplify notation, we rewrite the update as
Let . If is a matrix-valued process, and is a -dimensional Brownian motion, both of which are adapted to the filtration such that for some fixed , the following relation holds
In particular, equality holds when .
The above theorem can be proved directly using Itô’s lemma and Itô isometry, with the help of Hölder’s inequality. The theorem can also be seen as a natural consequence of the Burkholder-Davis-Gundy Inequality .
Let even integer . Then, the following relation holds
By Taylor’s Theorem with the remainder in integral form,
To prove the following moment bound lemmas for SRK-ID, we recall a standard quadratic moment bound result whose proof we omit and provide a reference of.
If the second moment of the initial iterate is finite, then the second moments of Markov chain iterates defined in (12) are uniformly bounded, i.e.
and constants and are given in the proof, if the constant step size
We bound the remaining terms by direct computation. By linear growth,
Putting things together, for ,
Unrolling the recursion gives the following for
C.1.2 2n2𝑛2nth Moment Bound
Before bounding the th moments, we first generalize Lemma 14 to arbitrary even moments.
The remaining follows easily from Lemma 31. ∎
Our proof is by induction. The base case is given in Lemma 16. For the inductive case, we prove that the th moment is uniformly bounded by a constant, assuming the th moment is uniformly bounded by a constant.
and with slight abuse of notation, we hide the explicit dependence on for the exponents
Note that . Since , we may cancel out the factor in some of the terms. One can verify that the only remaining term that is -dependent is
Using this information, Lemma 17, Lemma 15, the Cauchy–Schwarz inequality, and ,
By the inductive hypothesis, (55) and (56), and , we obtain the recursion
For , by unrolling the recursion, we obtain
C.2 Local Deviation Orders
In this section, we verify the local deviation orders for SRK-ID. The proofs are again by matching up terms in the Itô-Taylor expansion of the continuous-time process to terms in the Taylor expansion of the numerical integration scheme. Extra care needs to be taken for a tight dimension dependence.
Suppose is the continuous-time process defined by (1) initiated from some iterate of the Markov chain defined by (12), then the second moment of is uniformly bounded, i.e.
where .
Suppose is the continuous-time process defined by (1) initiated from some iterate of the Markov chain defined by (12), then
To bound the fourth moment of change in continuous-time, we use the following lemma.
Assuming is the solution to the SDE (1), under the condition that the drift coefficient and diffusion coefficient are Lipschitz. If satisfies the following sublinear growth condition
and the diffusion is dissipative, then for , we have the following relation
where the (infinitesimal) generator is defined as
and the constant .
By definition of the generator and dissipativity,
We define the following shorthand notation
Putting things together, we obtain the following bound
where . ∎
Suppose is the continuous-time process defined by (1) initiated from some iterate of the Markov chain defined by (12), then the fourth moment of is uniformly bounded, i.e.
where .
By Dynkin’s formula applied to the function and Lemma 21,
Suppose is the continuous-time process defined by (1) from some iterate of the Markov chain defined by (12), then
Recall the operators and () defined in (5). By Itô’s lemma,
By Taylor’s theorem with the remainder in integral form,
By Itô isometry and the Cauchy-Schwarz inequality,
Now, we bound the second moments of and ,
Combining (71), (72), (73), (74), and (80),
C.2.2 Local Mean Deviation
Recall the operators and () defined in (5). By Itô’s lemma,
Now, we bound the second moments of and ,
Now, we bound the second moment of the difference between and ,
C.3 Invoking Theorem 1
Now, we invoke Theorem 1 with our derived constants. We obtain that if the constant step size
Appendix D Convergence Rate for Example 2
Verifying the order conditions in Theorem 1 of the EM scheme for uniformly dissipative diffusions requires bounding the second moments of the Markov chain. Recall, dissipativity (Definition C.1) follows from uniform dissipativity of the Itô diffusion.
If the second moment of the initial iterate is finite, then the second moments of Markov chain iterates defined in (4) are uniformly bounded, i.e.
By odd moments of Gaussian variables being zero and the step size condition,
D.2 Local Deviation Orders
Before verifying the local deviation orders, we first state two auxiliary lemmas. We omit the proofs, since they are almost identical to that of Lemma 6 and Lemma 7, respectively.
Suppose is the continuous-time process defined by (1) initiated from some iterate of the Markov chain defined by (4), then the second moment of is uniformly bounded, i.e.
Suppose is the continuous-time process defined by (1) initiated from some iterate of the Markov chain defined by (4), then
By Itô isometry and Lipschitz of the drift and diffusion coefficients,
D.2.2 Local Mean Deviation
Since the last two terms in the above inequality are Martingales,
D.3 Invoking Theorem 1
Now, we invoke Theorem 1 with our derived constants. We obtain that if the constant step size
Appendix E Convergence of SRK-LD Under an Unbiased Stochastic Oracle
Similarly, one can derive the new local mean deviation,
One can replace the corresponding terms in (33) and obtain a recursion. Note however, to ensure unrolling the recursion gives a convergence bound, one would need that .
Appendix F Auxiliary Lemmas
We list standard results used to develop our theorems and include their proofs for completeness.
Multiplying both sides of the inequality by completes the proof. ∎
For the -dimensional Brownian motion ,
We consider the case where . The multi-dimensional case follows naturally, since we assume different dimensions of the Brownian motion vector are independent. Let , we define
Since is a sum of Gaussian random variables, it is also Gaussian. By linearity of expectation and independence of Brownian motion increments,
Since as by the strong law of large numbers, we conclude that . ∎
Note may be expressed as the sum of squared Gaussian random variables, i.e.
Observe that this is also a multiple of the chi-squared random variable with degrees of freedom . Its th moment has the following closed form ,
Then, the vector Laplacian of its gradient is bounded, i.e.
Then, the vector Laplacian of its gradient is -Lipschitz, i.e.
Let . Since , we may switch the order of partial derivatives,
By Taylor’s theorem with the remainder in integral form,
Note that can be written as a sum of matrices, each being a sub-tensor of , due to the the trace operator, i.e.
Since the operator norm of upper bounds the operator norm of each of its sub-tensor,
Recall the third derivative is -Lipschitz, we obtain
Appendix G Estimating the Wasserstein Distance
For a Borel measure defined on a compact and separable topological space , a sample-based empirical measure may asymptotically serve as a proxy to in the sense for , i.e.
This is a consequence of the Wasserstein distance metrizing weak convergence and that the empirical measure converges weakly to almost surely .
However, in the finite-sample setting, this distance is typically non-negligible and worsens as the dimensionality increases. Specifically, generalizing previous results based on the -Wasserstein distance , Weed and Bach showed that for ,
where is less than the lower Wasserstein dimension . This presents a severe challenge in estimating the -Wasserstein distance between probability measures using samples.
To better detect convergence, we zero center a simple sample-based estimator by subtracting the null responses and obtain the following new estimator:
where and are based on two independent samples of size from , and similarly for and from . This estimator is inspired by the contruction of distances in the maximum mean discrepancy family and the Sinkhorn divergence . Note that the -Wasserstein distance between finite samples can be computed conveniently with existing packages that solves a linear program. Although the new estimator is not guaranteed to be unbiased across all settings, it is unbiased when the two distributions are the same.
where the expectations are approximated via averaging 100 independent draws. Figure 2 reports the deviation across different sample sizes and dimensionalities, where and differ only in either mean or covariance. While the corrected estimator is not unbiased, it is relatively more accurate.
In addition, Figure 3 demonstrates that our bias-corrected estimator becomes more accurate as the two distributions are closer. This indicates that our proposed estimator may provide a more reliable estimate of the 2-Wasserstein distance when the sampling algorithm is close to convergence.
Appendix H Additional Numerical Studies
In this section, we include additional numerical studies complementing Section 5.
We first include additional plots of error estimates in and the energy distance for sampling from a Gaussian mixture and the posterior of BLR. The results indicate that the reduction in asymptotic error is consistent across problems with varying dimensionalities that we consider. In the end, we conduct a wall time analysis and show that SRK-LD is competitive in practice.
Figure 4 shows the estimated error as the number of iterations increase for the 2D and 20D Gaussian mixture and BLR problems with the parameter settings described in Section 5. We observe consistent improvement in the asymptotic error across different settings in which we experimented.
H.1.2 Asymptotic Error vs Dimensionality and Step Size
Figure 6 (a) and (b) respectively show the asymptotic error against dimensionality and step size for Gaussian mixture sampling. We perform least squares regression in both plots. Plot (a) shows results when a step size of is used. Plot (b) is on semi-log scale, where the quantities are estimated for a 10D problem.
H.1.3 Wall Time
Figure 7 shows the wall time against the estimated of SRK-LD compared to the EM scheme for a 20D Gaussian mixture sampling problem. On a 6-core CPU with 2 threads per core, we observe that SRK-LD is roughly 2.5 times as costly as EM per iteration. However, since SRK-LD is more stable for large step sizes, we may choose a step size much larger for SRK-LD compared to EM, in which case its iterates converge to a lower error within less time.
H.2 Non-Convex Potentials
We first discuss how we approximate the iterated Itô integrals, after which we include additional numerical studies varying the dimensionality of the sampling problem.
Simulating both the iterated Itô integrals and the Brownian motion increments exactly is difficult. We adopt the Kloeden-Platen-Wright approximation, which has an MSE of order , where is the number of terms in the truncation . The infinite series can be written as follows:
where . is known as the Lévy area and is notoriously hard to simulate .
For SDE simulation, in order for the scheme to obtain the same strong convergence order under the approximation, the MSE in the approximation of the Itô integrals must be negligible compared to the local mean-square deviation of the numerical integration scheme. For our experiments, we use , following the rule of thumb that . Although simulating the extra terms can become costly, the computation may be vectorized, branched off from the main update, and parallelized on an additional thread, since it does not require any information of the current iterate.
Wiktorsson et al. proposed to add a correction term to the truncated series, which results in an approximation that has an MSE of order . In this case, terms are effectively required. We note that analyzing and comparing between different Lévy area approximations is beyond the scope of this paper.
H.2.2 Additional Results
Figure 8 shows the MSE of simulations starting from a faithful approximation to the target. We adopt the same simulation settings as described in Section 5.2. We observe diminishing gains as the dimensionality increases across all settings with differing and parameters in which we experimented. These empirical findings corroborate our theoretical results. Note that the corresponding diffusion in all settings are still uniformly dissipativity, yet the potential may become convex when is large. Nevertheless, the potential is never strongly convex when is positive due to the linear growth term.