A wall-time minimizing parallelization strategy for approximate Bayesian computation

Emad Alamoudi, Felipe Reck, Nils Bundgaard, Frederik Graw, Lutz Brusch, Jan Hasenauer, Yannik Schälte

Approximate Bayesian Computation (ABC) is a powerful tool for parameter estimation in mechanistic models where likelihood functions are intractable. However, the computational cost—often requiring millions of simulations—necessitates efficient parallelization. Traditional parallelization strategies for ABC Sequential Monte Carlo (SMC) often leave high-performance computing (HPC) resources underutilized. A recent study published in PLOS ONE introduces "look-ahead scheduling" (LA), a strategy that minimizes wall-time by preemptively sampling for future generations, achieving speedups of up to 50%.

The Challenge: Idle Resources in Parallel ABC

In ABC SMC, simulations are performed across multiple "generations." Standard parallelization approaches face a significant bottleneck known as the "tail problem."

  1. Static Scheduling (STAT): Tasks are pre-assigned to workers. If some simulations take longer than others, many processors sit idle waiting for the slowest ones to finish.
  2. Dynamic Scheduling (DYN): Workers request new tasks as they finish. While more efficient than STAT, workers still become idle at the end of a generation because they cannot start the next generation until the current one is fully processed and a new "proposal distribution" is calculated.
Comparison of scheduling strategies: STAT, DYN, and the proposed Look-Ahead (LA) approach. LA minimizes idle time by starting work on the next generation before the current one finishes.

The Solution: Look-Ahead Scheduling

The proposed Look-Ahead (LA) strategy eliminates this idle time. As soon as a worker completes its tasks for generation $t$, it immediately begins sampling for generation $t+1$, even if generation $t$ is not yet complete.

Handling the Proposal Distribution

The primary challenge is that the proposal distribution for generation $t+1$ depends on the results of generation $t$. The authors explored two variants:

  • LA Past: Reuses the proposal distribution from the previous generation ($t-1$).
  • LA Prel: Constructs a "preliminary" proposal based on the particles already accepted in the current generation $t$.
Flowchart of the Look-Ahead (LA) algorithm, illustrating the transition between generations and the logic for preemptive sampling.

To maintain statistical rigor, the authors developed a reweighting scheme using a self-normalized importance estimator. They mathematically proved that this approach remains unbiased, ensuring that the speed gains do not come at the cost of accuracy.

Performance and Robustness

The strategy was evaluated across four models ranging from synthetic bimodal distributions to complex biological systems like tumor spheroid growth and liver regeneration.

Key Findings:

  • Efficiency Gains: The LA strategy typically provided a 10–20% reduction in wall-time compared to dynamic scheduling. In scenarios with high parallelism (many workers relative to population size), speedups reached up to 50%.
  • Addressing Run-time Bias: The authors noted that if simulation time is correlated with parameter values, the "LA Prel" method could introduce bias. However, the "LA Past" variant proved robust against this effect, making it the recommended choice for most real-world applications.
  • Scalability: The benefits of look-ahead scheduling become more pronounced as the number of parallel workers increases, making it ideal for large-scale HPC environments.

Conclusion

Look-ahead scheduling represents a significant optimization for ABC SMC algorithms. By effectively utilizing idle computing cycles, it allows researchers to perform complex Bayesian inference faster and more cost-effectively. The provided implementation and theoretical proof of unbiasedness offer a solid foundation for integrating this strategy into existing ABC frameworks.

Source: Alamoudi E, et al. (2024) A wall-time minimizing parallelization strategy for approximate Bayesian computation. PLoS ONE 19(2): e0294015. https://doi.org/10.1371/journal.pone.0294015

Summary updated

BibTeX
@inproceedings{alamoudi2024wall,
  author = {Emad Alamoudi and Felipe Reck and Nils Bundgaard and Frederik Graw and Lutz Brusch and Jan Hasenauer and Yannik Schälte},
  title = {{A wall-time minimizing parallelization strategy for approximate Bayesian computation}},
  booktitle = {PLoS},
  year = {2024},
  doi = {10.1371/journal.pone.0294015},
}
Figure