Deep Generative Models for Phylogenetic Inference with Complex Evolutionary Processes

Ethan Baron, Alan Nawzad Amin, Andrew Gordon Wilson

TL;DR

Reconstructing the "Tree of Life" is notoriously difficult when evolutionary models account for real-world complexities like insertions, deletions, or site-specific selection. This paper introduces a simulation-based inference (SBI) approach using deep generative models that build trees iteratively—via top-down, middle-out, or bottom-up paradigms—trained through a discrete diffusion framework. The result is a method that provides more accurate posterior distributions than previous deep learning approaches and outperforms traditional tools on complex, "intractable" evolutionary data.

What Problem Does This Paper Address?

In phylogenetics, researchers try to infer the evolutionary history (a tree) of species based on their DNA or protein sequences. Traditionally, this is done using Bayesian methods like Markov Chain Monte Carlo (MCMC). However, MCMC requires a "likelihood function"—a mathematical way to score how well a tree fits the data.

While likelihoods are easy to calculate for simple models, they become "intractable" (impossible or prohibitively slow to compute) when we include realistic biological processes like:

  • InDels: Insertions and deletions of genetic material.
  • Context-dependence: When a mutation at one site depends on its neighbors.
  • Selection pressure: Non-random survival of specific mutations.

Because traditional tools can't handle these complexities, scientists often use "misspecified" simple models, which can lead to incorrect evolutionary conclusions.

Methods

The authors propose Simulation-Based Inference (SBI). Since we can't calculate the likelihood for complex models, we instead simulate millions of trees and sequences using those models. We then train a neural network to look at the sequences and predict the tree.

The paper’s key innovation lies in Iterative Generative Models trained via Discrete Diffusion:

  1. Three Paradigms: Instead of predicting a tree in one shot, the models build it step-by-step using three different strategies:
  2. Bottom-up: Merging small subtrees into larger ones (like Neighbor-Joining).
  3. Middle-out: Starting with a small core and grafting new species onto edges.
  4. Top-down: Starting with all species at the root and recursively splitting them into groups.
  5. Discrete Diffusion: The models are trained by taking a "true" tree, gradually "noising" it (removing nodes or edges), and teaching the network to reverse the process.
  6. Architecture: They use an optimized version of EvoPF (an axial attention transformer) that scales efficiently to longer sequences ($O(NL^2)$ complexity).

Datasets

The models were trained and evaluated on:

  • Simulated Data: Three evolutionary models of increasing difficulty: JC (simple), CAT (complex selection), and InDel (intractable likelihood).
  • Scale: Datasets ranging from 25 to 65 species (taxa) and sequence lengths from 300 to 2,600.
  • Real-World Benchmarks: Three classical datasets: tetrapod ribosomal DNA ($N=27$), insect wingless gene ($N=50$), and fungal ribosomal DNA ($N=64$).

Key Insights and Ideas

  • Inductive Biases Matter: One of the most interesting findings is that different generation paradigms perform better on different types of data. For example, the top-down approach excelled on InDel data, likely because it can identify deep evolutionary splits by looking at large-scale patterns of insertions and deletions first.
  • Iterative > One-Shot: Previous deep learning models (like Phyloformer 2) tried to predict the tree in a single pass. By using an iterative approach, these new models can represent much more complex and "wiggly" posterior distributions, capturing the true uncertainty of evolution.
  • Prior Control: The authors show they can mathematically adjust the model's "starting guess" to match different biological priors (like the Yule or PDA models), making the framework highly flexible for different research needs.

Key Results

  • Better Fit: The proposed models achieved significantly higher ELBO (Evidence Lower Bound) scores than the previous state-of-the-art, Phyloformer 2, across all test cases.
  • MCMC Accuracy: On real datasets where MCMC is possible, the generative models reconstructed the "gold standard" posterior distribution much more accurately than previous methods.
  • Outperforming Traditional Tools: On "intractable" data (InDels), the generative models produced more accurate trees than IQ-Tree (a standard maximum-likelihood tool), because IQ-Tree was forced to use a simpler, incorrect model.
  • Efficiency: Despite the iterative steps, the models remain faster than traditional MCMC and competitive with fast maximum-likelihood heuristics for most settings.

Limitations and Future Work

  • Scaling to "Big Data": The current study caps at 65 species. While sufficient for many studies, pandemic tracking or full-genome analysis requires scaling to thousands of species. The authors suggest combining their approach with "super-tree" methods in the future.
  • Branch Lengths: This paper focuses on the topology (the branching structure) of the tree. Future work is needed to integrate the prediction of branch lengths (the time between evolutionary events).
  • The "Foundation Model" Vision: The authors propose that this framework could lead to a "Phylogenetic Foundation Model"—a single network trained on a massive variety of simulations that could automatically adapt to any real-world dataset.

Summary updated

BibTeX
@inproceedings{baron2026deep,
  author = {Ethan Baron and Alan Nawzad Amin and Andrew Gordon Wilson},
  title = {{Deep Generative Models for Phylogenetic Inference with Complex Evolutionary Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ZpGlbpubQi},
}
Figure