jaxspec:一个用于X射线光谱拟合的快速且稳健的Python库
jaxspec : a fast and robust Python library for X-ray spectral fitting
AI总结:
本文提出基于JAX的Python库jaxspec,利用可微似然函数和No U-Turn Sampler等贝叶斯推断方法实现X射线光谱拟合,在保证结果可靠的同时比现有方案快约10倍,并支持GPU变分推断处理高分辨率数据。
摘要:
背景。从X射线数据推断光谱参数是高能天体物理学的基石之一,目前这一任务依赖于过去二十多年间开发的软件栈来完成。然而,随着模型变得更加复杂、光谱分辨率不断提高,这些既有的软件解决方案变得越来越功能臃肿、难以维护且效率较低。目标。我们提出jaxspec,这是一个Python软件包,用于在完全贝叶斯框架下快速且稳健地完成这一任务。jaxspec基于JAX生态系统构建,能够生成可在中央处理器或图形处理器(分别为CPU和GPU)上编译的可微似然函数,从而支持使用稳健的贝叶斯推断算法。方法。我们使用一个复合模型,并将所得结果与现有框架进行比较,展示了jaxspec采样器(尤其是No U-Turn Sampler)的有效性。我们还通过复现Hitomi合作组对英仙座星系团的结果,同时利用GPU上的变分推断解决推断问题,展示了其处理高分辨率光谱数据的能力以及使用原创方法的能力。结果。与其他软件和方法相比,我们获得了相同的结果,这意味着jaxspec在提供可靠结果的同时,比现有替代方案快约10倍。此外,我们还表明,变分推断即使在处理高分辨率数据时,也能在GPU上不到10分钟内产生令人信服的结果。结论。借助这个软件包,我们旨在推进将X射线光谱学开放给现有机器学习和贝叶斯推断生态系统的目标,使研究人员能够应用新方法,以尽可能最佳的方式解决日益复杂的问题。我们的长期目标是科学利用来自newAthena X射线积分场单元(X-IFU)的数据。
英文摘要:
Context. Inferring spectral parameters from X-ray data is one of the cornerstones of high-energy astrophysics, and is achieved using software stacks that have been developed over the last twenty years and more. However, as models get more complex and spectra reach higher resolutions, these established software solutions become more feature-heavy, difficult to maintain and less efficient. Aims. We present jaxspec, a Python package for performing this task quickly and robustly in a fully Bayesian framework. Based on the JAX ecosystem, jaxspec allows the generation of differentiable likelihood functions compilable on core or graphical process units (resp. CPU and GPU), enabling the use of robust algorithms for Bayesian inference. Methods. We demonstrate the effectiveness of jaxspec samplers, in particular the No U-Turn Sampler, using a composite model and comparing what we obtain with the existing frameworks. We also demonstrate its ability to process high-resolution spectroscopy data and using original methods, by reproducing the results of the Hitomi collaboration on the Perseus cluster, while solving the inference problem using variational inference on a GPU. Results. We obtain identical results when compared to other softwares and approaches, meaning that jaxspec provides reliable results while being $\sim 10$ times faster than existing alternatives. In addition, we show that variational inference can produce convincing results even on high-resolution data in less than 10 minutes on a GPU. Conclusions. With this package, we aim to pursue the goal of opening up X-ray spectroscopy to the existing ecosystem of machine learning and Bayesian inference, enabling researchers to apply new methods to solve increasingly complex problems in the best possible way. Our long-term ambition is the scientific exploitation of the data from the newAthena X-ray Integral Field Unit (X-IFU).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。