FeNNol: an Efficient and Flexible Library for Building Force-field-enhanced Neural Network Potentials

Thomas Plé,Olivier Adjoua,Louis Lagardère,Jean-Philip Piquemal
2024-05-06
Abstract:Neural network interatomic potentials (NNPs) have recently proven to be powerful tools to accurately model complex molecular systems while bypassing the high numerical cost of ab-initio molecular dynamics simulations. In recent years, numerous advances in model architectures as well as the development of hybrid models combining machine-learning (ML) with more traditional, physically-motivated, force-field interactions have considerably increased the design space of ML potentials. In this paper, we present FeNNol, a new library for building, training and running force-field-enhanced neural network potentials. It provides a flexible and modular system for building hybrid models, allowing to easily combine state-of-the-art embeddings with ML-parameterized physical interaction terms without the need for explicit programming. Furthermore, FeNNol leverages the automatic differentiation and just-in-time compilation features of the Jax Python library to enable fast evaluation of NNPs, shrinking the performance gap between ML potentials and standard force-fields. This is demonstrated with the popular ANI-2x model reaching simulation speeds nearly on par with the AMOEBA polarizable force-field on commodity GPUs (GPU=Graphics processing unit). We hope that FeNNol will facilitate the development and application of new hybrid NNP architectures for a wide range of molecular simulation problems.
Chemical Physics,Machine Learning
What problem does this paper attempt to address?
The paper introduces a new library called FeNNol, which aims to construct, train, and run neural network potentials for enhanced force fields. It addresses the issue of current machine learning potential models being decentralized and inefficient, providing a flexible and modular system that easily integrates advanced atomic embeddings and machine-learning parameterized physical interaction terms without explicit programming. FeNNol utilizes the automatic differentiation and just-in-time compilation features of the Jax library to improve the computational speed of neural network potentials and narrow the performance gap with standard force fields. The paper also demonstrates FeNNol's ability to approach the simulation speed of the AMOEBA polarizable force field and hopes to promote the development and application of new hybrid NNP architectures.