Torchtree:使用PyTorch进行灵活的系统发育模型开发与推断
Torchtree: flexible phylogenetic model development and inference using PyTorch
AI总结:
本文提出基于PyTorch的torchtree框架,通过自动微分与插件系统支持固定树拓扑的系统发育模型开发与变分推断,在速度与精度上媲美BEAST,并探索前向KL散度优化以处理不可微模型。
摘要:
多年来,贝叶斯推断主要依赖于马尔可夫链蒙特卡洛(MCMC)算法。然而,MCMC计算繁琐,特别是对于时间树的复杂系统发育模型。这一瓶颈促使人们寻找替代方案,例如变分贝叶斯,它能更好地扩展到大型数据集。在本文中,我们介绍了torchtree,这是一个用Python编写的框架,允许开发者使用固定树拓扑轻松实现丰富的系统发育模型和算法。开发者既可以使用自动微分,也可以利用torchtree的插件系统,为自动微分较慢的模型组件解析地计算梯度。我们证明torchtree变分推断框架在速度和近似精度方面与BEAST表现相似。此外,我们探索了将前向KL散度作为变分推断的优化准则,它可以处理不连续和不可微的模型。我们的实验表明,与证据下界(ELBO)准则相比,使用前向KL散度的推断每次迭代往往更快,尽管在某些情况下基于ELBO的推断可能收敛得更快。总体而言,torchtree提供了一个使用PyTorch进行系统发育模型开发与推断的灵活高效框架。
英文摘要:
Bayesian inference has predominantly relied on the Markov chain Monte Carlo (MCMC) algorithm for many years. However, MCMC is computationally laborious, especially for complex phylogenetic models of time trees. This bottleneck has led to the search for alternatives, such as variational Bayes, which can scale better to large datasets. In this paper, we introduce torchtree, a framework written in Python that allows developers to easily implement rich phylogenetic models and algorithms using a fixed tree topology. One can either use automatic differentiation, or leverage torchtree's plug-in system to compute gradients analytically for model components for which automatic differentiation is slow. We demonstrate that the torchtree variational inference framework performs similarly to BEAST in terms of speed and approximation accuracy. Furthermore, we explore the use of the forward KL divergence as an optimizing criterion for variational inference, which can handle discontinuous and non-differentiable models. Our experiments show that inference using the forward KL divergence tends to be faster per iteration compared to the evidence lower bound (ELBO) criterion, although the ELBO-based inference may converge faster in some cases. Overall, torchtree provides a flexible and efficient framework for phylogenetic model development and inference using PyTorch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。