ALKPU: an active learning method for the DeePMD model with Kalman filter

Haibo Li, Xingxing Wu, Liping Liu, Lin‐Wang Wang, Long Wang, Guangming Tan, Weile JiaarXiv 2024 · DOI

Abstract

Neural network force field models such as DeePMD have enabled highly efficient large-scale molecular dynamics simulations with ab initio accuracy. However, building such models heavily depends on the training data obtained by costly electronic structure calculations, thereby it is crucial to carefully select and label the most representative configurations during model training to improve both extrapolation capability and training efficiency. To address this challenge, based on the Kalman filter theory we propose the Kalman Prediction Uncertainty (KPU) to quantify uncertainty of the model's prediction. With KPU we design the Active Learning by KPU (ALKPU) method, which can efficiently select representative configurations that should be labelled during model training. We prove that ALKPU locally leads to the fastest reduction of model's uncertainty, which reveals its rationality as a general active learning method. We test the ALKPU method using various physical system simulations and demonstrate that it can efficiently coverage the system's configuration space. Our work demonstrates the benefits of ALKPU as a novel active learning method, enhancing training efficiency and reducing computational resource demands.

Introduction

Simulating atomic movement via Molecular Dynamics (MD) typically involves a compromise between speed and accuracy. While ab initio methods (AIMD) provide high accuracy, their computational cost limits simulations to small systems and short durations. Deep learning models, such as DeePMD, bridge this gap by learning force fields from AIMD data, enabling significant speedups.

However, the performance of these models is strictly tied to the quality of their training data. Generating this data through quantum mechanical calculations is expensive. Active learning strategies are therefore essential to identify the most informative atomic configurations for labeling. Traditional methods like DP-GEN use a "query-by-committee" approach, which requires training multiple models—a process that is computationally redundant.

The ALKPU Method

The authors propose ALKPU (Active Learning by Kalman Prediction Uncertainty), which replaces multi-model committees with a single model capable of estimating its own uncertainty.

The ALKPU workflow: Training by RLEKF, Exploration, Selection, and Labelling.

The method relies on two primary components:

  1. RLEKF Optimizer: Instead of standard optimizers like Adam, the Reorganized Layer Extended Kalman Filter (RLEKF) is used. It treats neural network weights as a state to be estimated, providing a covariance matrix that represents internal model uncertainty.
  2. KPU Metric: The Kalman Prediction Uncertainty (KPU) provides a mathematical estimate of the variance in model predictions.

The ALKPU cycle involves exploring new configurations via MD, selecting those with high KPU for labeling, and updating the model with new DFT-calculated data. Mathematically, ALKPU is proven to be a "locally fastest reduction procedure" for model uncertainty, optimizing the information gain from each new data point.

Experimental Datasets

The ALKPU method was validated across four distinct physical systems to demonstrate its versatility:

  • Copper (Cu-108): FCC metal.
  • Silicon (Si-64): Diamond structure semiconductor.
  • Aluminum (Al-108): FCC metal.
  • Nickel (Ni-108): FCC metal.
Crystal structures of the four physical systems used for evaluation: (a) Cu, (b) Si, (c) Al, and (d) Ni.

Models were initially trained on low-temperature AIMD steps (300K–500K) and then tested on their ability to extrapolate to high-temperature regimes (up to 1400K).

Key Results and Insights

The study revealed several critical advantages of the ALKPU approach:

  • Efficiency: ALKPU training for one step took approximately 0.34 hours, nearly half the 0.66 hours required by the committee-based DP-GEN. This is primarily because ALKPU maintains only a single neural network.
  • Accuracy: In the Copper system, ALKPU achieved lower Root Mean Square Error (RMSE) for energy and force predictions than DP-GEN, particularly in high-temperature extrapolation.
  • Physical Fidelity: The models successfully reproduced phonon spectra for all materials, matching expensive DFT results with high precision.
  • Force-Based Selection: Using KPU for atomic forces proved more effective than total energy, as forces provide local, atom-specific information sensitive to structural changes.

Limitations and Future Outlook

While ALKPU significantly reduces training overhead, calculating the KPU requires back-propagation for force components, which is more intensive than a standard forward pass. The authors address this by sampling a subset of atoms. Additionally, the method uses thresholds ($c_0, c_1$) that may require tuning for complex reactive systems. Future research will focus on scaling ALKPU to larger, multi-element systems and complex chemical reactions.

Summary updated

BibTeX
@misc{li2024alkpu,
  author = {Haibo Li and Xingxing Wu and Liping Liu and Lin‐Wang Wang and Long Wang and Guangming Tan and Weile Jia},
  title = {{ALKPU: an active learning method for the DeePMD model with Kalman filter}},
  year = {2024},
  eprint = {2411.13850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.13850},
}
Figure