sgmcmc: An R Package for Stochastic Gradient Markov Chain Monte Carlo
Not on the map. Why?
Abstract (arXiv)
This paper introduces the R package sgmcmc; which can be used for Bayesian inference on problems with large datasets using stochastic gradient Markov chain Monte Carlo (SGMCMC). Traditional Markov chain Monte Carlo (MCMC) methods, such as Metropolis-Hastings, are known to run prohibitively slowly as the dataset size increases. SGMCMC solves this issue by only using a subset of data at each iteration. SGMCMC requires calculating gradients of the log likelihood and log priors, which can be time consuming and error prone to perform by hand. The sgmcmc package calculates these gradients itself using automatic differentiation, making the implementation of these methods much easier. To do this, the package uses the software library TensorFlow, which has a variety of statistical distributions and mathematical operations as standard, meaning a wide class of models can be built using this framework. SGMCMC has become widely adopted in the machine learning literature, but less so in the statistics community. We believe this may be partly due to lack of software; this package aims to bridge this gap.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 2 Oct 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 0; 2025: 1.
3 papers.
- 2022SwISS: A Scalable Markov chain Monte Carlo Divide-and-Conquer Strategycited by 6
- 2023Coreset Markov Chain Monte Carlocited by 5
- 2025JaxSGMC: Modular stochastic gradient MCMC in JAXcited by 1
- 2025JaxSGMC: Modular stochastic gradient MCMC in JAX16 May 2025
- 2023Coreset Markov Chain Monte Carlo25 Oct 2023
- 2022SwISS: A Scalable Markov chain Monte Carlo Divide-and-Conquer Strategy8 Aug 2022