arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.15747physics.chem-ph
收藏

如何训练浅层集成

How to Train a Shallow Ensemble

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);University of Stuttgart(斯图加特大学)

Moritz Schäfer, Matthias Kellner, Johannes Kästner, Michele Ceriotti

AI总结:

本文提出通过优化负对数似然损失提升浅层集成的校准性能,同时通过微调减少计算成本,为原子机器学习中的不确定性量化提供实用指导。

摘要:

浅层集成提供了一种在机器学习原子间势能中进行不确定性量化方便的策略,其计算效率高是因为不同的集成成员共享大部分模型权重。在本工作中,我们系统地研究了浅层集成的训练策略,以在校准性能和计算成本之间取得平衡。我们首先证明,显式优化负对数似然(NLL)损失可以相对于基于随机初始化模型集成或最后一层拉普拉斯近似的方法提高校准性能。然而,仅基于能量目标训练的模型会产生不准确的力估计。我们展示,通过显式建模力的不确定性,使用NLL目标是可靠校准的关键,尽管这通常会带来显著的计算开销。为了解决这个问题,我们验证了一种高效的协议:对最初使用概率能量损失或从拉普拉斯后验中采样的浅层集成进行完整模型微调。这种方法在校准质量上与从头训练相比几乎没有减少,同时将训练时间减少高达96%。我们评估了该协议在多种材料上的表现,包括非晶碳、离子液体(BMIM)、液态水(H₂O)、钛酸钡(BaTiO₃)以及一个模型四肽(Ac-Ala3-NHMe),从而建立了在原子机器学习中可靠不确定性量化的实用指南。

英文摘要:

Shallow ensembles provide a convenient strategy for uncertainty quantification in machine learning interatomic potentials, that is computationally efficient because the different ensemble members share a large part of the model weights. In this work, we systematically investigate training strategies for shallow ensembles to balance calibration performance with computational cost. We first demonstrate that explicit optimization of a negative log-likelihood (NLL) loss improves calibration with respect to approaches based on ensembles of randomly initialized models, or on a last-layer Laplace approximation. However, models trained solely on energy objectives yield miscalibrated force estimates. We show that explicitly modeling force uncertainties via an NLL objective is essential for reliable calibration, though it typically incurs a significant computational overhead. To address this, we validate an efficient protocol: full-model fine-tuning of a shallow ensemble originally trained with a probabilistic energy loss, or one sampled from the Laplace posterior. This approach results in negligible reduction in calibration quality compared to training from scratch, while reducing training time by up to 96%. We evaluate this protocol across a diverse range of materials, including amorphous carbon, ionic liquids (BMIM), liquid water (H$_2$O), barium titanate (BaTiO$_3$), and a model tetrapeptide (Ac-Ala3-NHMe), establishing practical guidelines for reliable uncertainty quantification in atomistic machine learning.

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

↑