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

基于Nii-C的自动并行回火马尔可夫链蒙特卡洛方法

Automatic Parallel Tempering Markov Chain Monte Carlo with Nii-C

Sheng Jin, Wenxin Jiang, Dong-Hong Wu

AI总结:

针对现代天文学贝叶斯后验采样的高维、多峰难题,本文提出了完全用C语言实现、基于MPI并行的自动并行回火MCMC代码Nii-C,可自动调优温度梯和提议分布,实现快速收敛与高效执行,适用于多领域复杂分布采样。

摘要:

由于现代天文学中常见的高维性或多峰性,对贝叶斯后验进行采样可能颇具挑战。目前已有多款基于不同采样算法的公开可用代码能够求解这类复杂模型,但这些代码的执行效率往往不够高,或是速度不够快。本文介绍了一款C语言通用代码Nii-C(代码仓库:https://github.com/shengjin/nii-c.git),它实现了自动并行回火马尔可夫链蒙特卡洛框架。此处的“自动”指的是,确保并行回火过程高效运行的参数可由控制系统在采样过程的初始阶段自动设定。自动调优的参数分为两部分:所有并行回火马尔可夫链的温度梯,以及所有并行回火链中全部模型参数的提议分布。为减少编译过程中的依赖并提升代码执行速度,Nii-C完全采用C语言构建,并使用消息传递接口(Message-Passing Interface)协议实现并行化,以优化并行采样的效率。这些实现方式有助于在高维、多峰分布的采样中实现快速收敛,同时缩短代码的执行时间。凭借高采样效率和快执行速度,Nii-C可应用于多个研究领域以追踪复杂分布。本文还展示了Nii-C代码的若干应用案例。

英文摘要:

Due to the high dimensionality or multimodality that is common in modern astronomy, sampling Bayesian posteriors can be challenging. Several publicly available codes based on different sampling algorithms can solve these complex models, but the execution of the code is not always efficient or fast enough. The article introduces a C language general-purpose code, Nii-C (https://github.com/shengjin/nii-c.git), that implements a framework of Automatic Parallel Tempering Markov Chain Monte Carlo. Automatic in this context means that the parameters that ensure an efficient parallel tempering process can be set by a control system during the initial stages of a sampling process. The auto-tuned parameters consist of two parts, the temperature ladders of all parallel tempering Markov chains and the proposal distributions for all model parameters across all parallel tempering chains. In order to reduce dependencies in the compilation process and increase the code's execution speed, Nii-C code is constructed entirely in the C language and parallelised using the Message-Passing Interface protocol to optimise the efficiency of parallel sampling. These implementations facilitate rapid convergence in the sampling of high-dimensional and multi-modal distributions, as well as expeditious code execution time. The Nii-C code can be used in various research areas to trace complex distributions due to its high sampling efficiency and quick execution speed. This article presents a few applications of the Nii-C code.

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

↑