Enabling AI Deep Potentials for Ab Initio-quality Molecular Dynamics Simulations in GROMACS
Andong Hu, Luca Pennati, Stefano Markidis, Ivy Peng
TL;DR
The paper addresses bringing ab initio-quality MD to production workflows by integrating AI Deep Potentials (via DeePMD-kit) into GROMACS. It introduces a tight C++ coupling of DeePMD-kit with GROMACS NNPot that supports multiple DP families (DPA2 and DPA3) and backends, enabling AIMD-like accuracy with significantly reduced cost. Through four solvated protein benchmarks on A100 and GH200 GPUs, the study shows DPA2 provides substantially higher throughput than DPA3 (up to roughly 4–3x), while also revealing distinct kernel- and memory-bound characteristics that guide optimization priorities. The work establishes end-to-end performance baselines for AI MD in production codes and highlights directions such as GPU-graph optimizations and distributed inference to scale ab initio-quality simulations for biomolecular systems, with throughput scaling approximately as $O(N)$ rather than the $O(N^3)$ of DFT.
Abstract
State-of-the-art AI deep potentials provide ab initio-quality results, but at a fraction of the computational cost of first-principles quantum mechanical calculations, such as density functional theory. In this work, we bring AI deep potentials into GROMACS, a production-level Molecular Dynamics (MD) code, by integrating with DeePMD-kit that provides domain-specific deep learning (DL) models of interatomic potential energy and force fields. In particular, we enable AI deep potentials inference across multiple DP model families and DL backends by coupling GROMACS Neural Network Potentials with the C++/CUDA backend in DeePMD-kit. We evaluate two recent large-atom-model architectures, DPA2 that is based on the attention mechanism and DPA3 that is based on GNN, in GROMACS using four ab initio-quality protein-in-water benchmarks (1YRF, 1UBQ, 3LZM, 2PTC) on NVIDIA A100 and GH200 GPUs. Our results show that DPA2 delivers up to 4.23x and 3.18x higher throughput than DPA3 on A100 and GH200 GPUs, respectively. We also provide a characterization study to further contrast DPA2 and DPA3 in throughput, memory usage, and kernel-level execution on GPUs. Our findings identify kernel-launch overhead and domain-decomposed inference as the main optimization priorities for AI deep potentials in production MD simulations.
