arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.01136astro-ph.IMastro-ph.GA
收藏

$\texttt{synax}$:一个可微分且GPU加速的同步辐射模拟程序包

$\texttt{synax}$: A Differentiable and GPU-accelerated Synchrotron Simulation Package

Kangning Diao, Zack Li, Richard D. P. Grumitt, Yi Mao

AI总结:

本研究推出基于JAX的可微分GPU加速银河系同步辐射模拟库synax,支持多频段辐射计算与多种天体物理模型,可大幅提升复杂模型参数推断效率,并已在银河系磁场优化任务中取得良好效果。

摘要:

我们推出synax,这是一款用于银河系同步辐射自动可微分模拟的新型程序库。synax基于JAX框架构建,充分利用JAX的各项特性,包括批量加速、即时编译以及针对CPU、GPU、TPU的硬件专属优化。关键在于,synax采用JAX的自动微分(AD)机制,能够精准计算相对于任意模型参数的导数。这一特性为哈密顿蒙特卡洛(HMC)、基于梯度的优化等强大的推断算法提供了支撑,使得原本计算量难以承受的模型推断成为可能。\n在其初始版本中,synax支持低至GHz频段的同步辐射强度与偏振计算,同时内置了多种银河系磁场(GMF)模型、宇宙线(CR)谱模型以及热电子密度场模型。我们通过实验证明,自动微分在采用基于梯度的技术或最大似然估计(MLE)优化开展完整后验推断的任务中,具有变革性的应用潜力。值得注意的是,实验显示GPU加速可将效率提升20倍;在对一个四参数测试模型进行推断时,HMC的性能相比标准随机游走Metropolis-Hastings(RWMH)算法提升了2倍。在更复杂的16参数模型上,HMC仍可正常运行,而RWMH无法收敛。此外,我们展示了synax在基于Haslam 408 MHz天图优化GMF方面的应用,最终得到的残差标准差低于1 K。

英文摘要:

We introduce synax, a novel library for automatically differentiable simulation of Galactic synchrotron emission. Built on the JAX framework, synax leverages JAX's capabilities, including batch acceleration, just-in-time compilation, and hardware-specific optimizations (CPU, GPU, TPU). Crucially, synax uses JAX's automatic differentiation (AD) mechanism, enabling precise computation of derivatives with respect to any model parameters. This feature facilitates powerful inference algorithms, such as Hamiltonian Monte Carlo (HMC) and gradient-based optimization, which enables inference over models that would otherwise be computationally prohibitive. In its initial release, synax supports synchrotron intensity and polarization calculations down to GHz frequencies, alongside several models of the Galactic magnetic field (GMF), cosmic ray (CR) spectra, and thermal electron density fields. We demonstrate the transformative potential of AD for tasks involving full posterior inference using gradient-based techniques or Maximum Likelihood Estimation (MLE) optimization. Notably, we show that GPU acceleration brings a twenty-fold enhancement in efficiency, while HMC achieves a two-fold improvement over standard random walk Metropolis-Hastings (RWMH) when performing inference over a four-parameter test model. HMC still works on a more complex, 16-parameter model while RWMH fails to converge. Additionally, we showcase the application of synax in optimizing the GMF based on the Haslam 408 MHz map, achieving residuals with a standard deviation below 1 K.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑