- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 4
- Quality
- 3
- Significance
- 4
Read review
Summary
The paper introduces Phyloformer 2 (PF2), a likelihood-free neural posterior estimator for phylogenetic trees from aligned sequences. The work addresses a highly relevant problem in the field, because likelihood-based inference is computationally costly under standard site-independent models and becomes generally intractable under richer models of sequence evolution, such as models with dependencies between sites or more complex selection effects.
PF2 combines an EvoFormer-inspired encoder, evoPF, which builds embeddings of individual sequences and pairs of sequences from an MSA, with BayesNJ, an autoregressive distribution over tree-building merge operations and branch lengths. The experiments report improved RF accuracy relative to Phyloformer, FastTree, IQ-TREE, and FastME on simulated data under tractable models, larger gains under intractable sequence-evolution models, and some evidence of posterior calibration via RevBayes and simulation-based branch support checks.
Strengths and weaknesses
The paper is overall well-written and addresses an important problem. The proposed method is novel and technically interesting. In particular, estimating the posterior distribution over unrooted binary trees in a likelihood-free way is a meaningful advance over previous likelihood-free approaches that were limited to quartets or to point estimates of evolutionary distances. The combination of evoPF and BayesNJ is sensible, and the empirical results are promising.
However, the setup of the simulation experiments does not yet fully convince us that it achieves its intended goal. In particular, the comparisons to likelihood-based methods are difficult to interpret because PF2 is trained or fine-tuned on data simulated from the same generative model used for testing. This makes it difficult to disentangle the effect of using the correct prior from the effect of being well specified for richer evolutionary models.
The current version also still has mathematical typos and consistency issues that require careful revision, and the clarity of exposition should be improved. In particular, the definition of the approximate posterior in BayesNJ has inconsistent merge counters, and Algorithm 10 appears to contain errors in the branch-length ratio and missing Jacobian term. Figure 1 is also confusing and would benefit from substantial simplification.
Questions
First, the simulation experiments assess the accuracy of the MAP tree inferred by PF2 on aligned sequences that were simulated from various evolutionary models, with both tractable and intractable likelihoods. While PF2 compared favourably to other methods, its comparison to maximum likelihood-methods is not very informative under this setup. The neural network of PF2 was trained on separately simulated data from each of the respective models, thereby effectively providing it with the correct prior over phylogenies. As the authors note in line 288 of section 4.1: “The edge of PF2 against maximum-likelihood methods working under the correct model likely arises from its estimating the posterior distribution using the correct prior—the same tree distribution is used to generate training and test samples—which reduces its variance without creating a bias.”
We believe the same issue spoils the comparisons in Section 4.2 for evolutionary models with intractable likelihoods. It is not clear how much of PF2’s advantage over the ML methods is due to being well-specified versus using the correct prior. To disentangle these phenomena, we suggest comparing PF2 to a MAP tree that was inferred with the same prior but using a misspecified likelihood under the usual independence assumption, such as a standard site-independent substitution model implemented in RevBayes. If computationally feasible, RevBayes MAP estimates would provide a useful additional Bayesian baseline in Section 4.1 as well, at least for small-to-moderate numbers of sequences.
Related to point 1, explain better in the main text how the evoPF architecture can better capture co-evolution, rather than assuming that the readers know EvoFormer well enough.
Please correct typos and inconsistencies as mentioned below: Line 183: the approximate posterior factorization should run over N - 3 merges instead of 2N-3. Algorithm 10 runs until N - 2. The authors should use one consistent, correct counter. Also, there should be additional factors for the three remaining branches after all merges, which are currently missing. A small typo on line 115: C^k vs C^(k) Section 2.1: Notation-wise using S^(k), where (k) is the superscript, is more consistent with other symbols. The expected KL divergence equation contains a typo: it should be KL(p || q) instead of KL(q || p). Also, there is an extra “)” right after the last q(\theta|x). Line 135: it should be “maximizing” instead of “minimizing” Algorithm 10: typo in the log beta pdf -> should evaluate at r = l_i / s instead of l_i / l_j Algorithm 10: the Jacobian term 1/s should be included.
Figure 1 is confusing and not well explained. For example, the pairwise embeddings are shown as input and output at the same time. The “Unmerged nodes” label is used for two different matrices, where the right one seems to have two rows merged. The authors may want to illustrate the procedure of merging nearest neighbours, but it is not intuitive in the current figure. Consider simplifying this figure significantly.
The canonical order assumption seems reasonable but strong. Can the authors demonstrate in simulation studies how mis-specified the model class can be under this assumption?
The authors mentioned other variational inference approaches that can estimate the posterior distribution, such as PhyloGFN, which are also state-of-the-arts. Can the authors explain why they are not included in the simulation studies?
Limitations
The authors discuss some important limitations, including scalability and potential distribution shift between simulated training data and empirical observations. These limitations are important.
The scalability of the method is limited. The current method appears to handle fewer than roughly 200 taxa under the reported memory constraints. This limits applicability to larger phylogenetic problems.
There are also potential out-of-distribution problems if real biological data do not follow the assumed generative process. In particular, the empirical experiments suggest sensitivity to alignment quality and gap patterns, which should be emphasized more clearly because it affects practical use on real biological datasets.
Paper formatting concerns
none
Final justification
We thank the authors for their response and for the additional experiments regarding the prior effects. We are convinced by the new results and would appreciate it if the authors could supply the missing runs in their final version.
We also understand that state-of-the-art VI approaches are not expected to outperform MCMC methods for estimating the posterior, but the same applies to PF2. It would therefore be helpful to benchmark PF2 against these approaches in Section 4.3, which we believe would be of interest to the community.
We have increased our score.
We thank the reviewer for their hard work and numerous insightful comments. We hope we can bring some answers to the questions raised, below.
Weaknesses
Questions
Effects of the prior on testing performance
We thank the reviewer for rising this concern. The main difficulty is that by definition, NPE techniques like PF2 rely on a prior. Giving the correct prior can admittedly lead to optimistic results but conversely, giving a wrong prior is a handicap for the method, making it difficult to fairly compare frequentist and Bayesian estimators. In order to quantify this effect without having to retrain PF2, we ran the following experiment. We simulate 100 trees under 4 different topology and branch length priors and simulate MSAs along those trees for each of the paper's 4 evolution models: LG+G8 which has a tractable, easy-to-compute likelihood, and CherryML, SelReg and Potts which do not.
The priors we used are listed below, ordered from most different to most similar to our training prior:
UniformExp: A uniform distribution over tree topologies and branch lengths drawn from an exponential distribution of mean 0.1.UniformExp_rescaled: as above but each tree is then rescaled to a diameter sampled from our empirical distribution. This leads to trees that have the same distribution of diameters as our training trees.UniformExp_custombrlens: AsUniformExpbut with our branch-length rescaling procedureBirthDeath_custombrlens: The training prior.For each prior and model we ran the same methods as the main paper results: IQTree (using Model Finder on non-LG data), FastTree and FastME (under LG) and PF2 with the greedy MAP approximation. We also used PF2 to sample 1000 trees from each test MSA's posterior and summarized them with the Maximum Clade Credibility (MCC) tree. Finally we also sampled from posteriors using Phylobayes. We sampled 1k trees for 50 MSAs using a single MCMC chain. After visual inspection of the traces, we consider that each of these chains converged and we discard the first 10% as burn-in before computing the MCC.
In the tables below, we show the average normalized RF between the inferred and the true tree for each method. Of note, the exponential distribution without rescaling in the first setting leads to a fairly different distribution than PF2's prior, and all other settings except for the last one give PF2 an incorrect, and thus misleading, prior.
As one could expect, PF2 loses its edge against maximum-likelihood methods iqtree/fasttree in all LG setting where it doesn't have the right prior (because iqtree/fasttree are correctly specified and PF2 incurs a bias from the wrong prior), but it remains very close.
Under intractable models (Cherry/SelReg/Potts), the edge of PF2 decreases as its prior becomes more incorrect, but it always retains an advantage against all other methods, and summarizing posterior samples increases performance even more.
Under the LG+G8 model, phylobayes has the best performance when the data is simulated under the correct prior but its results degrade as the prior shits towards PF2's training prior. For all non-LG settings, phylobayes performs worse than PF2. The MCC of 1k samples from the PF2 posterior yields slightly better trees than the greedy MAP at the cost of inference time (on average 2s).
Overall, this experiment confirms that PF2's edge is not entirely caused by its using the correct prior on the topology and branch lengths: under intractable models, it keeps outperforming misspecified likelihood-based methods even when tested under an incorrect prior.
LG+G8
CherryML
SelReg
Potts
*Please note that some inference are still running, however we do not expect the results shown in these tables to change significantly.
Other questions
Limitations