mlsanityData to 14 Oct 2026

Efficiently Vectorized MCMC on Modern Accelerators

arXiv 2503.17405 ↗First posted 20 Mar 2025cs.MS cs.LG stat.COcited by 0

Not on the map. Why?

Abstract (arXiv)

With the advent of automatic vectorization tools (e.g., JAX's textttvmap), writing multi-chain MCMC algorithms is often now as simple as invoking those tools on single-chain code. Whilst convenient, for various MCMC algorithms this results in a synchronization problem -- loosely speaking, at each iteration all chains running in parallel must wait until the last chain has finished drawing its sample. In this work, we show how to design single-chain MCMC algorithms in a way that avoids synchronization overheads when vectorizing with tools like textttvmap by using the framework of finite state machines (FSMs). Using a simplified model, we derive an exact theoretical form of the obtainable speed-ups using our approach, and use it to make principled recommendations for optimal algorithm design. We implement several popular MCMC algorithms as FSMs, including Elliptical Slice Sampling, HMC-NUTS, and Delayed Rejection, demonstrating speed-ups of up to an order of magnitude in experiments.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 40 references that are in the map. First posted on arXiv 20 Mar 2025.

Builds on

14 of 40 references.

References · 14

  1. 2016TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systemscited by 664
  2. 2019Ab-Initio Solution of the Many-Electron Schr"odinger Equation with Deep Neural Networkscited by 200
  3. 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 191
  4. 2019NeuTra-lizing Bad Geometry in Hamiltonian Monte Carlo Using Neural Transportcited by 74
  5. 2018Learning Finite State Representations of Recurrent Policy Networkscited by 37
  6. 2024BlackJAX: Composable Bayesian inference in JAXcited by 26
  7. 2019Automatic Reparameterisation of Probabilistic Programscited by 18
  8. 2022Transport Elliptical Slice Samplingcited by 12
  9. 2020tfp.mcmc: Modern Markov Chain Monte Carlo Tools Built for Modern Hardwarecited by 10
  10. 2021Delayed rejection Hamiltonian Monte Carlo for sampling multiscale distributionscited by 7
  11. 2019Automatically Batching Control-Intensive Programs for Modern Acceleratorscited by 6
  12. 2023Recurrent Neural Language Models as Probabilistic Finite-state Automatacited by 6
2 more
  1. 2018Infinite Factorial Finite State Machine for Blind Multiuser Channel Estimationcited by 1
  2. 2023Neuromechanical Autoencoders: Learning to Couple Elastic and Neural Network Nonlinearitycited by 1

Built on by

Not cited yet.