PPF: A parallel particle filtering library

Ömer Faruk Demirel, Ihor Smal, Wiro J. Niessen, Erik Meijering, Ivo F. SbalzariniarXiv 2013 · DOI

TL;DR

This paper introduces the PPF library, a Java-based software toolkit designed to simplify and accelerate parallel particle filtering (PF) applications. By combining MPI and multithreading, PPF enables efficient hybrid parallelism, making complex PF algorithms more accessible to developers and achieving significant speedups on large-scale problems.

What Problem Does This Paper Address?

Particle filters (PFs) are powerful algorithms for tracking and state estimation in complex systems, finding applications in fields ranging from economics to robotics and biological imaging. However, their inherent computational intensity poses a significant challenge, especially for real-time applications or when dealing with massive datasets. While various approaches exist to tackle this, including algorithmic improvements and specialized hardware implementations, developing efficient parallel PF solutions remains a complex task for application developers due to the intricacies of parallel programming. This paper addresses the need for a user-friendly, scalable, and efficient software library that abstracts away these complexities and facilitates the development of parallel PF applications.

Methods

The core contribution is the PPF (Parallel Particle Filtering) library, implemented in Java. PPF leverages a multi-level hybrid parallelism strategy, combining MPI (Message Passing Interface) for distributed-memory communication and Java threads for shared-memory parallelism. Key features include:

  • OpenMPI Java Bindings: Utilizes recent Java bindings for MPI, enabling inter-process communication.
  • Dynamic Load Balancing (DLB): Implements various DLB schedules (Greedy, Sorted Greedy, Largest Gradient) to rebalance workload across processes, particularly during the resampling phase.
  • Thread Balancing: Employs a checkerboard-like scheme for intra-process load balancing, adapting to the posterior distribution's support.
  • Algorithmic Improvements: Incorporates techniques like input-space domain decomposition (MPI-level) and image patch processing (thread-level) to optimize computations.
  • Piecewise Constant Sequential Importance Resampling (pcSIR): Offers a faster approximate SIR algorithm for potential speedups.
  • Extensibility: Provides interfaces for popular image processing applications like ImageJ and Fiji, allowing seamless integration.

Datasets

The paper does not introduce new datasets but uses synthetic images for evaluating the PF application. These synthetic images are designed to mimic real-world scenarios in fluorescence microscopy, featuring low signal-to-noise ratios and objects with Gaussian point-spread functions. The experiments involve tracking sub-cellular objects over sequences of these synthetic images.

Key Insights and Ideas

  • Hybrid Parallelism is Key: Combining MPI and Java threads effectively unlocks multi-level parallelism, crucial for modern HPC systems. This approach offers flexibility in how processes and threads are mapped to hardware.
  • Abstraction is Crucial for Usability: By hiding the complexities of MPI and thread management, PPF empowers application developers to focus on the PF logic rather than low-level parallel programming.
  • Load Balancing is Not One-Size-Fits-All: Different DLB strategies (Greedy, Sorted Greedy, LGS) offer trade-offs between optimality and communication overhead, allowing developers to choose based on their specific needs.
  • Thread Balancing Matters for Image Processing: Adaptive checkerboard-like thread balancing is essential for efficient image processing tasks where object localization can lead to uneven workload distribution among threads.
  • Algorithmic Enhancements Complement Parallelism: Techniques like input-space domain decomposition and image patch processing can significantly boost performance by reducing redundant computations.

Key Results

  • The PPF library successfully runs a 38 million particle problem (approximately 1.86 GB of data) on 192 cores with a 67% parallel efficiency for the ARNA algorithm.
  • For RNA, parallel efficiencies of 65% and 67% were achieved on 192 cores for different particle exchange ratios.
  • The library demonstrated significant runtime reductions, with an example showing a reduction from about 50 minutes on a single core to about 20 seconds on 192 cores.
  • RPA experiments showed that the Largest Gradient Scheduler (LGS) provided the best scalability due to its linear communication complexity.

Limitations and Future Work

  • Scalability Limits: Beyond 192 cores, parallel efficiencies for RNA variants dropped below 40% as the number of particles per process became too small to amortize communication overhead.
  • Future Work: The authors suggest extending PPF to support Graphics Processing Units (GPUs) for further acceleration and exploring MPI 3.0 extensions for new DLB algorithms, particularly for RPA. They also aim to investigate non-blocking collective operations.

Summary updated

BibTeX
@misc{demirel2013ppf,
  author = {Ömer Faruk Demirel and Ihor Smal and Wiro J. Niessen and Erik Meijering and Ivo F. Sbalzarini},
  title = {{PPF: A parallel particle filtering library}},
  year = {2013},
  eprint = {1310.5045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1310.5045},
}
Figure