Torchtree: flexible phylogenetic model development and inference using PyTorch
Mathieu Fourment, Matthew Macaulay, Christiaan J Swanepoel, Xiang Ji,, Marc A Suchard, Frederick A Matsen IV

TL;DR
Torchtree is a flexible Python framework built on PyTorch that enables efficient development and inference of complex phylogenetic models, offering alternatives to traditional MCMC methods with comparable speed and accuracy.
Contribution
Introduces torchtree, a novel framework for phylogenetic inference that utilizes variational Bayes and automatic differentiation within PyTorch, improving scalability and flexibility.
Findings
Torchtree performs similarly to BEAST in speed and accuracy.
Using forward KL divergence can speed up inference per iteration.
ELBO-based inference may converge faster in some cases.
Abstract
Bayesian inference has predominantly relied on the Markov chain Monte Carlo (MCMC) algorithm for many years. However, MCMC is computationally laborious, especially for complex phylogenetic models of time trees. This bottleneck has led to the search for alternatives, such as variational Bayes, which can scale better to large datasets. In this paper, we introduce torchtree, a framework written in Python that allows developers to easily implement rich phylogenetic models and algorithms using a fixed tree topology. One can either use automatic differentiation, or leverage torchtree's plug-in system to compute gradients analytically for model components for which automatic differentiation is slow. We demonstrate that the torchtree variational inference framework performs similarly to BEAST in terms of speed and approximation accuracy. Furthermore, we explore the use of the forward KL…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEvolution and Paleontology Studies · Data Analysis with R
MethodsVariational Inference · SPEED: Separable Pyramidal Pooling EncodEr-Decoder for Real-Time Monocular Depth Estimation on Low-Resource Settings
