arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.37655cs.AI
收藏

KPPax:面向大气化学机器学习的可微动力学常微分方程预处理工具

KPPax: preprocess differentiable kinetic ODE for machine learning in atmospheric chemistry

Institute for Atmospheric and Earth Systems Research, University of Helsinki(赫尔辛基大学大气与地球系统研究所);Atmospheric Modelling Centre Lahti (AMC-Lahti)(拉赫蒂大气模拟中心);LUT University(拉彭兰塔-拉赫蒂大学)

Wenqing Peng, Michael Boy, Zhi-Song Liu

AI总结:

KPPax是一款将KPP化学机制转换为JAX可微代码的预处理工具,可用于大气化学的参数估计与混合物理-机器学习建模,经POLLU基准机制验证能有效预测速率系数不确定性并降低排放校正误差。

摘要:

大气化学机制通常以动力学预处理工具(Kinetic PreProcessor,KPP)的语言发布,该工具可生成高效的Fortran或C代码,但不适用于开发机器学习模型所用的可微编程框架。我们提出KPPax,这是一款动力学预处理工具,可将KPP语言编写的机制转换为JAX框架中可微、即时编译且可向量化的化学代码。KPPax在对数空间中通过稀疏运算计算速率定律,以保持可微性,并使用隐式求解器及diffrax库的前向和反向模式伴随积分刚性系统,从而无需手动推导伴随代码即可获得精确灵敏度。我们使用POLLU基准机制展示两项应用:第一项中,从自动微分雅可比矩阵计算的费舍尔信息矩阵在拟合前即可预测类流动管设计可识别25个速率系数中的哪些,含噪合成估计证实9个可识别速率系数的预测不确定性在约30%以内,同时揭示仅受比率约束的快速反应簇;第二项中,对排放清单的神经网络校正通过逐场景4D-Var反演离线训练,再通过化学模型在线微调,使生物源校正误差降低2.4至5倍,并恢复各次反演丢失的低温排放信息。KPPax使KPP机制可直接用于参数估计及混合物理-机器学习建模。

英文摘要:

Atmospheric chemical mechanisms are commonly distributed in the language of the Kinetic PreProcessor (KPP), which generates efficient Fortran or C code but does not fit into the differentiable programming frameworks in which machine-learning models are developed. We present KPPax, a kinetic preprocessor that generates differentiable, just-in-time compiled, and vectorisable chemistry code in JAX from mechanisms written in the KPP language. KPPax evaluates the rate law with sparse operations in log space, which keeps it differentiable, and integrates the stiff system with the implicit solvers and the forward- and reverse-mode adjoints of the \texttt{diffrax} library, so that exact sensitivities are obtained without hand-derived adjoint code. We demonstrate two applications with the POLLU benchmark mechanism. In the first, the Fisher information matrix computed from an automatically differentiated Jacobian predicts, before any fit, which of the 25 rate coefficients a flow-tube-like design can identify, and noisy synthetic estimation confirms the predicted uncertainties of the nine identifiable rate coefficients to within about 30\% while revealing clusters of fast reactions of which only ratios are constrained. In the second, a neural-network correction of an emission inventory is trained offline on per-scenario 4D-Var retrievals and then fine-tuned online through the chemical model, which reduces the error of the biogenic correction by a factor of 2.4--5 and recovers information on low-temperature emissions that the individual retrievals lose. KPPax makes KPP mechanisms directly usable for parameter estimation and hybrid physics--machine-learning modelling.

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

↑