torchtree: Flexible Phylogenetic Model Development and Inference Using PyTorch.

Saved in:
Bibliographic Details
Title: torchtree: Flexible Phylogenetic Model Development and Inference Using PyTorch.
Authors: Fourment, Mathieu1 (AUTHOR), Macaulay, Matthew1 (AUTHOR), Swanepoel, Christiaan J2 (AUTHOR), Ji, Xiang3 (AUTHOR), Suchard, Marc A4 (AUTHOR), Matsen IV, Frederick A5 (AUTHOR)
Source: Systematic Biology. Jan2026, Vol. 75 Issue 1, p39-51. 13p.
Subjects: Phylogenetic models, Variational approach (Mathematics), Bayesian analysis, Statistical models, Automatic differentiation, Markov chain Monte Carlo
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 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. [ABSTRACT FROM AUTHOR]
Copyright of Systematic Biology is the property of Oxford University Press / USA and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
FullText Text:
  Availability: 0
Header DbId: egs
DbLabel: Engineering Source
An: 190916331
AccessLevel: 6
PubType: Academic Journal
PubTypeId: academicJournal
PreciseRelevancyScore: 0
IllustrationInfo
Items – Name: Title
  Label: Title
  Group: Ti
  Data: torchtree: Flexible Phylogenetic Model Development and Inference Using PyTorch.
– Name: Author
  Label: Authors
  Group: Au
  Data: <searchLink fieldCode="AR" term="%22Fourment%2C+Mathieu%22">Fourment, Mathieu</searchLink><relatesTo>1</relatesTo> (AUTHOR)<br /><searchLink fieldCode="AR" term="%22Macaulay%2C+Matthew%22">Macaulay, Matthew</searchLink><relatesTo>1</relatesTo> (AUTHOR)<br /><searchLink fieldCode="AR" term="%22Swanepoel%2C+Christiaan+J%22">Swanepoel, Christiaan J</searchLink><relatesTo>2</relatesTo> (AUTHOR)<br /><searchLink fieldCode="AR" term="%22Ji%2C+Xiang%22">Ji, Xiang</searchLink><relatesTo>3</relatesTo> (AUTHOR)<br /><searchLink fieldCode="AR" term="%22Suchard%2C+Marc+A%22">Suchard, Marc A</searchLink><relatesTo>4</relatesTo> (AUTHOR)<br /><searchLink fieldCode="AR" term="%22Matsen IV%2C+Frederick+A%22">Matsen IV, Frederick A</searchLink><relatesTo>5</relatesTo> (AUTHOR)
– Name: TitleSource
  Label: Source
  Group: Src
  Data: <searchLink fieldCode="JN" term="%22Systematic+Biology%22">Systematic Biology</searchLink>. Jan2026, Vol. 75 Issue 1, p39-51. 13p.
– Name: Subject
  Label: Subjects
  Group: Su
  Data: <searchLink fieldCode="DE" term="%22Phylogenetic+models%22">Phylogenetic models</searchLink><br /><searchLink fieldCode="DE" term="%22Variational+approach+%28Mathematics%29%22">Variational approach (Mathematics)</searchLink><br /><searchLink fieldCode="DE" term="%22Bayesian+analysis%22">Bayesian analysis</searchLink><br /><searchLink fieldCode="DE" term="%22Statistical+models%22">Statistical models</searchLink><br /><searchLink fieldCode="DE" term="%22Automatic+differentiation%22">Automatic differentiation</searchLink><br /><searchLink fieldCode="DE" term="%22Markov+chain+Monte+Carlo%22">Markov chain Monte Carlo</searchLink>
– Name: Abstract
  Label: Abstract
  Group: Ab
  Data: 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. [ABSTRACT FROM AUTHOR]
– Name: AbstractSuppliedCopyright
  Label:
  Group: Ab
  Data: <i>Copyright of Systematic Biology is the property of Oxford University Press / USA and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract.</i> (Copyright applies to all Abstracts.)
PLink https://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=egs&AN=190916331
RecordInfo BibRecord:
  BibEntity:
    Identifiers:
      – Type: doi
        Value: 10.1093/sysbio/syaf047
    Languages:
      – Code: eng
        Text: English
    PhysicalDescription:
      Pagination:
        PageCount: 13
        StartPage: 39
    Subjects:
      – SubjectFull: Phylogenetic models
        Type: general
      – SubjectFull: Variational approach (Mathematics)
        Type: general
      – SubjectFull: Bayesian analysis
        Type: general
      – SubjectFull: Statistical models
        Type: general
      – SubjectFull: Automatic differentiation
        Type: general
      – SubjectFull: Markov chain Monte Carlo
        Type: general
    Titles:
      – TitleFull: torchtree: Flexible Phylogenetic Model Development and Inference Using PyTorch.
        Type: main
  BibRelationships:
    HasContributorRelationships:
      – PersonEntity:
          Name:
            NameFull: Fourment, Mathieu
      – PersonEntity:
          Name:
            NameFull: Macaulay, Matthew
      – PersonEntity:
          Name:
            NameFull: Swanepoel, Christiaan J
      – PersonEntity:
          Name:
            NameFull: Ji, Xiang
      – PersonEntity:
          Name:
            NameFull: Suchard, Marc A
      – PersonEntity:
          Name:
            NameFull: Matsen IV, Frederick A
    IsPartOfRelationships:
      – BibEntity:
          Dates:
            – D: 01
              M: 01
              Text: Jan2026
              Type: published
              Y: 2026
          Identifiers:
            – Type: issn-print
              Value: 10635157
          Numbering:
            – Type: volume
              Value: 75
            – Type: issue
              Value: 1
          Titles:
            – TitleFull: Systematic Biology
              Type: main
ResultId 1