TreeFlow: probabilistic modelling and automatic differentiation for phylogenetics

Christiaan Swanepoel, Mathieu Fourment, Xiang Ji, Hassan Nasif, Marc A Suchard +2 more
11/9/2022
q-bio.PEstat.CO

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 abstract

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.

View on arXivView PDF

Code Implementations(1)

TensorFlowGPL-3.0

Probabilistic programming & automatic differentiation for phylogenetics

135Jupyter Notebook, PythonSep 10, 20193 months agoGPL-3.0
automatic-differentiationbayesian-inferencephylogeneticstensorflowtensorflow2+1 more

Similar Papers

Cite this paper

@article{swanepoel2022treeflow,
  title  = {TreeFlow: probabilistic modelling and automatic differentiation for phylogenetics},
  author = {Christiaan Swanepoel and Mathieu Fourment and Xiang Ji and Hassan Nasif and Marc A Suchard and Frederick A Matsen and Alexei Drummond},
  year   = {2022},
  eprint = {2211.05220},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.05220}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.05220.svg)](https://codeofpaper.com/paper/2211.05220)

Discussion