Related Experiment Video
Updated: Jan 8, 2026

Planar Gradient Diffusion System to Investigate Chemotaxis in a 3D Collagen Matrix
Published on: June 12, 2015
Phylograd: fast column-specific calculation of substitution model gradients
Benjamin Lieser1,2, Georgy Belousov3, Johannes Söding3,4
1Quantitative and Computational Biology, Max Planck Institute for Multidisciplinary Sciences, Am Faßberg 11, Göttingen, 37077, Germany. benjamin.lieser@mpinat.mpg.de.
Background:
Most popular tools for reconstructing phylogenetic trees from multiple sequence alignments use a model of molecular evolution in which a single substitution matrix or a small set of fixed matrices are shared between all columns. Models with column-specific rate matrices can in principle be fit by automatic differentiation methods, but in practice the heavy computational burden associated with computing the gradients of the many matrix exponentials has hindered exploration of such models.
Implementation:
Here, we present a highly efficient approach for reverse-mode differentiation of the log likelihood computed with Felsenstein's algorithm under any time-reversible substitution model. PhyloGrad is implemented in Rust and has Python bindings to easily combine it with automatic differentiation tools.
Results:
Depending on the tree size, PhyloGrad is 30-100 times faster than automatic differentiation in Pytorch and uses 10-100 times less memory. Even in the task of fitting one global model it is still at least 10 times faster than IQ-TREE3. PhyloGrad accelerates current model optimizations and enables the field to easily explore and implement novel site-specific models.
More Related Videos
Related Concept Videos
Mechanistic Models: Compartment Models in Algorithms for Numerical Problem Solving
In individual population analyses, different algorithms are employed, such as Cauchy's method, which uses a...
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
The Small x Assumption
Gradient and Del Operator
Calculating Standard Free Energy Changes
Calculating Equilibrium Concentrations
A more...

