Probabilistic Programming for Birth-Death Models of Evolution Using an Alive Particle Filter with Delayed Sampling

Jan Kudlicka, Lawrence M. Murray, Fredrik Ronquist, Thomas B. Schön

Abstract

We consider probabilistic programming for birth-death models of evolution and introduce a new widely-applicable inference method that combines an extension of the alive particle filter (APF) with delayed sampling (automatic Rao-Blackwellization). This approach addresses the "zero-weight" problem common in evolutionary simulations, where lineages frequently go extinct, leading to algorithmic collapse in standard particle filters.

Introduction

In statistical phylogenetics, birth-death models are essential for describing how species diversify and go extinct over millions of years. While powerful, these models are notoriously difficult to implement. Researchers typically rely on bespoke inference code because general-purpose engines in Probabilistic Programming Languages (PPLs), such as the Bootstrap Particle Filter (BPF), often fail. This failure is primarily due to the "zero-weight" problem: in these models, many simulated evolutionary paths lead to total extinction, causing the particle filter to collapse or become highly inefficient.

Methods

The authors propose a two-pronged algorithmic solution implemented in the Birch PPL:

  1. Extended Alive Particle Filter (APF): Unlike a standard filter that may stall with dead-end simulations, the APF continues resampling and propagating until it identifies a "live" particle with a non-zero weight. The authors extended the original APF theory—which previously handled only binary 0/1 weights—to accommodate continuous importance weights.
  2. Delayed Sampling: This technique provides automatic Rao-Blackwellization. Rather than sampling specific birth or death rates at the start, the algorithm maintains a conjugate prior over these rates and only samples them at the end, drastically reducing estimate variance.
Figure 2: The relationship between the full evolutionary tree (left) and the observed tree (right). The inference process involves augmenting the observed tree with hidden speciation events and extinct lineages.

A key insight of this method is "turning the problem upside down." Instead of simulating trees forward from the past and hoping they match observed data, the algorithm starts with the observed tree and augments it with hidden speciation events that went extinct (as illustrated in Figure 2), making the simulation significantly more targeted.

Results

The researchers evaluated their method using the Cetacean phylogeny (87 extant species) and the complex Binary-State Speciation and Extinction (BiSSE) model. The performance gains were dramatic:

  • Efficiency: For the BiSSE model, the Relative Effective Sample Size (RESS) increased by a factor of 29, and the Conditional Acceptance Rate (CAR) increased by 30 compared to the standard BPF.
  • Stability: The variance of the log-marginal likelihood was reduced by more than 1,150 times.
Figure 3: Posterior distributions for the birth rate (λ) and death rate (μ) obtained using the proposed inference method.

As shown in Figure 3, the method successfully recovers the posterior distributions for the diversification parameters. While the APF requires more simulations to find "alive" particles, the massive increase in accuracy and stability far outweighs the additional computational cost.

Conclusion

The authors argue that the extended APF should serve as a "drop-in" replacement for the standard BPF in PPLs. It performs identically to the BPF when zero weights are absent but prevents algorithmic failure when they occur. Future work will focus on joint inference—learning tree topology and birth-death rates simultaneously—and applying these strategies to other fields like robotics or financial modeling where zero-likelihood states are common.

Summary updated

BibTeX
@inproceedings{kudlicka2019probabilistic,
  author = {Jan Kudlicka and Lawrence M. Murray and Fredrik Ronquist and Thomas B. Schön},
  title = {{Probabilistic Programming for Birth-Death Models of Evolution Using an Alive Particle Filter with Delayed Sampling}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2019},
  url = {https://openreview.net/forum?id=vEzvkiMDd4T},
}
Figure