Abstract
Molecular dynamics (MD) is an indispensable atomistic-scale computational tool widely-used in various disciplines. In the past decades, nearly all ab initio MD and machine-learning MD have been based on the general-purpose central/graphics processing units (CPU/GPU), which are well-known to suffer from their intrinsic “memory wall” and “power wall” bottlenecks. Consequently, nowadays MD calculations with ab initio accuracy are extremely time-consuming and power-consuming, imposing serious restrictions on the MD simulation size and duration. To solve this problem, here we propose a special-purpose MD processing unit (MDPU), which could reduce MD time and power consumption by about 10³ times (10⁹ times) compared to state-of-the-art machine-learning MD (ab initio MD) based on CPU/GPU, while keeping ab initio accuracy. With significantly-enhanced performance, the proposed MDPU may pave a way for the accurate atomistic-scale analysis of large-size and/or long-duration problems which were impossible/impractical to compute before.
Introduction
Molecular Dynamics (MD) simulations are critical for understanding atomic-scale phenomena across materials science, chemistry, and biology. However, researchers have long struggled with a fundamental trade-off between simulation speed, system scale, and physical accuracy. Classical MD is efficient but lacks the precision of quantum mechanics. Conversely, ab initio MD (AIMD) provides high accuracy but is computationally prohibitive for large systems. Machine Learning MD (MLMD) has emerged as a promising middle ground, yet its implementation on general-purpose hardware (CPUs and GPUs) is hindered by the von Neumann architecture's "memory wall" and "power wall," where data movement consumes the vast majority of energy and time.
Hardware-Software Co-Design
To overcome these architectural bottlenecks, we developed a specialized Molecular Dynamics Processing Unit (MDPU) through a rigorous hardware-software co-design approach.
Algorithm Optimization
The DeepPot-SE (Deep Potential Smooth Edition) model was optimized for hardware efficiency. We replaced standard 64-bit floating-point operations with fixed-point "pre-alignment" math. Furthermore, computationally expensive transcendental activation functions were substituted with a lightweight polynomial function, $\psi(x)$, significantly reducing the hardware logic required for interatomic potential calculations.
Architecture
The MDPU utilizes a Computing-in-Memory (CIM) architecture, integrating calculation logic directly with data storage to minimize energy-intensive data transfers. The system follows a "Master-Slave" hierarchy: general-purpose units (MPUs) manage high-level logic, while specialized Slave units (SPUs) execute the heavy computational load of potential calculations. This architecture was validated first on Field-Programmable Gate Arrays (FPGA) and subsequently implemented in a custom 2.0 GHz Application-Specific Integrated Circuit (ASIC).
Results and Performance
The MDPU demonstrates transformative improvements in both speed and energy efficiency. The ASIC implementation achieves a throughput of approximately $10^{-9}$ seconds per step per atom, representing a significant speedup over state-of-the-art MLMD on high-end GPUs.
As shown in Figure 3, the MDPU (ASIC) achieves a $10^9$-fold improvement in power efficiency compared to traditional AIMD. This efficiency allows a single desktop-scale system with 20 MDPU ASICs to match the MD simulation throughput of the Summit supercomputer while consuming a fraction of the power.
Accuracy Validation
Crucially, these hardware simplifications do not compromise scientific accuracy. The MDPU was tested across diverse systems, including elementary metals (Au, Cu, Mg), water ($H_2O$), and complex solid-state electrolytes ($Li_{10}GeP_2S_{12}$).
As illustrated in Figure 4 for Magnesium, the energy and force predictions remain well within the "chemical accuracy" threshold. Root-Mean-Square Errors (RMSE) for energy and force were consistently low across all tested systems, ensuring that the MDPU can reliably capture complex physical phenomena such as phase transitions and ionic diffusion pathways.
Discussion and Conclusion
The MDPU represents a paradigm shift in atomistic simulation, enabling quantum-accurate modeling of systems containing over 100 million atoms on localized hardware. While current limitations include the inherent rigidity of ASIC designs and potential communication latencies between Master and Slave units, future iterations integrating these components onto a single chip promise even greater performance. By breaking the memory and power walls of general-purpose computing, the MDPU paves the way for long-duration, large-scale simulations that were previously considered computationally impossible.
Summary updated