[Paper Review] GPU acceleration of the particle filter: the Metropolis resampler
This paper proposes the Metropolis resampler for GPU-accelerated particle filtering, leveraging independent thread-level weight ratios instead of collective prefix sums to enable efficient single-kernel execution. It demonstrates that the Metropolis resampler can outperform standard multinomial and stratified resamplers in runtime when weight variance is low, making it advantageous for performance-critical applications like particle MCMC and real-time systems.
We consider deployment of the particle filter on modern massively parallel hardware architectures, such as Graphics Processing Units (GPUs), with a focus on the resampling stage. While standard multinomial and stratified resamplers require a sum of importance weights computed collectively between threads, a Metropolis resampler favourably requires only pair-wise ratios between weights, computed independently by threads, and can be further tuned for performance by adjusting its number of iterations. While achieving respectable results for the stratified and multinomial resamplers, we demonstrate that a Metropolis resampler can be faster where the variance in importance weights is modest, and so is worth considering in a performance-critical context, such as particle Markov chain Monte Carlo and real-time applications.
Motivation & Objective
- To address the performance bottleneck of resampling in GPU-accelerated particle filtering, particularly due to collective operations like prefix sums.
- To explore alternative resampling algorithms that better exploit GPU parallelism by minimizing thread synchronization and kernel launch overhead.
- To evaluate the Metropolis resampler as a viable, high-performance alternative to multinomial and stratified resamplers in GPU environments.
- To quantify the trade-off between resampling accuracy and runtime by tuning the number of Metropolis iterations B.
- To enable faster execution in performance-critical applications such as particle MCMC and real-time Bayesian inference.
Proposed method
- The Metropolis resampler uses a Markov chain Monte Carlo approach where each thread independently performs B iterations to select ancestors based on weight ratios, avoiding collective operations.
- Each thread starts at a random particle index and stochastically proposes moves to other particles with acceptance probability w_q / w_p, ensuring detailed balance.
- The resampling process is fully parallelizable across threads, requiring only per-thread random number generation and no global synchronization.
- The number of iterations B is analytically derived to ensure convergence within a user-defined error tolerance ε, based on the spectral gap of the transition matrix.
- The method is implemented using a custom CUDA kernel with Tausworthe random number generation, avoiding overhead from dynamic memory allocation.
- Performance is evaluated against multinomial, systematic, and stratified resamplers using synthetic Dirichlet-distributed weights across varying particle counts and concentration parameters.
Experimental results
Research questions
- RQ1Can a resampling algorithm be designed to avoid collective operations like prefix sums, thereby improving GPU performance?
- RQ2Does the Metropolis resampler achieve comparable resampling accuracy to multinomial and stratified resamplers while enabling faster execution on GPUs?
- RQ3How does the number of Metropolis iterations B affect the trade-off between runtime and resampling bias?
- RQ4Under what conditions (e.g., weight variance) does the Metropolis resampler outperform standard resamplers in terms of runtime?
- RQ5Can the Metropolis resampler be effectively tuned for real-time or particle MCMC applications with strict performance constraints?
Key findings
- The Metropolis resampler achieves comparable accuracy to the multinomial resampler, with error converging to multinomial levels as B increases.
- For α = 1 and P ≤ 4096, the Metropolis resampler is the fastest among all tested methods, outperforming multinomial and systematic resamplers.
- At low weight variance (α = 10 and α = 1), the Metropolis resampler is faster than multinomial and systematic resamplers when P ≤ 4096, due to reduced kernel launch overhead.
- The unsorted systematic resampler performs best at high weight variance (α = 0.1 and α = 0.01), both in accuracy and runtime, due to lower sorting overhead.
- The performance of the Metropolis resampler is dominated by random number generation speed, making this the primary target for further optimization.
- The analytical bound on B ensures convergence within a specified tolerance, validating the method’s configurability and reliability under performance constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.