Skip to main content
QUICK REVIEW

[Paper Review] A Single SMC Sampler on MPI that Outperforms a Single MCMC Sampler

Alessandro Varsi, Lykourgos Kekempanos|arXiv (Cornell University)|May 24, 2019
Target Tracking and Data Fusion in Sensor NetworksComputer Science23 references3 citations
TL;DR

This paper presents a parallel MPI implementation of a single Sequential Monte Carlo (SMC) sampler that outperforms a single-core Metropolis-Hastings MCMC sampler in both speed and accuracy. By optimizing the resampling step using a divide-and-conquer approach with bitonic sort and recursive redistribution, the SMC sampler achieves up to 85× speedup or 8× higher accuracy on 512 cores, demonstrating SMC's potential as a scalable alternative to MCMC in Bayesian inference.

ABSTRACT

Markov Chain Monte Carlo (MCMC) is a well-established family of algorithms which are primarily used in Bayesian statistics to sample from a target distribution when direct sampling is challenging. Single instances of MCMC methods are widely considered hard to parallelise in a problem-agnostic fashion and hence, unsuitable to meet both constraints of high accuracy and high throughput. Sequential Monte Carlo (SMC) Samplers can address the same problem, but are parallelisable: they share with Particle Filters the same key tasks and bottleneck. Although a rich literature already exists on MCMC methods, SMC Samplers are relatively underexplored, such that no parallel implementation is currently available. In this paper, we first propose a parallel MPI version of the SMC Sampler, including an optimised implementation of the bottleneck, and then compare it with single-core Metropolis-Hastings. The goal is to show that SMC Samplers may be a promising alternative to MCMC methods with high potential for future improvements. We demonstrate that a basic SMC Sampler with 512 cores is up to 85 times faster or up to 8 times more accurate than Metropolis-Hastings.

Motivation & Objective

  • To address the challenge of parallelizing MCMC methods, which are inherently sequential and hard to scale efficiently across distributed systems.
  • To explore the underutilized potential of SMC Samplers as a parallelizable alternative to MCMC for Bayesian sampling.
  • To implement and evaluate a high-performance, MPI-based SMC sampler with optimized resampling to outperform single-core MCMC in runtime and accuracy.
  • To demonstrate that a single, parallel SMC sampler can surpass a single MCMC instance, thereby justifying further research into SMC optimization.

Proposed method

  • The authors implement a distributed-memory SMC sampler using Message Passing Interface (MPI), porting key components from an existing MPI Particle Filter implementation.
  • They optimize the resampling step using a bitonic sort-based redistribution algorithm with time complexity O((log₂N)²), enabling efficient load balancing across 512 cores.
  • The algorithm uses a recursive divide-and-conquer strategy with MPI_Sendrecv operations to redistribute particles based on copy counts, minimizing communication overhead.
  • The resampling phase is parallelized via a centralized gather-scan-scatter pattern, with the master node handling sorting and redistribution while others contribute and receive data.
  • The implementation includes a nearly-sorted redistribution variant to reduce communication costs and improve scalability on large-scale clusters.
  • The SMC sampler is benchmarked against a single-core Metropolis-Hastings algorithm under identical target distributions to ensure fair comparison.

Experimental results

Research questions

  • RQ1Can a single, parallel SMC sampler outperform a single-core MCMC sampler in terms of both runtime and accuracy?
  • RQ2Is the resampling step in SMC Samplers effectively parallelizable on distributed-memory architectures using MPI?
  • RQ3What performance gains can be achieved by optimizing the resampling algorithm in SMC using bitonic sort and recursive redistribution?
  • RQ4Does the proposed MPI-based SMC implementation scale efficiently across hundreds of cores, and what is its maximum speedup relative to single-core MCMC?

Key findings

  • The MPI-parallelized SMC sampler achieves up to 85 times faster runtime than a single-core Metropolis-Hastings sampler when executed on 512 cores.
  • The SMC sampler achieves up to 8 times higher accuracy than Metropolis-Hastings under the same computational budget, indicating superior sampling efficiency.
  • The optimized resampling algorithm using bitonic sort and recursive redistribution reduces communication overhead and enables effective load balancing across 512 processing elements.
  • The implementation outperforms the O(N) sequential resampling method on all tested configurations, with performance gains becoming significant only beyond 64 cores.
  • The study demonstrates that SMC Samplers are a viable and high-potential alternative to MCMC for Bayesian inference in high-performance computing environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.