Abstract
For 35 years, ab initio molecular dynamics (AIMD) has been the method of choice for modeling complex atomistic phenomena from first principles. However, most AIMD applications are limited by computational cost to systems with thousands of atoms at most. We report that a machine learning-based simulation protocol (Deep Potential Molecular Dynamics), while retaining ab initio accuracy, can simulate more than 1 nanosecond-long trajectory of over 100 million atoms per day, using a highly optimized code (GPU DeePMD-kit) on the Summit supercomputer. Our code can efficiently scale up to the entire Summit supercomputer, attaining 91 PFLOPS in double precision (45.5% of the peak) and 162/275 PFLOPS in mixed-single/half precision. The great accomplishment of this work is that it opens the door to simulating unprecedented size and time scales with ab initio accuracy. It also poses new challenges to the next-generation supercomputer for a better integration of machine learning and physical modeling.
Introduction
Scientists have long faced a trade-off in molecular modeling: the high accuracy of Ab Initio Molecular Dynamics (AIMD) versus the massive scale of Empirical Force Fields (EFF). While AIMD calculates atomic forces from first principles, its cubic scaling with respect to the number of electrons limits it to systems of just a few thousand atoms. Conversely, EFFs can handle billions of atoms but often fail to capture complex chemical reactions or electronic polarization. This research bridges this gap, demonstrating how machine learning can enable "real-world" sized simulations (millions of atoms) over meaningful timescales (nanoseconds) without sacrificing first-principles accuracy.
The DeePMD Framework
The researchers utilized Deep Potential Molecular Dynamics (DeePMD), a machine learning protocol that trains a deep neural network (DNN) to represent the potential energy surface of a system based on AIMD data. A critical feature of DeePMD is its ability to enforce physical symmetries—such as rotation, translation, and permutation invariance—directly into the neural network architecture.
As illustrated in Figure 1, the model decomposes the total energy into a sum of local atomic energies. By mapping each atom's local environment to a symmetry-preserving descriptor, the model achieves linear scaling with the number of atoms, providing the foundation for massive parallelization.
Optimizing for the Summit Supercomputer
To scale this protocol to 100 million atoms on the Summit supercomputer, the team introduced several algorithmic innovations to overcome GPU performance bottlenecks and the "memory wall."
Key optimizations shown in Figure 5 include:
- Data Layout and Granularity: Redesigning the neighbor list to sort atoms by type and distance, which avoids performance-killing "branching" in GPU code.
- Custom TensorFlow Operators: Replacing standard operators with highly optimized CUDA kernels designed for the "tall and skinny" matrices typical in MD simulations.
- Mixed-Precision Computing: Implementing "MIX-32" and "MIX-16" schemes. By performing intensive calculations in single or half-precision while keeping critical physical coordinates in double-precision, the team leveraged NVIDIA Tensor Cores for massive speed boosts.
- Data Compression: Compressing neighbor list elements into 64-bit integers to optimize memory access and coalescing on the GPU.
Key Results and Performance
The optimized GPU DeePMD-kit achieved unprecedented performance across benchmarks including water and copper systems:
- Unprecedented Scale: Successful simulation of a copper system containing 127 million atoms and a water system of 679 million atoms (weak scaling).
- Massive Throughput: A time-to-solution of 1 nanosecond per day for 100 million atoms. For context, traditional AIMD would take decades to reach this milestone.
- Peak Performance: The code attained 91 PFLOPS in double precision (45.5% of Summit's theoretical peak) and up to 275 PFLOPS in mixed-half precision.
- Efficiency: The implementation demonstrated nearly perfect weak scaling and high strong scaling efficiency across 27,360 GPUs.
Conclusion
This work represents a major milestone in computational science, opening the door to simulating unprecedented size and time scales with ab initio accuracy. By successfully integrating machine learning with high-performance physical modeling, the authors have provided a blueprint for the next generation of exascale supercomputing applications. Future work will likely extend this framework to model even more complex phenomena, such as radiation damage and dynamic fracture in materials.
Summary updated