variational combinatorial sequential monte carlo methods for bayesian phylogenetic inference

Antonio Khalil Moretti, Liyi Zhang, Christian A. Naesseth, Hadiah Venner, David M. Blei, Itsik Pe'er

Abstract

Reconstructing the evolutionary "Tree of Life" is a fundamental challenge in biology, characterized by a vast combinatorial search space. Traditional Bayesian methods like Markov Chain Monte Carlo (MCMC) often suffer from slow convergence and local optima. This paper introduces Variational Combinatorial Sequential Monte Carlo (VCSMC), a novel framework that integrates Variational Inference (VI) with Sequential Monte Carlo (SMC) to learn optimal tree-building strategies. By leveraging a differentiable look-ahead mechanism, the proposed methods achieve higher accuracy and faster convergence than state-of-the-art baselines on diverse datasets, including complex viral genomes.

Introduction

Phylogenetic inference involves determining the most likely branching structure (topology) and mutation timings (branch lengths) for a set of genetic sequences. The primary obstacle is the combinatorial explosion of possible trees; for instance, 50 species can form more trees than there are atoms in the universe. While MCMC has been the standard, its "random walk" nature is often inefficient. Newer variational methods often require pre-computed "warm starts" or scale poorly as the number of species increases. VCSMC addresses these gaps by framing tree reconstruction as a learnable sequential process.

Methodology

The core of the proposed approach is the combination of Combinatorial Sequential Monte Carlo (CSMC) with variational optimization.

VCSMC Framework

VCSMC treats tree construction as a sequence of "coalescence" events (merging branches). It uses a CSMC sampler to provide an unbiased estimate of the marginal likelihood. This estimate serves as the Evidence Lower Bound (ELBO), which is optimized via gradient descent. To handle the discrete nature of tree topology choices, the authors utilize the Gumbel-Softmax trick, making the entire process differentiable.

The VCSMC tree-building process involving resampling, proposal, and weighting steps.

Variational Nested CSMC (VNCSMC)

A significant extension is VNCSMC, which introduces a "look-ahead" mechanism. Instead of making blind sequential choices, VNCSMC estimates the quality of potential future states by sampling sub-branch lengths. This nested approach provides an exact approximation of the theoretically optimal proposal distribution, significantly reducing variance during training and improving the search for high-probability trees.

Experimental Evaluation

The authors evaluated VCSMC and VNCSMC across several benchmarks:

  1. Primate Mitochondrial DNA: A 12-species dataset used to verify the recovery of well-known evolutionary relationships.
  2. Betacoronavirus Genomes: 17 species, including SARS-CoV-2, with sequences exceeding 36,000 sites, testing the model's ability to handle biologically complex data.
  3. DS1-DS7 Benchmarks: Standard phylogenetic datasets with 27 to 64 taxa for comparison against existing variational methods like VBPI.

Results and Discussion

VCSMC consistently outperformed previous variational methods (VBPI, VBPI-NF) by finding higher log-marginal likelihoods across the DS1-DS7 benchmarks.

Convergence of log-marginal likelihood for VCSMC, VNCSMC, and ppHMC across different particle counts (K).

As shown in the convergence plots, VNCSMC (red) achieves significantly higher log-likelihoods and faster convergence compared to standard VCSMC (blue) and Probabilistic Path Hamiltonian Monte Carlo (ppHMC, green dashed). The "look-ahead" mechanism in VNCSMC proves particularly effective as the number of particles ($K$) increases, leading to more stable and accurate estimates.

Biologically, the model successfully recovered the correct lineages for Betacoronaviruses and accurately placed SARS-CoV-2 within the phylogeny. Notably, the method scales to long sequences (36k sites) without requiring specialized hardware, a common bottleneck for many Bayesian phylogenetic tools.

Conclusion and Future Work

VCSMC represents a significant step forward in differentiable phylogenetics. By learning to search the tree space, it avoids the pitfalls of fixed-rule MCMC and the initialization requirements of previous variational approaches. While the nested mechanism is computationally intensive ($O(KN^3M)$), its parallelizable nature suggests that future GPU implementations could further enhance scalability to thousands of species.

Summary updated

BibTeX
@inproceedings{moretti2021variational,
  author = {Antonio Khalil Moretti and Liyi Zhang and Christian A. Naesseth and Hadiah Venner and David M. Blei and Itsik Pe'er},
  title = {{variational combinatorial sequential monte carlo methods for bayesian phylogenetic inference}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure