The article is generally well-written, although a lot of important
information is in the Appendix and it is difficult to get more than a
general idea of the method from the main manuscript. Figure 1 and 2
are very large and somewhat redundant, combining and reducing them
could be an option to allow for a bit more details in the main
manuscript. Nonetheless, the idea of simulation-based inference for
phylogenetics is correctly introduced and motivated, and improving
these methods is an important problem as likelihood-based methods are
unable to handle realistic models of evolution.
My main concern is on the empirical evaluation against Phyloformer 2
and iqtree: Figure 4 shows that Phyloformer 2 has much larger RF error
than iqtree regardless of the model of sequence evolution, sequence
length or number of sequences. This is not consistent with the results
presented in the Phyloformer 2 paper where it outperforms iqtree even
on a tractable model and has an even stronger edge under intractable
models. I am not sure what explains this discrepancy, but it suggests
that Phyloformer 2 was not correctly trained and makes it difficult to
interpret any of the result. For example PhyloPFN uniformly
underperforms against iqtree under JC, which suggests that it would
also perform less well than Phyloformer 2.
I trained a Phyloformer 2 network on the JC model (tractable model, so
best case for iqtree) for N=65 and L=500, using the parameters
reported in the submission. The RF reported in the submission is close
to 40, and I obtained 5.85 after a single epoch on 500k training
examples, with iqtree giving 6.92 on the same test set (similar to the
one reported in the submission). If the reason for the discrepancy is
the number of training examples (I could not find it in the
submission) or training time, it is still an interesting finding that
PhyloPFN performs better in this regime but this should be
clarified. A related minor point is that the RF should be normalized,
otherwise they are not comparable across values of N.
A second concern is on the clarity of the update mechanism introduced
in PhyloPFN. This is one of the two main novelties, the other being
the diffusion loss function. It seems like an important contribution
and should be more clearly discussed and defined in the
manuscript. The current definition l.1115 is not entirely clear. In
addition, it is not possible in the current experiments to tell which
of these novelties drives the performance. This could be addressed by
an ablation study. It seems like an important point because the update
mechanism is likely what causes the larger computational cost of
PhyloPFN (appendix H), on par with iqtree and 2-3 orders of magnitude
slower than Phyloformer 2. This is justified if this additional cost
is what drives the performances.
Other points:
-
The removal of the pair reprensentation from Phyloformer 2 is
justified by its quartic cost. However in in most of the considered
N/L regimes, N^4 is less than N*L^2, so I am not sure why this would
be a scalability issue. In the end, inference time is much larger for
PhyloPFN than Phyloformer 2, so is the point 4 ("Computationally
expensive architecture") of the comparison in A.1 really justified ?
It would be interesing to have a comparison of the memory usage of all
compared methods, and training time for Phyloformer 2 and PhyloPFN
(e.g. compare the time for one step, and time for one epoch which
would factor out the fact that PhyloPFN may handle larger batches).
-
l.152 "[Phyloformer 2] parameterizes the posterior distribution with
only one forward pass through the neural network, producing embeddings
for each taxon and then predicting a tree by running a
neighbor-joining algorithm on the fixed predicted embeddings.": this
is not a neighbor-joining algorithm, but a similar procedure to the
bottom-up computation used in PhyloPFN. The main difference is that
PhyloPFN updates node embeddings are after each merge (as noted in the
first point of A.1).
-
At several points, the article suggests that the parameterization of
the network affects the prior distribution, e.g.
l.640 "In Sec. 4.3, we explain how we re-paramaterize our neural
network predictions to achieve the desired prior distribution over
topologies at random initialization."
I am worried this could be misleading for some readers: the trained
network approximates the posterior distribution of phylogenies defined
by taking the simulation distribution (of trees) as prior. The fact
that random initializations of the network approximate a different
distribution is an interesting observation and may ask as an inductive
bias for training but it seems important to clearly separate the two
aspects and I would suggest to not describe this as a prior.
-
l.173 "performing multiple forward passes allows the model to
represent arbitrarily complex distributions by conditioning on the
intermediate state of the tree before predicting the next step": this
seems like a rather strong claim. Can any distribution really be
represented by this specific architecture ? A sketch of proof or at
least an intuition would be welcome. Similarly, l.50 "Previous models
map sequences to parameters of a parametric distribution over trees,
limiting expressivity [11]" suggests that PhyloPFN proceeds
differently. Yet, the probability distribution parameterized by
PhyloPFN is also a product of logits (l.1117), with a factorization
depending on the paradigm (bottom-up, middle-out or top-down). It is
probably more expressive than [11] because of the updates on node
embeddings, but not less parametric.
-
I find the discussion of the three decomposition paradigms
interesting, but it raises the question of which one to choose in
practice. None of the paradigms clearly dominates the others, but it
seems like bottom-up is never much worse than the best one, could
this be a guideline ? On a related point l. 290: "The superior
performance of bottom-up on the simple data may reflect the
bottom-up nature of the likelihood on this data [26]. On the
intractable data, top-down may perform the best because it can use
InDel patterns to accurately define the deepest splits
first. Finally, middle-out may perform the best on the complex data
since it conditions on a fully resolved partial tree at each step,
allowing it to best implicitly infer the hyperparameters of the
evolutionary process.": I don't understand these explanations. In
particular, I don't understand what is meant by "bottom-up nature of
the likelihood" under Jukes-Cantor, and I don't see why indel
patterns would be more informative for deeper splits than for more
recent ones.
-
Figure 3 compares ELBO for Phyloformer 2 and PhyloPFN. Since the
ELBO was the objective maximized by PhyloPFN, isn't it expected that
it would be larger for PhyloPFN ? One possibility would be to show
the objectives of both methods ?
-
"6.1 Our models learn faster than previous state-of-the-art for
simulation-based inference" this claim is not supported and not really
related to the content of the section, is it a mistake ?
Thank you for your thoughtful review! We respond to your questions below, including new clade-calibration results inspired by your comments.
We present our procedure to get to the m-th noised tree Tm as m sequential steps, each taking O(N) time, in principle taking O(N2) time to generate a noisy tree. It is overwhelmingly more expensive to make a prediction with a reasonable architecture than to generate data this way, so this was sufficient for our model. However, if one were interested in training a model with a fast predictor and massive N, it is possible, for each paradigm, to write O(N) one-step sampling algorithms: for middle out for example, one only needs to pick m species to remove from N choices. We will add this discussion.
Inspired by your feedback, we present new calibration results on posterior split probabilities. We took eight classical phylogenetics datasets from Lakner et al. (a superset of the datasets used for the MMD evaluation) and inferred a gold-standard posterior for each under the JC model using MrBayes and compared it with 1000 samples from each model.
For each clade sampled across all 8 datasets, we compare how often it appeared in our samples vs how often it appeared in the MrBayes posterior. We also report the same metrics for 8 synthetic datasets with matched N and L. We report our numbers pooled across the 8 datasets. We report (1) how well our posterior clade probabilities match that of MrBayes (Spearman correlation across clades), (2) how well our posteriors “cover” high probability clades, the average posterior probabilities of clades with >90% posterior probability in MrBayes (Mean prob.@90).
In the table we see a huge improvement over Phyloformer 2 with bottom-up performing strongest. It also reveals models have room for improvement generalizing to OOD real data.
Thanks for spotting this! Yes, the numbers are correct NELBOs, the y axis label was missing the “N”.
Excellent point! We’ve added the synthetic data comparison to the table above to measure this phenomenon and indeed, our methods see a noticeable degradation on the real data, likely since it is not well-covered by the prior. We hypothesize, as in other simulation-based inference (e.g. Understanding and Relaxing the Limitations of Transformers for Linear Algebra by Potapczynski A et al 2026) settings, that more diverse data will narrow the gap considerably; indeed the result above is with a JC prior, the simplest phylogenetic model with potentially the most narrow coverage. We will add this discussion to the limitations section.
Thanks again for your thoughtful review. We value your support, and have put a significant effort into this response, including experimental results inspired by your feedback. We would greatly appreciate if you could consider raising your score in light of our response.