Variational Combinatorial Sequential Monte Carlo for Bayesian Phylogenetics in Hyperbolic Space

Alex Chen, Philippe Chlenski, Kenneth Munyuza, Antonio Khalil Moretti, Christian A. Naesseth, Itsik Pe'er

Abstract

Hyperbolic space naturally encodes hierarchical structures such as phylogenies (binary trees), where inward-bending geodesics reflect paths through least common ancestors, and the exponential growth of neighborhoods mirrors the super-exponential scaling of topologies. This scaling challenge limits the efficiency of Euclidean-based approximate Bayesian inference methods. Motivated by the geometric connections between trees and hyperbolic space, we develop novel hyperbolic extensions of two sequential search algorithms: Combinatorial and Nested Combinatorial Sequential Monte Carlo (\textsc{Csmc} and \textsc{Ncsmc}). Our approach introduces consistent and unbiased estimators, along with variational inference methods (\textsc{H-Vcsmc} and \textsc{H-Vncsmc}), which outperform their Euclidean counterparts. Empirical results demonstrate improved speed, scalability and performance in high-dimensional Bayesian phylogenetic inference tasks.

Introduction: The Topological Bottleneck

Phylogenetics—the reconstruction of evolutionary histories—is a cornerstone of modern biology, yet it remains a formidable computational challenge. As the number of species increases, the space of possible tree topologies grows super-exponentially. For a modest set of 12 organisms, there are over 13 billion possible bifurcating trees. Navigating this vast discrete space to find the most likely evolutionary history is the primary bottleneck in genomic analysis.

Traditional Bayesian methods like Markov Chain Monte Carlo (MCMC) are accurate but struggle with the "curse of dimensionality," often failing to transition efficiently between distant tree topologies. Recent attempts to apply Variational Inference (VI) have typically mapped trees into Euclidean space. However, Euclidean geometry is poorly suited for trees; its volume grows only polynomially with radius, whereas the number of branches in a tree grows exponentially. This geometric mismatch hinders the learning of meaningful representations for large-scale phylogenies.

Methodology: Leveraging Curved Geometry

To address this, we propose performing Combinatorial Sequential Monte Carlo (CSMC) within the Poincaré disk model of hyperbolic space. Hyperbolic geometry acts as a natural "geometric prior" for hierarchical structures.

Hyperbolic Embedding and Geodesics

In the Poincaré disk, species are embedded near the boundary. The "shortest path" or geodesic between two points curves toward the center of the disk. This center-seeking behavior naturally represents the path back to a Least Common Ancestor (LCA). As points move toward the origin, they effectively move back in time along a "molecular clock."

Hyperbolic construction showing points and their inverses in the Poincaré disk model.

H-VCSMC and H-VNCSMC

We developed hyperbolic versions of sequential search algorithms that build trees step-by-step by coalescing nodes. To sample new parent nodes, we utilize a Wrapped Normal distribution. This involves sampling a vector in a flat tangent space, moving it along the curved manifold via parallel transport, and projecting it back onto the hyperbolic space.

By integrating these hyperbolic SMC estimators into a variational framework, we create a differentiable Evidence Lower Bound (ELBO). This allows for the optimization of model parameters using standard gradient-based methods in PyTorch, enabling GPU acceleration.

Empirical Results

We evaluated our methods, H-VCSMC and H-VNCSMC, on several datasets, including a 12-species primate mitochondrial DNA dataset and standard large-taxa benchmarks (DS1-DS7) with up to 64 species.

Speed and Scalability

The hyperbolic approach demonstrated significant efficiency gains. H-VCSMC achieved inferences 40x to 60x faster than GeoPhy, a recent differentiable neighbor-joining method, while yielding higher likelihood scores. Furthermore, our PyTorch implementation provided speedups of 20x to 50x over traditional CPU-based Bayesian phylogenetic software.

Convergence and Accuracy

On the Primates dataset, the method successfully converged to the maximum likelihood topology identified by industry-standard tools like MrBayes. Notably, even with a small number of particles ($K=4$), the nested version (H-VNCSMC) outperformed Euclidean counterparts.

Left: Effect of particle size K on the log likelihood difference. Right: Convergence of log likelihood across different methods over training steps.

As shown in the convergence plots, H-VCSMC and H-VNCSMC reach higher log-likelihood values more rapidly than baseline methods like ppHMC or standard VNCSMC. Increasing the number of particles ($K$) further refines the estimator, reducing the gap to the true posterior.

Conclusion

By aligning the geometry of the search space with the inherent structure of the data, hyperbolic variational SMC offers a powerful new paradigm for phylogenetics. This approach mitigates the topological scaling problem, making large-scale Bayesian inference more interactive and scalable. Future work will explore more complex evolutionary models and alternative hyperbolic representations, such as the Lorentz model, to further enhance performance on massive datasets.

Summary updated

BibTeX
@inproceedings{chen2025variational,
  author = {Alex Chen and Philippe Chlenski and Kenneth Munyuza and Antonio Khalil Moretti and Christian A. Naesseth and Itsik Pe'er},
  title = {{Variational Combinatorial Sequential Monte Carlo for Bayesian Phylogenetics in Hyperbolic Space}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=D2U52zOmf4},
}
Figure