A Variational Approach to Bayesian Phylogenetic Inference
Cheng Zhang, Frederick A. Matsen
TL;DR
This work introduces VBPI, a variational framework for Bayesian phylogenetic inference that leverages Subsplit Bayesian Networks (SBNs) to model tree topologies and a structured, shared amortization of branch lengths across topologies. By employing multi-sample ELBO objectives (IWAE-style) and advanced gradient estimators (VIMCO, RWS) along with two parameterizations for branch lengths (Split-based and Primary Subsplit Pair) and subsplit support estimation, VBPI achieves competitive posterior approximations to MCMC methods with fewer iterations. The approach extends to time-measured phylogenies by incorporating coalescent priors and node-height reparameterizations, demonstrating strong performance on real data (e.g., influenza, Dengue, HCV) and providing reliable marginal likelihood estimates via importance sampling. Overall, VBPI offers a scalable, flexible alternative to MCMC for complex phylogenetic models, with practical applicability to model comparison and demographic inference, while highlighting avenues for further improvement using richer variational families and dynamic subsplit support.
Abstract
Bayesian phylogenetic inference is currently done via Markov chain Monte Carlo (MCMC) with simple proposal mechanisms. This hinders exploration efficiency and often requires long runs to deliver accurate posterior estimates. In this paper, we present an alternative approach: a variational framework for Bayesian phylogenetic analysis. We propose combining subsplit Bayesian networks, an expressive graphical model for tree topology distributions, and a structured amortization of the branch lengths over tree topologies for a suitable variational family of distributions. We train the variational approximation via stochastic gradient ascent and adopt gradient estimators for continuous and discrete variational parameters separately to deal with the composite latent space of phylogenetic models. We show that our variational approach provides competitive performance to MCMC, while requiring much fewer (though more costly) iterations due to a more efficient exploration mechanism enabled by variational inference. Experiments on a benchmark of challenging real data Bayesian phylogenetic inference problems demonstrate the effectiveness and efficiency of our methods.
