PANNA 2.0: Efficient neural network interatomic potentials and new architectures

Franco Pellegrini, Ruggero Lot, Yusuf Shaidu, Emine KüçükbenliarXiv 2023

Abstract

We present the latest release of PANNA 2.0 (Properties from Artificial Neural Network Architectures), a code for the generation of neural network interatomic potentials based on local atomic descriptors and multilayer perceptrons. Built on a new back end, this new release of PANNA features improved tools for customizing and monitoring network training, better GPU support including a fast descriptor calculator, new plugins for external codes and a new architecture for the inclusion of long-range electrostatic interactions through a variational charge equilibration scheme. We present an overview of the main features of the new code, and several benchmarks comparing the accuracy of PANNA models to the state of the art, on commonly used benchmarks as well as richer datasets.

Introduction

In atomistic simulations, researchers have long faced a trade-off between the high accuracy of quantum mechanical methods like Density Functional Theory (DFT) and the computational speed of classical force fields. Machine Learning Interatomic Potentials (MLIPs) have emerged as a powerful middle ground, but two major hurdles remain: computational efficiency on modern hardware and the "locality problem." Most MLIPs assume an atom's energy depends only on its immediate neighbors, which fails in systems dominated by long-range electrostatics, such as ionic crystals or charged molecules. PANNA 2.0 addresses these challenges with a streamlined, GPU-accelerated framework that handles both local and long-range interactions efficiently.

Methods and Technical Innovations

PANNA 2.0 is built on a foundation of Multilayer Perceptrons (MLPs) and local atomic descriptors. The framework has been entirely rewritten for a TensorFlow 2.x backend, enabling superior GPU support and on-the-fly descriptor calculation. This approach avoids the massive storage requirements of precomputed data and allows for faster iteration.

To solve the locality problem, PANNA 2.0 introduces a Variational Charge Equilibration architecture. Instead of predicting total energy directly, the network predicts coefficients for a Taylor expansion of the energy (electronegativity and hardness). These are utilized in a system-wide charge equilibration scheme to account for long-range electrostatic effects. Crucially, the network can learn to partition charges internally to minimize energy error even if the training data lacks explicit charge labels.

Benchmarking and Scaling Performance

The performance of PANNA 2.0 was validated using the rMD17 benchmark and a large carbon allotrope dataset. A key insight from these tests is that implementation details matter as much as underlying mathematics; PANNA 2.0 significantly outperformed the well-known ANI model on rMD17, achieving an energy Mean Absolute Error (MAE) of 10.6 meV on Aspirin compared to ANI's 16.6 meV.

Learning curves for energy and force MAE across different model architectures and training set sizes.

While MLPs are generally less "data-efficient" than newer equivariant Graph Neural Networks (GNNs) like MACE or NequIP—requiring more training examples to reach the same accuracy—they offer a massive advantage in inference speed. PANNA 2.0 runs roughly 4x to 6x faster than these state-of-the-art equivariant models, making it ideal for large-scale production simulations.

Addressing the Locality Problem

The effectiveness of the new long-range architecture was demonstrated using charged sodium chloride clusters ($Na_9Cl_8^+$ and $Na_8Cl_8^+$). In these systems, standard local-only models fail to capture the forces correctly because they cannot account for the long-range electrostatic environment.

Structural model of NaCl clusters and force predictions comparing local-only models (SR) with the new long-range electrostatic architecture against DFT.

As shown in the force predictions, the long-range model ($\gamma_q > 0$) accurately reproduces DFT results where short-range (SR) models deviate significantly. This proves the effectiveness of the charge equilibration scheme in capturing physics that local descriptors alone cannot reach.

Conclusion and Future Work

PANNA 2.0 provides a high-performance alternative to complex graph neural networks by balancing computational speed with ab initio accuracy. The authors propose a "knowledge distillation" strategy to overcome MLP data-inefficiency: using a slow, data-efficient model like MACE to generate synthetic data, which is then used to train a fast PANNA model. Future developments will include integration with JAX-MD for differentiable physics and further optimization of descriptors using specialized CUDA kernels.

Summary updated

BibTeX
@misc{pellegrini2023panna,
  author = {Franco Pellegrini and Ruggero Lot and Yusuf Shaidu and Emine Küçükbenli},
  title = {{PANNA 2.0: Efficient neural network interatomic potentials and new architectures}},
  year = {2023},
  eprint = {2305.11805},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.11805},
}
Figure