arrow
Return

torchtree: Flexible Phylogenetic Model Development and Inference Using PyTorch

delete2025-09-01
delete1
delete
OA
AI
M
Mathieu Fourment *
M
Matthew Macaulay
C
Christiaan Swanepoel
X
Xiang Ji
M
Marc A. Suchard
F
F. A. Matsen
DOI:10.1093/sysbio/syaf047delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
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 data sets. 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 delivers promising approximation results, though accuracy varies across scenarios. Furthermore, we explore the use of the forward Kullback-Leibler (KL) divergence as an optimizing criterion for variational inference, which can handle discontinuous and nondifferentiable models. Our experiments show that inference using the forward KL divergence is frequently faster per iteration compared with the evidence lower bound (ELBO) criterion, although the ELBO-based inference may converge faster in some cases. Overall, torchtree provides a flexible and efficient framework for phylogenetic model development and inference using PyTorch.
Keywords:
Bayesian inference
phylogenetics
PyTorch
variational Bayes
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Systematic Biology cover
Systematic Biology
IF:
5.7
Papers:
2.2K
Citations:
1.9W

Organization

U
University of California Los Angeles
Scholars:
702
Papers: 386
Citations: 10.4W
T
tulane university
Scholars:
1.3W
Papers: 1.0W
Citations: 9
U
University of Auckland
Scholars:
2.3W
Papers: 2.4W
Citations: 3.3W
University of California System cover
University of California System
Scholars:
37.5W
Papers: 33.7W
Citations: 6.6K
U
university of technology sydney
Scholars:
1.6W
Papers: 2.0W
Citations: 25
researcher View more organizations