TreeFlow: probabilistic modelling and automatic differentiation for phylogenetics
Official code: christiaanjs/treeflow (13 stars, Jupyter Notebook, GPL-3.0, TensorFlow, last commit 2026-08-04).
Abstract
Probabilistic modelling frameworks are powerful tools for statistical modelling and inference. They are not immediately generalizable to phylogenetic problems due to the particular computational properties of the phylogenetic tree object.
Show full abstractHide
TreeFlow is a software library for probabilistic modelling and automatic differentiation with phylogenetic trees. It embeds phylogenetic trees in the TensorFlow Probability framework, and implements inference algorithms for phylogenetic models given a fixed tree topology. We demonstrate how TreeFlow can be used to quickly implement and assess new models. We also show that it provides reasonable performance for gradient-based inference algorithms compared to specialized computational libraries for phylogenetics.