Skip to content
DraconiticResearch
Search Sources API
181,713 studies31 sourcesUpdated 16 min ago
PreprintarXiv licencearXiv

On the computational cost of Stochastic Gradient Langevin Dynamics

Abstract

Stochastic Gradient Langevin Dynamics (SGLD) reduces the cost of Langevin-based sampling by replacing full-dataset drift evaluations with mini-batch approximations, but the resulting subsampling error may offset this computational saving. We study this trade-off for stochastic differential equations with finite-sum drifts and compare the computational cost of SGLD with that of the Euler-Maruyama (EM) method. For a prescribed mean-square accuracy ε2, we derive complexity estimates that explicitly track the dependence on the dataset size m, mini-batch size s, and accuracy parameter ε. The resulting comparison reveals distinct parameter regimes in which either method is preferable. In particular, EM can have lower leading-order cost only in a small-data, aggressive-subsampling regime, whereas SGLD is favoured over most of the remaining parameter space. In the practically relevant regime s ≪ m, the transition between the two methods occurs at the scale m asymp ε−1. We complement the theoretical analysis with numerical experiments based on a Gaussian Bayesian inference model, which examine the predicted cost regimes together with the underlying discretisation error and variance estimates.

Related

  1. Theoretical guarantees for stochastic gradient Langevin dynamics
    Daniel Paulin, Peter A. Whalley
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingProbabilityarXiv
  2. Local Algebraic Stability of Wasserstein Gradient Descent-Ascent and Mean Field Langevin Dynamics without Spectral Gap
    Jing An, Lihan Wang
    arXivPreprintarXiv licenceFull textAnalysis & PDEsOptimisation & controlarXiv
  3. Autonomous self-harmonic drift in Langevin dynamics causes a compaction of underlying domain for the density of Stochastic Localization
    Ken Sekimoto
    arXivPreprintCC BY 4.0Full textMathematical physicsComputational physicsarXiv
  4. A CONSTRAINED WASSERSTEIN GRADIENT FLOW FOR MEAN-FIELD LANGEVIN DYNAMICS
    Mohamed Alfaki Aboubacrine Assadek
    HALPreprintCC BY 4.0Full textAnalysis & PDEsMathematical physicsHALarXiv
  5. Muon meets Tamed Langevin: Momentum Preconditioning beyond Convex and gradient-Lipschitz Potentials
    Nikolaos Makras, Sotirios Sabanis
    arXivPreprintCC BY 4.0Full textOptimisation & controlProbabilityarXiv
BibTeX
@misc{majka2026computational,
  title = {{On the computational cost of Stochastic Gradient Langevin Dynamics}},
  author = {Mateusz B. Majka and Tigran Nagapetyan and Łukasz Szpruch and Yue Wu and Danqi Zhuang},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.17750},
  eprint = {2609.17750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.17750},
}
RIS
TY  - UNPB
TI  - On the computational cost of Stochastic Gradient Langevin Dynamics
AU  - Mateusz B. Majka
AU  - Tigran Nagapetyan
AU  - Łukasz Szpruch
AU  - Yue Wu
AU  - Danqi Zhuang
PY  - 2026
DA  - 2026/09/15
PB  - arXiv
DO  - 10.48550/arxiv.2609.17750
UR  - https://arxiv.org/abs/2609.17750
AB  - Stochastic Gradient Langevin Dynamics (SGLD) reduces the cost of Langevin-based sampling by replacing full-dataset drift evaluations with mini-batch approximations, but the resulting subsampling error may offset this computational saving. We study this trade-off for stochastic differential equations with finite-sum drifts and compare the computational cost of SGLD with that of the Euler-Maruyama (EM) method. For a prescribed mean-square accuracy ε^2, we derive complexity estimates that explicitly track the dependence on the dataset size m, mini-batch size s, and accuracy parameter ε. The resulting comparison reveals distinct parameter regimes in which either method is preferable. In particular, EM can have lower leading-order cost only in a small-data, aggressive-subsampling regime, whereas SGLD is favoured over most of the remaining parameter space. In the practically relevant regime s ≪ m, the transition between the two methods occurs at the scale m asymp ε^−1. We complement the theoretical analysis with numerical experiments based on a Gaussian Bayesian inference model, which examine the predicted cost regimes together with the underlying discretisation error and variance estimates.
ER  -