arXivPreprintOpen accessphysics.chem-ph

Truncated automatic sparse differentiation for machine learning interatomic potentials

Marcel F. Langer, Adrian Hill, Michele Ceriotti

Computational

Key points

From the paper's conclusion
  • Suggesting a solution for computing higher-order derivatives, most notably the Hessian, for machine learning interatomic potentials (MLIPs) using automatic sparse differentiation (ASD).
  • Explaining how to compute the sparsity pattern for MLIP derivatives and demonstrating that, for multiple foundation MLIPs, ASD computes full Hessians of large porous materials exactly, but with modest speedups at best.
  • Proposing truncated ASD, discarding small, but nonzero, Hessian entries between distant atoms, which yields order-of-magnitude speedups with negligible impact on predicted observables.

Abstract

Machine learning interatomic potentials (MLIPs) learn the mapping from atomic positions to potential energy. The forces, the negative gradient of this energy, drive molecular dynamics and are readily obtained using automatic differentiation. Higher-order derivatives, most notably the Hessian, describe collective motion and allow the direct prediction of experimental observables, but are considered computationally inaccessible for large systems. We suggest a solution: in physical systems, interactions decay with distance, and most MLIPs build on this locality through message passing up to a finite receptive field. This implies both sparsity of higher-order derivatives and their decay with distance. This structure can be exploited using automatic sparse differentiation (ASD). We explain how to compute the sparsity pattern for MLIP derivatives and demonstrate that, for multiple foundation MLIPs, ASD computes full Hessians of large porous materials exactly, but with modest speedups at best. The larger gains come from truncated ASD: discarding small, but nonzero, Hessian entries between distant atoms yields order-of-magnitude speedups with negligible impact on predicted observables.

Read the paper

Discussion · 1

Science Skim's AI key points, plus readers' public thoughts

Science SkimAI key points
Pinned
  • Suggesting a solution for computing higher-order derivatives, most notably the Hessian, for machine learning interatomic potentials (MLIPs) using automatic sparse differentiation (ASD).
  • Explaining how to compute the sparsity pattern for MLIP derivatives and demonstrating that, for multiple foundation MLIPs, ASD computes full Hessians of large porous materials exactly, but with modest speedups at best.
  • Proposing truncated ASD, discarding small, but nonzero, Hessian entries between distant atoms, which yields order-of-magnitude speedups with negligible impact on predicted observables.

Readers' thoughts

No reader thoughts yet.

Related papers