Beyond Numerical Hessians: Higher-Order Derivatives for Machine Learning Interatomic Potentials via Automatic Differentiation

08 January 2025, Version 1
This content is a preprint and has not undergone peer review at the time of posting.

Abstract

The development of machine learning interatomic potentials (MLIPs) has revolutionized computational chemistry by enhancing the accuracy of empirical force fields while retaining a large computational speed-up compared to first-principles calculations. Despite these advancements, the calculation of Hessian matrices for large systems remains challenging, in particular, because analytical second-order derivatives are often not implemented. This necessitates the use of computationally expensive finite-difference methods, which can furthermore display low precision in some cases. Automatic differentiation (AD) offers a promising alternative to reduce this computational effort and make the calculation of Hessian matrices more efficient and accurate. Here, we present the implementation of AD-based second-order derivatives for the popular MACE equivariant graph neural network architecture. The benefits of this method are showcased via a high-throughput prediction of heat capacities of porous materials with the MACE-MP-0 foundation model. This is essential for precisely describing gas adsorption in these systems and was previously only possible with bespoke ML models or expensive first-principles calculations. We find that the availability of foundation models and accurate analytical Hessian matrices offers comparable accuracy to bespoke ML models in a zero-shot manner, and additionally allows investigating finite size and rounding errors in the first-principles data.

Keywords

Automatic Differentiation
Hessian Matrix
Heat Capacity
Machine-learned Interatomic Potential

Supplementary materials

Title
Description
Actions
Title
Supporting Information: Beyond Numerical Hessians: Higher-Order Derivatives for Machine Learning Interatomic Potentials via Automatic Differentiation
Description
This includes additional information for the benchmarking study and the analysis of finite-size effects, with a special focus on the supercell frequency analysis.
Actions

Comments

Comments are not moderated before they are posted, but they can be removed by the site moderators if they are found to be in contravention of our Commenting Policy [opens in a new tab] - please read this policy before you post. Comments should be used for scholarly discussion of the content in question. You can find more information about how to use the commenting feature here [opens in a new tab] .
This site is protected by reCAPTCHA and the Google Privacy Policy [opens in a new tab] and Terms of Service [opens in a new tab] apply.