Stochastic-gradient Langevin methods are sampling algorithms that replace the gradient of the log probability density by a noisy, possibly biased evaluation. We study how such gradient-evaluation errors affect the Euler and randomized midpoint discretizations of Langevin dynamics by comparing each noisy chain with its exact-gradient counterpart. For continuously differentiable, strongly log-concave targets with globally Lipschitz gradients, we derive comparison bounds under a sub-Gaussian condition on the gradient noise. The resulting 2-Wasserstein bounds hold uniformly over iterations, and are linear in both the step size and the L2 norm of the evaluation bias, with a square-root dependence on dimensionality. To the best of our knowledge, no comparable 2-Wasserstein bounds have previously been established for randomized midpoint with noisy gradients. For Euler, our results complement recent Wasserstein bounds by allowing biased evaluations, and by not requiring additional regularity assumptions on the evaluation errors.
1 Introduction
Langevin Monte Carlo (LMC) provides a simple way to sample from a density π(x)∝exp(−U(x)) using evaluations of ∇U. In many settings, gradient evaluations can dominate the computational cost. For instance, if π is a Bayesian posterior distribution based on a large data set, each exact gradient may require a pass through all observations. Stochastic gradient Langevin dynamics (SGLD) replaces this calculation by a gradient estimate based on a small random subset of the data (Welling and Teh, 2011). This reduces the cost of each step, but introduces an additional source of error into an already discretized process. We refer the reader to Nemeth and Fearnhead (2021) for a review of stochastic gradient Monte Carlo.
An approximate drift evaluation can contain both a systematic bias and a centered random error. Even when the evaluation is unbiased, its random fluctuations can change the distribution sampled at a fixed step size. Vollmer et al. (2016) characterize the dependence of SGLD’s asymptotic bias on the step size and gradient variance, and study the bias and variance of finite-time estimators. Brosse et al. (2018) show that this variance can substantially affect sampling accuracy as the data set grows. Variance reduction offers one way to limit this effect (Chatterji et al., 2018). For Euler discretization, Dalalyan and Karagulyan (2019) give nonasymptotic Wasserstein bounds that separate the contributions of bias and centered fluctuations.
Li and Wang (2025) use relative entropy to compare SGLD with the Langevin diffusion uniformly in time, obtaining first-order Wasserstein accuracy under their regularity and initialization assumptions. More recently, Paulin and Whalley (2026) obtain first-order Wasserstein bounds between the invariant distribution of SGLD and the target distribution under fourth-moment and mean-square Lipschitz conditions on centered gradient errors. Their analysis compares SGLD with a stationary exact-gradient Euler chain and also yields finite-time bounds relative to the target distribution.
Here, we directly compare the distributions of the noisy and exact-gradient chains of the same discretization at each iteration, starting from a common initial distribution that need not be stationary. This quantifies the additional error from approximate gradients separately from the discretization. We assume a sub-Gaussian condition on the centered errors, without requiring additional regularity of the evaluation errors. The resulting comparison bounds are uniform over iterations and also allow biased evaluations.
These comparison bounds can be combined with exact-gradient error bounds to control the distance to the target distribution. Dalalyan and Karagulyan (2026) sharpen Wasserstein bounds for LMC using average coordinate-wise smoothness. For twice continuously differentiable, strongly convex potentials with Lipschitz gradients, Pedrotti and Whalley (2026) establish an order-α bound on the 2-Wasserstein distance between the invariant distribution of exact-gradient Euler and the target distribution, where α is the step size. This motivates seeking an order-α bound for the effect of centered gradient errors, with a separate term for systematic bias.
We also study the randomized midpoint (RM) method. Introduced for log-concave sampling by Shen and Lee (2019), RM uses two drift evaluations per step, one at the current state and one at a random intermediate state. Its stationary bias and asymptotic normality have been studied by He et al. (2020). For twice differentiable, strongly convex potentials with Lipschitz gradients, Yu et al. (2024) establish a Wasserstein discretization bound of order α. This raises the question of whether RM retains this accuracy when both drift evaluations in each step are approximate. Extending the comparison to RM requires accounting for the second evaluation at a random state that depends on both the first evaluation and the Gaussian noise within the step.
We address this question for conditionally sub-Gaussian centered errors, uniformly over the query points. For the Euler method, we obtain an order-(α+δ) comparison between the noisy and exact-gradient chains in 2-Wasserstein distance, where δ controls the evaluation bias in L2. For RM, we allow both evaluations to be biased and obtain a uniform comparison bound of the same order. Both comparisons hold for continuously differentiable, strongly convex potentials with globally Lipschitz gradients. The bounds depend explicitly on the dimension p through a factor of p. Combining them with the exact-gradient bounds under their additional assumptions yields sampling accuracy of order α for both methods when the evaluations are unbiased or δ=O(α), once the initialization error has decayed to this scale. A fixed finite-variance Euler example shows that second-moment control alone cannot guarantee this first-order comparison.
The rest of the paper is organized as follows. Section 2 introduces the discretizations and the drift-error model. Section 3 presents the Euler and RM bounds, with proofs in Appendix A. Numerical experiments are presented in Section 4, and Section 5 discusses the implications and limitations of the results.
2 Background and preliminaries
Let π be a probability distribution on Rp with density π(x)∝exp(−U(x)). The associated Langevin diffusion is
dXt=−∇U(Xt)dt+2dBt,
where Bt is a standard p-dimensional Brownian motion. Under the assumptions below, this diffusion has invariant distribution π. Langevin Monte Carlo approximates it by a discrete-time chain. The convergence properties of the diffusion and its discretizations have long been studied (Roberts and Tweedie, 1996). Our focus is the additional error introduced by approximating the drift in a discrete update.
We write L(X) for the distribution of a random vector X, and ∥⋅∥ for the Euclidean norm. For probability measures μ and ν with finite second moments, their 2-Wasserstein distance is
W2(μ,ν)=L(X)=μ,L(Y)=νinf(E∥X−Y∥2)1/2,
where the infimum is over joint distributions of (X,Y) with the prescribed marginals. Any such coupling gives an upper bound on W2. All initial distributions considered below have finite second moments.
For the theoretical analysis below, we impose the following conditions on the potential U.
Assumption 2.1 (Strong convexity).
The function U:Rp→R is continuously differentiable, and there exists a constant m>0 such that
U(x)−U(y)−∇U(y)⊤(x−y)≥2m∥x−y∥22,∀x,y∈Rp.
Assumption 2.2 (Smoothness).
There exists a constant M>0 such that
∥∇U(x)−∇U(y)∥2≤M∥x−y∥2,∀x,y∈Rp.
We write κ=M/m for the condition number. These assumptions are standard in nonasymptotic analyses of Langevin Monte Carlo (Dalalyan, 2017; Durmus and Moulines, 2019).
2.1 Exact-drift discretizations
The Euler discretization of the Langevin diffusion is
where α>0 is the step size and Zk+1 are independent standard Gaussian random vectors.
Classical Euler bounds under Assumptions 2.1 and 2.2 have a discretization term of order α (Dalalyan and Karagulyan, 2019, Theorem 1). The following recent result gives an order-α stationary bias bound for C2 potentials.
Lemma 2.3 (Stationary bias of Euler discretization (Pedrotti and Whalley, 2026)).
Suppose Assumptions 2.1 and 2.2 hold, U∈C2(Rp), and α≤1/M. Let πα denote the invariant distribution of the Euler chain (1) with step size α. Then
W2(πα,π)≤6αMmp.
Lemma 2.3 controls the 2-Wasserstein distance between the invariant distribution of the Euler chain and the target π. To obtain a bound after finitely many steps, we also need to account for initialization. Combining the lemma with the contraction of the Euler update gives the following finite-time bound, with proof in Appendix A.1.
Corollary 2.4 (Finite-time Wasserstein rate of Euler discretization).
Under the assumptions of Lemma 2.3, for any initial state X0EU with finite second moment and every k≥0,
W2(L(XkEU),π)≤(1−mα)kW2(L(X0EU),π)+12αMmp.
The first term in (2) controls the effect of initialization and decays with k, while the second bounds the discretization error and is of order α for fixed m,M,p. We will later combine this estimate with our comparison between the noisy and exact Euler chains to bound the distance of the noisy chain to π.
The randomized midpoint (RM) method (Shen and Lee, 2019; Yu et al., 2024) uses an intermediate drift evaluation to approximate the drift integral more accurately. It selects a uniformly randomized time within each step. The identity ∫0αf(s)ds=E(αf(ατ)) for integrable f and τ∼Unif(0,1) motivates evaluating the drift at one random time within the step. The intermediate update constructs YkRM by taking an Euler step of length ατk+1 from XkRM. The terminal update advances from XkRM to Xk+1RM, using the drift at YkRM. These updates are given by
where τk+1∼Unif(0,1) and Zk+1′,Zk+1′′∼N(0,Ip) are mutually independent. The shared vector Zk+1′ gives the midpoint and terminal increments the dependence of Brownian increments at times ατk+1 and α.
The following lemma gives a Wasserstein bound for the RM update.
Lemma 2.5 (Wasserstein rate of randomized midpoint (Yu et al., 2024)).
Suppose Assumptions 2.1 and 2.2 hold and U is twice differentiable. If Mα+κ(Mα)3/2≤1/4, then for every k≥0,
For fixed m,M,p, the discretization terms in (2) and (4) are both of order α. Neither estimate includes error from approximating the drift. We next introduce a model for these evaluations, which will be applied once per Euler step and twice per RM step.
2.2 Noisy drift evaluations
Suppose that an evaluation at x returns a random approximation ∇U(x) to ∇U(x). We separate its error into a bias and a centered fluctuation:
∇U(x)=∇U(x)+b(x)+ξ(x),
where b(x)=E[∇U(x)]−∇U(x) and E[ξ(x)]=0. Here ξ(x) denotes the centered error in one evaluation at x.
A common example is the gradient estimate used in SGLD (Welling and Teh, 2011). For a potential U=U0+∑i=1nUi, one can sample an index I uniformly from {1,…,n} and return ∇U0(x)+n∇UI(x). Averaging over I recovers ∇U(x), so this estimate has b(x)=0.
In a sampling algorithm, the query point is itself random. We assume that, conditional on this query point X, the centered error has the distribution of ξ(x) at x=X and is independent of all variables generated before that evaluation. In particular, E[ξ(X)∣X]=0.
For Euler, replacing the drift in (1) by (5) gives the noisy chain (EU-N)
The δ term in (7) need not vanish as α decreases, whereas the term involving a fixed σ>0 is of order α. These are upper bounds under second-moment conditions. In the next section, we impose a sub-Gaussian condition and compare noisy and exact-drift chains directly, obtaining an order-α bound for the contribution of centered errors.
3 Wasserstein error under sub-Gaussian drift noise
We compare each noisy chain with the corresponding chain using exact gradients, started from the same initial distribution. This separates the error due to drift approximation from the discretization error. The triangle inequality then combines the comparison with Corollary 2.4 and Lemma 2.5. The following assumption controls the conditional distribution of the centered evaluation error.
There is a constant K>0 such that, for every evaluation in (5) at a possibly random query point X,
E[exp(u⊤ξ(X))∣X]≤exp(2K2∥u∥2),∀u∈Rp.
In particular, E[ξ(X)]=0, and E[∥ξ(X)∥2∣X]≤K2p.
This assumption thus implies the centered-error condition in (6) with σ=K. The conditional independence in Section 2.2 also ensures that the sub-Gaussian bound and conditional centering remain valid when conditioning on all variables generated before an evaluation. We use this property when constructing couplings below.
3.1 Error rate for Euler discretization with noisy drift
For Euler evaluations, we first consider the centered fluctuation separately from the bias. Conditional on the current state x, the Gaussian increment 2αZ is replaced by 2αZ−αξ(x), while the bias contributes the deterministic shift −αb(x). The next lemma bounds the Wasserstein cost of the centered perturbation. The proof is deferred to Appendix A.2.
Lemma 3.2 (Gaussian coupling bound).
Under Assumption 3.1, fix x∈Rp and let Z∼N(0,Ip) be independent of ξ(x). If αK2≤1, then
W22(L(2αZ−αξ(x)),N(0,2αIp))≤32α3K4p.
Remark 3.3.
For intuition, in one dimension, if ξ itself were Gaussian (that is ξ∼N(0,K2)), then (2αZ−αξ)∼N(0,2α+α2K2). For two centered one-dimensional Gaussians,
W22(N(0,σ12),N(0,σ22))=(σ1−σ2)2.
In our setting this equals (2α+α2K2−2α)2. For αK2≪1, we then have W22=O(α3K4). Lemma 3.2 gives the same order for any error satisfying Assumption 3.1. For fixed K and p, the centered perturbation −αξ(x) has L2 norm of order at most α, whereas its addition to the independent Gaussian increment changes the distribution by at most order α3/2 in W2.
Remark 3.4.
Under the synchronous Gaussian coupling (that uses the same Gaussian vector Z in both increments), the difference between the noisy and exact increments is −αξ(x). Its mean squared norm is bounded by α2E∥ξ(x)∥2≤α2K2p. This loses one power of α compared with (8) and, after accumulation over successive Euler steps, yields a W2 bound of order α rather than order α.
We apply the coupling in Lemma 3.2 conditionally on the current states. The increment difference has conditional mean zero, so its contribution enters the squared-distance recurrence at order α3. Combining this bound with contraction of the Euler drift yields the following uniform comparison.
Theorem 3.5 (Drift error for Euler).
Suppose Assumptions 2.1, 2.2, and 3.1 hold, the Euler biases satisfy E∥bk+1∥2≤δ2p for some δ≥0 and every k≥0, and the initial states X0EU−N and X0EU have the same distribution. If α≤1/(m+M) and αK2≤1, then for every k≥0,
W2(L(XkEU−N),L(XkEU))≤mδp+αK23mM(m+M)p.
For unbiased evaluations, δ=0 and the comparison is of order α. More generally, the bound is of order α+δ for fixed m,M,p,K.
Finite second moments for the noise alone do not suffice for this first-order comparison, even for a quadratic potential.
Proposition 3.6 (Finite-variance counterexample).
Let U(x)=x2/2, so that π=N(0,1). At each noisy Euler step, use the unbiased drift evaluation x+ξ, with independent errors ξ having density pξ(z)=45∣z∣−7/21{∣z∣≥1}, which satisfy Eξ=0 and Eξ2=5. Start both exact and noisy gradient chains from π. For every integer n≥64 and α=1/(2n),
Thus, at the fixed time nα=1/2, neither the distance between the two chains nor the total sampling error admits an order-α bound under a second-moment assumption alone. The proof is given in Appendix A.2.
Theorem 3.5 bounds the distance between the noisy and exact Euler chains. Adding the distance from the exact chain to π, as bounded in Corollary 2.4, gives the overall sampling error.
Corollary 3.7 (Overall error of noisy Euler).
Under the assumptions of Theorem 3.5, suppose further that U∈C2(Rp). Then, for every k≥0,
The step-size condition gives α≤1/(m+M)≤1/M. Apply the triangle inequality through L(XkEU). Bound the distance between the two chains by Theorem 3.5 and the distance from the exact chain to π by Corollary 2.4. ∎
For unbiased evaluations, or when δ=O(α), both the drift-approximation and discretization terms in Corollary 3.7 are of order α. Randomized midpoint also admits an order-α discretization bound by Lemma 2.5. We next establish the corresponding noisy-exact comparison when both evaluations in each RM step are approximate.
3.2 Error rate for randomized midpoint with noisy drift
The randomized-midpoint update (3) evaluates the drift twice. At both stages, we use the drift approximation in (5), with centered errors satisfying Assumption 3.1. Denote the noisy chain and its intermediate states by XkRM−N and YkRM−N. For the update from step k to k+1, write
The error in the first drift evaluation perturbs the midpoint by a quantity proportional to α. By smoothness, its effect on the terminal drift update gains another factor of α. The main difficulty is the centered error ξk+1(2) in the second evaluation: it enters the terminal update directly and, through its query point YkRM−N, need not be independent of the Gaussian increment in that step. To apply Lemma 3.2, we pair this error with the independent Gaussian increment in the next step.
Write Zk+1=τk+1Zk+1′+1−τk+1Zk+1′′ for the standard Gaussian vector in the terminal update of (11). To remove the current second-stage centered error from the terminal update, define
with Xˉ0=X0RM−N and ξ0(2)=0. This change costs at most
W2(L(XkRM−N),L(Xˉk))≤α(E∥ξk(2)∥2)1/2≤αKp.
Thus, an order-(α+δ) comparison between Xˉk and XkRM yields the desired comparison for the noisy chain. For k≥1, Xˉk is determined before ξk(2) is sampled, so this error remains centered and sub-Gaussian conditional on Xˉk.
To express the update in terms of Xˉk, substitute XkRM−N=Xˉk−αξk(2) and obtain
The noise term in parentheses pairs the centered error from the preceding update with the independent Gaussian increment from the current update. For αK2≤1, applying Lemma 3.2 conditionally on Xˉk gives
Let Zk+1 denote the standard Gaussian vector used in the terminal update of an exact randomized-midpoint step from Xˉk, so that L(Zk+1∣Xˉk)=N(0,Ip). We couple 2αZk+1 with the noise term in parentheses so that their difference satisfies
The full conditional construction is given in Appendix A.3.
To separate the perturbation of the update from the difference in starting states, we compare Xˉk+1 with an exact randomized-midpoint step X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1} starting from Xˉk. This step must preserve the dependence between the midpoint and terminal Gaussian increments. Set
Zk+1′′′=1−τk+1Zk+1′−τk+1Zk+1′′.
This orthogonal transformation gives two independent standard Gaussian vectors Zk+1 and Zk+1′′′, whose joint distribution does not depend on τk+1, and the inverse relation is
We choose the preceding coupling independently of τk+1 and Zk+1′′′. Keeping these two variables and replacing Zk+1 by Zk+1 therefore gives the exact midpoint and terminal updates
Subtracting this terminal update from (13) leaves T1,k, together with the terms arising from the different midpoint drift evaluations and the terminal bias. The following lemma collects these latter two contributions in T2,k and bounds the difference between Xˉk+1 and X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1}.
Lemma 3.8 (One-step control of the randomized-midpoint perturbation).
Suppose Assumptions 2.1, 2.2, and 3.1 and the bias bounds (12) hold. Use the coupling in (14) and the exact step (15), and set
Next, to propagate the one-step comparison between Xˉk+1 and Xk+1RM, we insert X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1} between the two states:
Lemma 3.8 controls the first difference. The second term compares two exact-drift steps from Xˉk and XkRM, using the same randomized time and Gaussian increments. The following contraction bound controls the effect of their different starting states.
Suppose Assumptions 2.1 and 2.2 hold. Let (YkRM,Xk+1RM) and (Y\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{Y}}}}}}\rule{0.0pt}{11.24445pt}}_{k},X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.24445pt}}_{k+1}) be exact randomized-midpoint steps from XkRM and Xˉk, respectively. Couple them using the same randomized time and Gaussian increments in (3). If α≤1/(m+M), then
If α≤1/(8Mκ), the factor on the right-hand side is at most 1−(47/64)mα.
We combine the perturbation bound in Lemma 3.8 with the contraction in Lemma 3.9 to obtain a recurrence for W2(L(Xˉk),L(XkRM)). Under the conditional coupling, the cross term between T1,k and Xˉk−XkRM has zero expectation. The remaining cross term involves the difference between the two drift updates, which contains an additional factor of α. We handle T2,k using its L2 bound. Iteration gives a bound uniform in k. Since replacing Xˉk by XkRM−N costs at most αKp in 2-Wasserstein distance, the triangle inequality yields the following theorem. The proof is given in Appendix A.3.
Theorem 3.10 (Drift error for randomized midpoint).
Suppose Assumptions 2.1, 2.2, and 3.1 hold, the biases satisfy (12), and the initial states X0RM−N and X0RM have the same distribution. If
α≤min{8Mκ1,K21},
then, for every k≥0,
W2(L(XkRM−N),L(XkRM))≤αp(10κK+mK2)+m4δp.
Adding the exact-chain error from Lemma 2.5 to Theorem 3.10 gives the following bound relative to the target distribution π.
Theorem 3.11 (Overall error of noisy randomized midpoint).
Under the assumptions of Theorem 3.10, suppose further that U is twice differentiable. Then, for every k≥0,
Since the two chains have the same initial distribution, combining Theorem 3.10 with Lemma 2.5 proves (17). ∎
Remark 3.12.
For fixed m,M,p,K, the bound in (17) is of order α+δ once the initialization term has decayed to this scale. Thus randomized midpoint retains order-α accuracy with unbiased drift evaluations, and also with biased evaluations when δ=O(α).
4 Numerical experiments
We compare Euler and randomized midpoint in three examples. The strongly convex example examines the effects of the noise distribution and evaluation bias. The bimodal example explores behavior beyond strong convexity, while Bayesian logistic regression considers errors arising from minibatch gradients. Computational details are given in Appendix B.
A strongly convex target.
Consider π(x)∝exp[−U(x)] with
U(x)=2x2+s2logcosh(sx),s=0.15.
Here, 1≤U′′(x)≤2. Both methods start from π and run to T=8. We consider independent gradient noise from N(0,1), the Gaussian mixture 0.9N(0,1)+0.1N(0,11) (MoG), and the standard Student t2.05 distribution. We first use unbiased gradients, then consider varied biases for RM with Gaussian noise. The Gaussian and MoG noises satisfy the sub-Gaussian condition in Assumption 3.1, whereas the Student noise has finite second moment but is not sub-Gaussian.
For Gaussian and MoG noise, the W2 distances between noisy and exact-gradient chains decay close to first order in α (Fig. 1-a). The decay is approximately half order for Student noise over the steps considered. Euler and RM give nearly identical curves in this comparison. RM has smaller distances to π under Gaussian and MoG noise (Fig. 1-b), whereas the two methods perform similarly under Student noise.
With biases of 0 and α/4, the distances decay close to first order (Fig. 1-c). A bias of α/10 gives approximately half-order decay, while a fixed bias of 0.02 produces an error floor.
Figure 1: Strongly convex example. μTnoisy and μTexact denote terminal distributions with noisy and exact gradients. (a, b): Unbiased gradients under three noise distributions. (c): RM with Gaussian noise and varying gradient bias. Dotted lines indicate first-order decay.
A bimodal target.
We next consider
π(x)∝e−6(x+1)2+4e−18(x+1)2+e−8(x−1)2,
a mixture of three Gaussian components with two modes. Its potential is nonconvex. We use the same three noise distributions, keep the gradients unbiased, and run both methods from π to T=32.
For Gaussian and MoG noise, the distances between noisy and exact-gradient chains are similar for Euler and RM and decay close to first order in α (Fig. 2-a). The noisy RM distances to π also decrease at roughly first order and remain below those of Euler (Fig. 2-b). Under Student noise, the distances between noisy and exact-gradient chains account for most of the error relative to π. With exact gradients, RM exhibits nearly second-order decay and has substantially smaller distances to π than Euler (Fig. 2-c).
Figure 2: Bimodal example. Distances between (a) noisy and exact-gradient chains, (b) noisy chains and π, and (c) exact-gradient chains and π. Dotted lines indicate first-order decay.
Bayesian logistic regression.
We next consider gradient errors arising from minibatch sampling. We fit a Bayesian logistic regression model to the n=11,552 MNIST training images labeled 3 or 5, a problem also considered by Leimkuhler et al. (2024). The predictors are 50 whitened principal components and an intercept, with a standard Gaussian prior on the 51 coefficients. Writing ℓi(θ) for the negative log-likelihood of observation i, we use the gradient estimate
gB(θ)=θ+Bnj=1∑B∇ℓIj(θ),Ij∼iidUnif{1,…,n}.
This estimate is unbiased, and its errors are uniformly bounded for the fixed data set, satisfying the conditional sub-Gaussian assumption. We use B=1024 or 4096, with a fresh minibatch at every gradient evaluation. Both methods start at the posterior mode and run to T=8.
Figure 3: Bayesian logistic regression. Sliced-W2 distances to (a) the posterior reference and (b) the corresponding full-gradient chain. Points and bars show means and standard deviations over 20 repetitions. Dotted lines indicate first-order decay.
We measure discrepancies by sliced-W2 (Bonneel et al., 2015), the square root of the average squared W2 distance over one-dimensional projections in Fig. 3. At B=4096, RM gives smaller distances to the posterior throughout the step-size range, although its distances to the full gradient chain are slightly larger than Euler’s. For both methods, distances to the corresponding full gradient chain decrease close to first order in α, and increasing the batch size reduces these distances.
5 Discussion
Our results quantify how noisy gradient evaluations affect Euler and randomized midpoint (RM) Langevin sampling. For strongly convex U∈C1 with a globally Lipschitz gradient, our assumptions on the bias, together with the uniform sub-Gaussian noise yield an O(α+δ) comparison in 2-Wasserstein distance with the corresponding exact-gradient chain, uniformly over iterations from a common initial distribution. This separates the effect of gradient errors from the discretization error, and both bounds carry an explicit p dimension factor.
Our main tool is a coupling of laws rather than paths: conditional centering and sub-Gaussianity make the noisy increment 2αZ−αξ close to a Gaussian at order α3/2 (Lemma 3.2), where pathwise coupling gives only order α and hence a square-root rate overall. In RM, the second evaluation is made at the random midpoint, so its error can depend on the Gaussian increment of the same step. We handle this dependence by coupling the centered error with the Gaussian increment of the following step while preserving the joint distribution of the midpoint and terminal increments. To the best of our knowledge, no comparable non-asymptotic 2-Wasserstein distance bounds have previously been established for randomized midpoint with noisy gradients.
For Euler, our comparison bounds complement recent results on the Wasserstein error of exact Euler discretization (Pedrotti and Whalley, 2026) and the sampling error of SGLD (Li and Wang, 2025; Paulin and Whalley, 2026), obtained under twice continuously differentiable potentials. Under second moments alone, the noise contribution is known to be of order α (Dalalyan and Karagulyan, 2019). The SGLD analysis of Paulin and Whalley (2026) combines fourth-moment control with mean-square Lipschitz regularity of unbiased errors to obtain an order α rate. Our sub-Gaussian condition imposes stronger tail control, but requires no continuity or Lipschitz regularity of the evaluation errors at the query point, and our bounds also allow biased evaluations.
Our counterexample uses a fixed noise distribution with finite variance and shows that second moments alone do not ensure a first-order comparison. A natural question is which weaker tail conditions retain both the first-order comparison rate and the square-root dependence on dimension. For RM, another question is how the noise level and the allocation of gradient samples between its two evaluations should depend on the step size to preserve gains from a more accurate discretization. The bimodal example from our empirical results shows that RM can have substantially smaller total error than Euler, although this setting lies outside the strong convexity assumptions of our analysis. Establishing conditions under which this accuracy advantage can be guaranteed for nonconvex targets remains an open question.
Acknowledgments
The authors thank Prof. Arnak Dalalyan for bringing the recent work of Paulin, Pedrotti and Whalley on Langevin sampling to our attention. VR acknowledges support from the National Science Foundation through grant DMS-2503118.
References
Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and radon Wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1):22–45, 2015.
Nicolas Brosse, Alain Durmus, and Eric Moulines. The promises and pitfalls of stochastic gradient Langevin dynamics. Advances in Neural Information Processing Systems, 31, 2018.
Niladri Chatterji, Nicolas Flammarion, Yian Ma, Peter Bartlett, and Michael Jordan. On the theory of variance reduction for stochastic gradient Monte Carlo. In International Conference on Machine Learning, pages 764–773. PMLR, 2018.
Arnak Dalalyan. Further and stronger analogy between sampling and optimization: Langevin Monte Carlo and gradient descent. In Conference on Learning Theory, pages 678–689. PMLR, 2017.
Arnak Dalalyan and Avetik Karagulyan. User-friendly guarantees for the Langevin Monte Carlo with inaccurate gradient. Stochastic Processes and their Applications, 129(12):5278–5311, 2019.
Arnak Dalalyan and Avetik Karagulyan. Improved guarantees for Langevin Monte Carlo with average smoothness. arXiv preprint arXiv:2605.31413, 2026.
Alain Durmus and Éric Moulines. High-dimensional Bayesian inference via the unadjusted Langevin algorithm. Bernoulli, 25(4A):2854 – 2882, 2019.
Ye He, Krishnakumar Balasubramanian, and Murat Erdogdu. On the ergodicity, bias and asymptotic normality of randomized midpoint sampling method. Advances in Neural Information Processing Systems, 33:7366–7376, 2020.
Benedict Leimkuhler, Daniel Paulin, and Peter A Whalley. Contraction rate estimates of stochastic gradient kinetic Langevin integrators. ESAIM: Mathematical Modelling and Numerical Analysis, 58(6):2255–2286, 2024.
Lei Li and Yuliang Wang. A Sharp Uniform-in-Time Error Estimate for Stochastic Gradient Langevin Dynamics. CSIAM Transactions on Applied Mathematics, 6(4):711–759, 2025.
Christopher Nemeth and Paul Fearnhead. Stochastic gradient Markov chain Monte Carlo. Journal of the American Statistical Association, 116(533):433–450, 2021.
Yurii Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. Springer Science & Business Media, 2013.
Daniel Paulin and Peter A Whalley. Theoretical guarantees for stochastic gradient Langevin dynamics. arXiv preprint arXiv:2610.01651, 2026.
Francesco Pedrotti and Peter A Whalley. Wasserstein mixing time of the unadjusted Langevin algorithm. arXiv preprint arXiv:2608.02430, 2026.
Gareth O. Roberts and Richard L. Tweedie. Exponential convergence of langevin distributions and their discrete approximations. Bernoulli, 2(4):341–363, 1996.
Ruoqi Shen and Yin Tat Lee. The randomized midpoint method for log-concave sampling. Advances in Neural Information Processing Systems, 32, 2019.
Michel Talagrand. Transportation cost for Gaussian and other product measures. Geometric & Functional Analysis GAFA, 6(3):587–600, 1996.
Sebastian J Vollmer, Konstantinos C Zygalakis, and Yee Whye Teh. Exploration of the (non-) asymptotic bias and variance of stochastic gradient Langevin dynamics. Journal of Machine Learning Research, 17(159):1–48, 2016.
Max Welling and Yee W Teh. Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 681–688, 2011.
Lu Yu, Avetik Karagulyan, and Arnak Dalalyan. Langevin Monte Carlo for strongly log-concave distributions: Randomized midpoint revisited. In International Conference on Learning Representations, volume 2024, pages 45515–45551, 2024.
Appendix A Proofs
A.1 Proofs for Section 2
See 2.4
Proof of Corollary 2.4.
Since 0⪯Ip−α∇2U(x)⪯(1−mα)Ip for α≤1/M, the Euler drift map x↦x−α∇U(x) is (1−mα)-Lipschitz. Coupling two chains with Euler update and the same Gaussian increments, with one chain initialized at its invariant distribution πα and the other at X0EU, therefore gives
The last equality uses the moment generating function of a chi-squared random variable. It is finite because K4t4≤1/4 under the condition αK2≤1. Combining the preceding estimates yields
W22(μt,γ)≤−plog(1−K4t4).
Since −log(1−z)≤z/(1−z) for z∈[0,1),
W22(μt,γ)≤1−K4t4pK4t4.
Using t2=α/2 and K4t4≤1/4 gives
W22(μt,γ)≤31α2K4p.
Finally, 2α(G−tξ)=2αG−αξ. By the homogeneity of W2,
For each k, choose an optimal coupling of the current states such that
E∥XkEU−N−XkEU∥2=Dk2.
Conditional on (XkEU−N,XkEU)=(x,y), the random part of the noisy Euler update has distribution 2αZk+1−αξ(x), with Zk+1 independent of the error. The corresponding random part of the exact Euler update is N(0,2αIp). By Lemma 3.2, we can couple these increments. Denote the coupled increments by Ak+1 and Ak+1 so that
Ak+1∼L(2αZk+1−αξ(x)),Ak+1∼N(0,2αIp),
and
E(∥Ak+1−Ak+1∥2∣x,y)≤32α3K4p.
By Assumption 3.1, Eξ(x)=0. Hence both increments are centered and
E(Ak+1−Ak+1∣x,y)=0.
Under Assumptions 2.1 and 2.2, the strong convexity-smoothness interpolation inequality (Nesterov, 2013, Theorem 2.1.12) gives
Strong convexity and the Cauchy-Schwarz inequality imply ∥∇U(x)−∇U(y)∥≥m∥x−y∥. Since α≤1/(m+M), the coefficient of the last term above is nonpositive. Substituting this lower bound therefore gives
∥x−y−α(∇U(x)−∇U(y))∥2≤(1−mα)2∥x−y∥2.
Use the coupled increments to define the next states by
The vector x−y−α(∇U(x)−∇U(y))−αb(x) is fixed conditional on (x,y). Its cross term with Ak+1−Ak+1 therefore has conditional expectation zero. Expanding the squared norm gives
By the contraction bound, Minkowski’s inequality, and E∥bk+1∥2≤δ2p, we obtain
Dk+12≤((1−mα)Dk+αδp)2+32α3K4p.
Set
q=1−mα,B=mδp,S=(3(1−q2)2α3K4p)1/2.
Then 0≤q<1, αδp=(1−q)B, and D0=0. If Dk≤B+S, the recurrence implies
Dk+12≤(B+qS)2+(1−q2)S2=B2+2qBS+S2≤(B+S)2.
Induction yields Dk≤B+S for every k≥0. Finally,
S2=3m(2−mα)2α2K4p≤3mMα2K4p(m+M),
where the last inequality follows from α≤1/(m+M). This proves (9). ∎
See 3.6
Proof of Proposition 3.6.
The stated density is symmetric and, for t≥1, gives
Eξ=0,Eξ2=25∫1∞z−3/2dz=5,Pr(∣ξ∣>t)=t−5/2.
In particular, the errors have finite second moments but are not sub-Gaussian. Fix n≥64 and α=1/(2n). Couple the chains using the same initial state X0EU−N=X0EU∼π and the same independent standard Gaussian Zk. The updates are
Since the initial states are the same, iterating this recursion yields
XnEU−N=XnEU−αj=1∑n(1−α)n−jξj.
Here XnEU is independent of all the ξj. For 1≤j≤n, we have (1−α)n−j≥1−(n−j)α≥1/2. Thus ∣ξj∣>4α−3/2 implies α(1−α)n−j∣ξj∣>2α−1/2. We next show that, conditional on XnEU and ∣ξ1∣,…,∣ξn∣, the probability of ∣XnEU−N∣>2α−1/2 is at least 1/2 whenever at least one error exceeds this threshold.
For u,v∈R and t≥0, the inequality 2∣v∣≤∣u+v∣+∣u−v∣ implies that at least one of ∣u+v∣ and ∣u−v∣ exceeds t whenever ∣v∣>t. Hence
1{∣u+v∣>t}+1{∣u−v∣>t}≥1{∣v∣>t}.
Fix j∈{1,…,n} and write
u=XnEU−αi=j∑n(1−α)n−iξi,v=α(1−α)n−jξj.
Then XnEU−N=u−v, and flipping the sign of ξj changes this value to u+v. Conditional on XnEU and ∣ξ1∣,…,∣ξn∣, the noise signs remain independent and equally likely to be positive or negative. Thus (u,v) and (u,−v) have the same conditional distribution. Applying the preceding indicator inequality with t=2α−1/2 gives
The first inequality uses that ∣v∣=α(1−α)n−j∣ξj∣ is fixed under the conditioning. The left-hand side does not depend on j, so taking the maximum of the indicators on the right gives
where we used 1−x≤e−x and 1−e−t≥t/2 for 0≤t≤1, noting that α11/4/64≤1. Combining this bound with (22) gives
Pr(∣XnEU−N∣>2α−1/2)≥256α11/4.
Let Y have distribution L(XnEU) or π, and couple it arbitrarily with XnEU−N. In either case, Y is centered Gaussian with variance at most 2. On the event {∣XnEU−N∣>2α−1/2,∣Y∣≤α−1/2}, the triangle inequality gives ∣XnEU−N−Y∣>α−1/2. Hence, by (23) and the Gaussian tail bound,
Conditional on (Xˉk,ξk(2),τ), the first two terms inside the brackets are fixed, so their cross term with τξk+1(1) has expectation zero. Consequently,
Use the coupling specified in the statement, with the same τk+1, Zk+1, and Zk+1′′′ for the two exact steps. Since the Gaussian terms cancel, the midpoint and terminal differences are
The right side of the recurrence is nondecreasing in sk≥0. Thus s0=0 and induction give sk≤r for every k≥0. ∎
See 3.10
Proof of Theorem 3.10.
Set
Dk=W2(L(Xˉk),L(XkRM)),
and initialize the exact chain by X0RM=Xˉ0=X0RM−N. At step k, choose an optimal coupling such that
E∥Xˉk−XkRM∥2=Dk2.
For k≥1, realize this coupling by sampling XkRM given Xˉk, conditionally independently of the pair (Yk−1RM−N,ξk(2)). Define the sigma-field
Ck=σ(Xˉk,XkRM,Yk−1RM−N).
By (13), Xˉk and the query point Yk−1RM−N are determined before ξk(2) is drawn. Thus conditioning on Ck leaves ξk(2) centered and sub-Gaussian with parameter K.
Next, we draw Zk+1∼N(0,Ip) independently of (Ck,ξk(2)). Conditional on Ck, apply Lemma 3.2 to couple
−αξk(2)+2αZk+1and2αZk+1.
Implement this coupling by keeping (ξk(2),Zk+1). Then L(Zk+1∣Ck)=N(0,Ip), and the difference T1,k defined in (14) satisfies
E(T1,k∣Ck)=0,E(∥T1,k∥2∣Ck)≤32α3K4p.
Afterwards, we draw mutually independent τk+1∼Unif[0,1] and Zk+1′′′∼N(0,Ip), independently of Ck and (ξk(2),Zk+1,Zk+1). Reconstruct Zk+1′,Zk+1′′ by the inverse rotation and apply (11) starting from XkRM−N=Xˉk−αξk(2). For the two exact steps, use (15) starting from Xˉk and XkRM, with the same τk+1,Zk+1,Zk+1′′′ resulting in (Y\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{Y}}}}}}\rule{0.0pt}{11.00008pt}}_{k},X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1}) and (YkRM,Xk+1RM).
We first control the exact-step difference X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1}-X_{k+1}^{\mathrm{RM}} together with the error T1,k. The step-size assumption implies α(m+M)≤1/4<1, so Lemma 3.9 yields
Since the difference X\text{\hbox to0.0pt{\hss\smash{\raisebox{17.84723pt}{\scalebox{1}[-1]{\widehat{\phantom{X}}}}}}\rule{0.0pt}{11.00008pt}}_{k+1}-X_{k+1}^{\mathrm{RM}} and T1,k share Zk+1, their cross term need not vanish. We separate the current-state difference Xˉk−XkRM, whose cross term (with T1,k) does vanish by conditional centering, from the drift correction introduced during the step. To bound that correction, first use (20) to obtain
Gradient errors are independent across queries and independent of the Brownian increments and randomized times. In the bias comparison, the same constant is added at both RM evaluations.
For Gaussian and MoG errors, we compute the terminal densities by numerically evaluating the recursion
pk+1(y)=∫Rpk(x)Pα(y∣x)dx,
where Pα(y∣x) is the one-step transition density of Euler or RM. The integral over x is evaluated on a uniform spatial grid. For RM, the transition density is obtained by integrating over the randomized time and Gaussian variables.
Integrating the terminal densities and inverting their CDFs gives the quantile functions. We compute their distances by using
W22(μ,ν)=∫01[Qμ(u)−Qν(u)]2du.
For Gaussian and MoG errors, we substitute u=t4/2 and u=1−t4/2 in the two halves of the integral. For Student errors, we approximate central densities by scaled Hermite expansions and extend them with tail probabilities decaying as ∣x∣−2.05. In the strongly convex example, we evaluate the equivalent spatial integral with x=sgn(z)[(1−∣z∣)−20−1]/20, −1<z<1. In the bimodal example, we use u=t41/2 and u=1−t41/2 in the quantile integral. The strongly convex example uses a grid on [−8,8] with spacing 1/64, and 12 time and 24 Gaussian nodes; the bimodal example uses [−4,4] with spacing 1/256 and 20 nodes for each RM integral. Grid densities are interpolated linearly. The Student expansions use degree 192 and scale 0.5 in the strongly convex example, with degree 320 at 1/α=32,96,192, and degree 384 and scale 0.35 in the bimodal example.
B.2 Bayesian logistic regression
Images are rescaled by 1/255 before PCA. With labels yi∈{−1,1}, the posterior potential is
Since ∥∇ℓi(θ)∥≤∥xi∥, the errors in (19) are uniformly bounded, with conditional covariance proportional to 1/B. Both methods run in coordinates θ=θ+Lq, where θ is the posterior mode and LL⊤=[∇2U(θ)]−1. They use gradient L⊤gB(θ+Lq), start from q=0, and take steps
1/α∈{4,6,8,12,16,24,32,48,64,96,128}.
These steps exceed the global sufficient bounds in the theorems. Euler uses one minibatch per step and RM uses two. Each configuration uses 20 independent repetitions, each with N=65,536 terminal samples. The posterior reference uses an independence Metropolis sampler in q coordinates with an identity-scale multivariate t10 proposal. We run 64 independent chains, discard 2,000 iterations per chain, and retain 32,768 draws from each, giving 32N draws.
We measure discrepancies by sliced-W2 distances (Bonneel et al., 2015), which use 256 fixed directions drawn uniformly from the unit sphere in q coordinates. For direction ℓ, let Qμ,ℓ and Qν,ℓ be the empirical quantile functions of the projected samples. We compute
For two sets of N samples, each integral is the mean squared difference between corresponding sorted projections. For the posterior comparison, each noisy projection is paired with 32 consecutive sorted reference projections, and all 32N squared differences are averaged.