Gradient-based samplers for phylogenetic trees move continuously through branch lengths, but the tree topology can only change where an internal branch shrinks to zero. That is the boundary between two topologies in tree space. Under incomplete lineage sorting (ILS), where gene lineages fail to merge within short ancestral populations so individual gene trees disagree with the species tree, the posterior mass sits close to exactly these boundaries whenever speciation was rapid. We argue that these boundaries act like the flat facets of a low-order mesh. Without a boundary-fitted treatment, the log-likelihood has a kink at each boundary, and any integrator that ignores the kink loses its nominal accuracy order. Resolving the crossing with high-order Hermite interpolation of the trajectory should restore that order. The payoff is sharpest in the short-branch regime, which is also the regime where species-tree inference is statistically hardest.
In plain terms, crossing from one tree shape to another is like a ball rolling over a crease in a surface. A physics simulator that does not locate the crease accurately accumulates error that shrinks with step size more slowly than advertised. We propose to locate the crease precisely, first proving and then measuring that doing so matters most for rapid radiations. The proposal borrows its central diagnostic from computational mechanics. There, a curved domain approximated by flat facets caps even a high-order solver at second-order convergence. We ask whether the same cap appears, and can be lifted, when the "domain" is phylogenetic tree space and the physics is the multispecies coalescent.
Core Claim
Consider species-tree inference from a set of gene trees under the multispecies coalescent (MSC), the standard model in which gene genealogies arise by random merging of lineages inside the branches of a species tree. We work in Billera–Holmes–Vogtmann (BHV) tree space, where each topology is a flat orthant of branch lengths and orthants are glued where a branch length reaches zero.
A short calculation shows the problem. Take the quartet-count likelihood that ASTRAL-style methods rely on, and follow a path that crosses from topology A to a neighbouring topology B through the face where the shared internal branch vanishes. The log-likelihood is continuous at the face, but its one-sided slopes generally disagree. The gap in slope is proportional to $n_A + n_B - 2n_C$, where $n_A$, $n_B$, $n_C$ count gene trees supporting the three resolutions of the quartet.
A leapfrog or higher-order symplectic integrator that steps over such a kink without locating it incurs a momentum error proportional to the step size $\epsilon$ at each crossing. Crossings occur at a bounded rate per unit time, so the global energy error falls to $O(\epsilon)$. This is the tree-space analog of the $O(h^2)$ ceiling that flat boundary facets impose on high-order solvers (Xiao et al.; Rüberg et al.).
The fix has two levels. Locating the crossing time with a linear estimate restores second order and no more. To keep a fourth-order integrator at fourth order, the crossing must be found to matching accuracy. We do this with cubic Hermite interpolation of the trajectory within the step, using the position and gradient at both ends.
The claim is therefore specific. For MSC species-tree samplers, the order of the boundary treatment, not the order of the integrator, sets the accuracy ceiling. Cubic Hermite interface location lifts that ceiling. The resulting gain in effective samples per gradient evaluation grows as the shortest internal branch $f$ shrinks. The mechanism is that $f$ controls how often trajectories hit topology boundaries, and it is the same quantity that drives the $\Omega(\log n / f^2)$ gene-count requirement proved in Species Tree Estimation Using ASTRAL: How Many Genes Are Enough?.
Relation to Prior Work
The closest precedent is PhylaFlow. It trains flow-matching vector fields on BHV geodesics and hands topology changes to a discrete autoregressive head. It evaluates on single-locus datasets and does not model the MSC. It supplies our setting, BHV space as a continuous arena, and it motivates our question. It does not analyse the numerical error made at orthant boundaries; it avoids integrating across them. We integrate across them, under a multi-locus coalescent likelihood, and measure the error order directly.
The numerical side of the proposal comes from work on boundary mismatch. Xiao et al. curve cut faces onto a level set to restore $O(h^{m+1})$ convergence in discontinuous Galerkin flow solvers. Rüberg et al. keep flat facets and accept an explicit second-order cap, noting that higher-order interfaces would be needed to go further. Both motivate the diagnostic we transfer: a nominally high-order method can have its accuracy capped by how the interface is represented. The interpolation method comes from Hermite constructions that match values and first derivatives at knots with local support and fourth-order accuracy (Conti, Romani, Unser). We reuse the cubic Hermite idea for trajectories rather than surfaces.
Peters' characterization of connecting maps plays a constraining role. At the face where one branch collapses, three topologies meet, not two. This "three-page binding" is the tree-space counterpart of an extraordinary vertex. Peters shows that smooth charts around such junctions either need a large jump in polynomial degree or become degenerate. In our setting the degenerate route is concrete: reparameterize branch length so its derivative vanishes at zero, and the kink disappears only because the chart is singular there. This negative result is why we resolve the interface instead of trying to smooth it away. At the face we use a volume-preserving rule that enters either non-original page with equal probability.
The biology papers set the regime and the standards of comparison. Roch and Steel show that concatenation is statistically inconsistent under ILS, which rules out the simplest competitor. SDSR supplies 50-species ILS and ILS-plus-horizontal-transfer benchmarks. P2C2M.SNAPP supplies a model-violation check we will use to test whether our posteriors stay calibrated when gene flow is present.
Research Program
The theoretical part proves the order statements for one internal edge and then for general trees under the quartet composite likelihood. The target statements are $O(\epsilon)$ global energy error for naive crossing, $O(\epsilon^2)$ for linear crossing location, and $O(\epsilon^4)$ for cubic Hermite location under a fourth-order integrator. The same analysis will derive how the expected number of crossings per trajectory scales with $f$.
We then extend the slope-gap calculation to the exact likelihood of rooted gene-tree topologies under the MSC for small taxon counts. The purpose is to confirm that the kink is a property of the model and not of the composite likelihood.
Faces of higher codimension, where two branches collapse at once and more than three topologies meet, are hit with probability zero by generic trajectories. They can still be approached closely. We will not claim high order there. Instead we will count how often trajectories pass within one step of such a face and report the error that remains.
The software builds an event-located Hamiltonian sampler over species-tree topology and branch lengths in coalescent units, taking fixed gene trees as input as ASTRAL does. It has three switchable interface treatments: none, linear location, and cubic Hermite location. It also offers leapfrog and fourth-order integrators. A second track retrains a PhylaFlow-style vector field whose integration across faces uses the same event location, replacing the discrete jump head. That comparison asks whether the benefit carries over to learned transport.
Baselines
The naive reference point is the same sampler with no interface treatment. It uses a signed branch coordinate, lets the gradient switch whenever the sign flips, and never locates the crossing. It shares every other component, step-size schedule, and gradient budget with the proposal, so any difference is attributable to boundary handling. Beating it means a measured energy-error slope near two or four rather than one, together with higher acceptance at equal step size.
The strongest existing point estimator is ASTRAL, run on the identical gene-tree sets as the standard consistent summary method. For MSC accuracy on these testbeds the file gives only a scaling result, not an accuracy number. Shekhar et al. report a "near-perfect linear relationship between the number of genes and $1/f^2$." No reported normalized Robinson–Foulds figure was found on Lacuna for ASTRAL on the Shekhar caterpillar, balanced, or double-quartet trees. For SDSR's 50-species set the file states that no quantitative number is reported. We will therefore run ASTRAL ourselves.
Our sampler must match ASTRAL's topological accuracy at its posterior mode to count as competitive. Beating ASTRAL means something different: well-calibrated posterior probabilities on short branches. Specifically, the nominal 90% credible sets should contain the true resolution about 90% of the time when $f$ is small, which a point estimate cannot provide.
The strongest sampling competitor is discrete topology MCMC. It uses nearest-neighbour-interchange moves on the topology combined with continuous branch-length updates, and is given equal wall-clock time and tuning effort. It is the natural choice because it never integrates across boundaries at all. Beating it means more effective samples of the topology indicator and branch lengths per second in the short-branch regime.
For the learned-transport track, the competitor is the PhylaFlow design with its discrete head. The file reports Tree-KL 0.505 on DS2 against 16.169 for a random start (PhylaFlow). That result is single-locus and not an MSC benchmark, so it serves as context rather than a target.
Two ablations isolate the key ingredient. The first uses linear crossing location with the fourth-order integrator. If Hermite location is what matters, this configuration should stall at second order. The second smooths the kink over a width proportional to step size, a blending approach in the spirit of PDE surface blending. It removes the kink cheaply but should introduce a bias in short-branch posteriors that we can measure against exact enumeration.
Why not just…?
Why not just run ASTRAL and stop? ASTRAL is consistent and fast, and for a point estimate on well-resolved trees it will probably be as good as anything here. The proposal does not try to beat it at that. Its target is posterior uncertainty in exactly the short-branch cases where Shekhar et al. show gene-count requirements explode. The calibration experiment below either shows that our sampler adds calibrated uncertainty on those branches or it does not.
Why not just use discrete topology moves with continuous branch updates? This is the real threat. Near a boundary, a discrete interchange move is cheap and may mix as well as integrating across the face. We do not assume otherwise. The wall-clock effective-sample comparison across a sweep of $f$ settles it. If discrete moves match us at every $f$, the honest conclusion is that boundary resolution matters only for learned transport. The PhylaFlow-style track is then the part of the program that survives.
Why not just reparameterize branch length so the likelihood is smooth at zero? Peters' result predicts, and the slope-gap calculation confirms, that the only charts that do this at a three-way junction are degenerate. They flatten the posterior's density at the face and slow the sampler's passage through it. The degenerate-chart variant is included and should show reduced crossing rates.
Why not just take smaller steps? Smaller steps reduce the error, but for a first-order method the energy error falls only in proportion to $\epsilon$, so the cost of reaching a fixed accuracy grows much faster than it would at second or fourth order. This is the tree-space version of the finding that brute refinement of linear meshes is far costlier than curving the boundary (Feng et al.). The step-size sweep quantifies the gap directly.
Proposed Experiments
The first decisive check is an order-of-accuracy plot. On four- and five-taxon species trees we can compute exact posteriors by enumeration. There we plot log energy error against log step size for each interface treatment and integrator, and expect slopes of about one, two, and four. If cubic Hermite location does not give a slope near four under the fourth-order integrator, the central claim fails.
The second check is a sweep over short-branch regimes on the Shekhar caterpillar, balanced, and double-quartet trees, using their protocol of up to $10^5$ gene trees. We record crossings per trajectory, acceptance rate, effective samples per gradient evaluation, and calibration of credible sets on the shortest branch. The prediction is that the Hermite advantage grows as $f$ decreases.
The third check scales to the 50-species SDSR datasets. There we compare mode accuracy by normalized Robinson–Foulds distance against ASTRAL, and effective samples per second against discrete topology MCMC. On the ILS-plus-horizontal-transfer subset we apply the posterior-predictive model check of P2C2M.SNAPP. This test asks whether better numerical integration of a misspecified model yields confident wrong answers. A positive result there would be a warning we would report prominently. A final check applies event-located integration inside the learned PhylaFlow-style vector field. It measures whether removing the discrete head changes sample quality on multi-locus simulations.
References
- An immersed discontinuous Galerkin method for compressible Navier‐Stokes equations on unstructured meshes
- An unstructured immersed finite element method for nonlinear solid mechanics
- Species Tree Estimation Using ASTRAL: How Many Genes Are Enough?
- Hybrid Flow Matching in Billera-Holmes-Vogtmann Tree Space for Generative Phylogenetic Inference
- Ellipse-preserving Hermite interpolation and subdivision
- A characterization of connecting maps as nonlinear roots of the identity
- Likelihood-based tree reconstruction on a concatenation of aligned sequence data sets can be statistically inconsistent
- SDSR: A Spectral Divide-and-Conquer Approach for Species Tree Reconstruction
- Identifying model violations under the multispecies coalescent model using P2C2M.SNAPP
- Curved optimal delaunay triangulation