Saved in:
Bibliographic Details
Main Authors: Zoltowski, David M., Wu, Skyler, Gonzalez, Xavier, Kozachkov, Leo, Linderman, Scott W.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2508.18413
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915647664947200
author Zoltowski, David M.
Wu, Skyler
Gonzalez, Xavier
Kozachkov, Leo
Linderman, Scott W.
author_facet Zoltowski, David M.
Wu, Skyler
Gonzalez, Xavier
Kozachkov, Leo
Linderman, Scott W.
contents Markov chain Monte Carlo (MCMC) methods are foundational algorithms for Bayesian inference and probabilistic modeling. However, most MCMC algorithms are inherently sequential and their time complexity scales linearly with the sequence length. Previous work on adapting MCMC to modern hardware has therefore focused on running many independent chains in parallel. Here, we take an alternative approach: we propose algorithms to evaluate MCMC samplers in parallel across the chain length. To do this, we build on recent methods for parallel evaluation of nonlinear recursions that formulate the state sequence as a solution to a fixed-point problem and solve for the fixed-point using a parallel form of Newton's method. We show how this approach can be used to parallelize Gibbs, Metropolis-adjusted Langevin, and Hamiltonian Monte Carlo sampling across the sequence length. In several examples, we demonstrate the simulation of up to hundreds of thousands of MCMC samples with only tens of parallel Newton iterations. Additionally, we develop two new parallel quasi-Newton methods to evaluate nonlinear recursions with lower memory costs and reduced runtime. We find that the proposed parallel algorithms accelerate MCMC sampling across multiple examples, in some cases by more than an order of magnitude compared to sequential evaluation.
format Preprint
id arxiv_https___arxiv_org_abs_2508_18413
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Parallelizing MCMC Across the Sequence Length
Zoltowski, David M.
Wu, Skyler
Gonzalez, Xavier
Kozachkov, Leo
Linderman, Scott W.
Computation
Markov chain Monte Carlo (MCMC) methods are foundational algorithms for Bayesian inference and probabilistic modeling. However, most MCMC algorithms are inherently sequential and their time complexity scales linearly with the sequence length. Previous work on adapting MCMC to modern hardware has therefore focused on running many independent chains in parallel. Here, we take an alternative approach: we propose algorithms to evaluate MCMC samplers in parallel across the chain length. To do this, we build on recent methods for parallel evaluation of nonlinear recursions that formulate the state sequence as a solution to a fixed-point problem and solve for the fixed-point using a parallel form of Newton's method. We show how this approach can be used to parallelize Gibbs, Metropolis-adjusted Langevin, and Hamiltonian Monte Carlo sampling across the sequence length. In several examples, we demonstrate the simulation of up to hundreds of thousands of MCMC samples with only tens of parallel Newton iterations. Additionally, we develop two new parallel quasi-Newton methods to evaluate nonlinear recursions with lower memory costs and reduced runtime. We find that the proposed parallel algorithms accelerate MCMC sampling across multiple examples, in some cases by more than an order of magnitude compared to sequential evaluation.
title Parallelizing MCMC Across the Sequence Length
topic Computation
url https://arxiv.org/abs/2508.18413