DeepPhylo Uses Discrete Diffusion to Map Evolutionary Trees From DNA
A new discrete-diffusion approach builds phylogenetic trees step by step, outperforming Phyloformer 2 and matching MCMC under realistic evolutionary models.
Takeaways
- Baron, Amin, and Wilson introduce discrete diffusion models for phylogenetic inference, to appear at NeurIPS 2026.
- Three construction paradigms, top-down, middle-out, and bottom-up, iteratively build trees from noise.
- Simulation-based training removes the need for tractable likelihoods, enabling realistic evolutionary models with indels and variable rates.
- Recovers MCMC posteriors far more accurately than previous neural method Phyloformer 2 on DS1 to DS8.
- Matches IQ-Tree on simple data and beats it on realistic data, up to 65 taxa.
- Rao-Blackwellized loss and graph-conditioning tricks are what make training stable.
Ethan Baron, Alan N. Amin, and Andrew Gordon Wilson have introduced a conditional generative model that samples evolutionary tree topologies directly from sequence alignments. Their paper, accepted at NeurIPS 2026, applies discrete diffusion to tree structure and reports competitive results on synthetic data and standard Bayesian phylogenetics benchmarks.
The authors informally call the approach DeepPhylo. It shifts computation into simulation and neural-network training, allowing inference under evolutionary processes whose likelihoods are difficult or impractical to evaluate. Once trained, the model generates posterior samples through an iterative reverse process conditioned on an observed DNA or protein alignment.
Likelihoods set the ceiling
Phylogenetic inference estimates evolutionary relationships among taxa from their sequences. Bayesian workflows define a prior over trees and evolutionary parameters, evaluate the sequence likelihood for each candidate, and use Markov chain Monte Carlo, or MCMC, to approximate the resulting posterior distribution.
Standard substitution models can incorporate features such as unequal base frequencies and variation in mutation rates across sites. Their tractability still depends on simplifying assumptions, including limited dependence between positions and a fixed alignment. Jointly modeling substitutions, insertions, deletions, selection, and site-specific interactions can make likelihood evaluation prohibitively expensive.
Maximum-likelihood tools such as IQ-TREE offer fast, mature inference under a broad family of tractable models. Their estimates remain tied to the selected likelihood model, while MCMC adds the cost of exploring a vast space of possible topologies and parameters. For \(n\) labeled taxa, the number of binary tree topologies grows super-exponentially with \(n\).
Learning the reverse route
Simulation-based inference requires paired examples of trees and the alignments generated from them. A simulator draws an evolutionary history, produces sequences under the chosen process, and supplies the training target. The neural network then learns a conditional distribution over tree topologies given an alignment.
Baron, Amin, and Wilson represent generation as a discrete diffusion process. During training, a forward process progressively corrupts a known tree into a noisy structure. The network learns the corresponding reverse transitions, using sequence information to reconstruct and sample plausible trees.
The paper studies three ways to organize those transitions:
- Top-down: begin at the root and repeatedly route each taxon through the developing hierarchy.
- Middle-out: expand a partial tree by attaching taxa to existing edges.
- Bottom-up: begin with individual leaves and merge subtrees through an agglomerative process.
Several components reduce training noise and preserve information from long alignments. A Rao-Blackwellized Kullback-Leibler estimator analytically averages over some random variables, lowering the variance of the training objective. Custom graph-conditioning mechanisms connect sequence features to partial trees, while covariance pooling summarizes relationships across alignment positions.
Benchmarks test two kinds of accuracy
The reported experiments include synthetic datasets and the DS1 through DS8 benchmarks used in Bayesian phylogenetics. The largest examples contain 65 taxa and alignments with more than 100,000 sequence tokens.
| Method | Comparison | Reported result |
|---|---|---|
| Phyloformer 2 | Approximation of reference posterior distributions | The diffusion models produce samples closer to the MCMC reference. |
| IQ-TREE | Tree accuracy on simulated data | Accuracy is comparable under simpler models and higher under the richer simulated processes tested. |
| MrBayes | Posterior reference on DS1 through DS8 | Sample distributions and split probabilities closely track the MCMC posterior. |
On DS1 through DS8, the authors compare 1,000 model samples with 1,000 MrBayes samples using maximum mean discrepancy, or MMD. This kernel-based metric evaluates whole sample distributions without requiring identical trees in each set. The model also produces calibrated posterior split probabilities, which estimate how often each edge-induced division of the taxa appears in the posterior.
Those measurements evaluate uncertainty as well as topology. A method can identify a strong single tree while assigning poor probabilities to alternatives; posterior MMD and split calibration expose that failure mode.
Simulation expands the model menu
Training from simulations permits evolutionary processes that are easy to generate but difficult to score with a tractable likelihood. Candidate simulators can include variable mutation rates, insertions and deletions, dependencies between sites, and selection effects, provided they can generate enough representative training data.
Amortization changes the computational profile of inference. Simulation and optimization incur a substantial upfront cost, after which the trained network can process additional alignments drawn from the same modeling regime. This setup is most applicable to recurring analyses that share a simulator, prior, sequence format, and taxon range.
The three construction paradigms also encode different structural biases:
| Paradigm | Core operation | Inductive bias |
|---|---|---|
| Top-down | Route taxa from the root | Global hierarchical decisions |
| Middle-out | Insert taxa along existing edges | Incremental expansion of a scaffold |
| Bottom-up | Merge leaves and subtrees | Local agglomerative structure |
Scaling and deployment remain open
- Tree size: the experiments stop at 65 taxa, far below the thousands of leaves common in viral surveillance and microbial phylogenomics.
- Retraining: a new simulator, prior, taxon regime, or sequence distribution may require fresh training data and optimization.
- Simulation gap: inference quality depends on how closely the simulator represents the process that generated real observations.
- Validation: agreement with MrBayes establishes posterior fidelity where an MCMC reference is available. Richer models without tractable references require synthetic ground truth or other diagnostic checks.
- Reproducibility: the initial release does not identify public model weights or training code, limiting independent evaluation of training cost and deployment requirements.
DeepPhylo provides a concrete route to posterior sampling when researchers can simulate a credible evolutionary process but cannot efficiently evaluate its likelihood. Its practical reach will depend on scaling beyond dozens of taxa, controlling simulator mismatch, and making the training pipeline reproducible across evolutionary models.