Teacher-student training improves accuracy and efficiency of machine learning interatomic potentials

Sakib Matin, Alice Allen, Emily Shinkle, Aleksandra Pachalieva, Galen T. Craven, Benjamin Nebgen, Justin S. Smith, Richard A. Messerly, Ying Wai Li, Sergei Tretiak, Kipton Barros, Nicholas LubbersarXiv 2025 · DOI

Abstract

Machine learning interatomic potentials (MLIPs) are revolutionizing the field of molecular dynamics (MD) simulations. Recent MLIPs have tended towards more complex architectures trained on larger datasets. The resulting increase in computational and memory costs may prohibit the application of these MLIPs to perform large-scale MD simulations. Here, we present a teacher-student training framework in which the latent knowledge from the teacher (atomic energies) is used to augment the students' training. We show that the light-weight student MLIPs have faster MD speeds at a fraction of the memory footprint compared to the teacher models. Remarkably, the student models can even surpass the accuracy of the teachers, even though both are trained on the same quantum chemistry dataset. Our work highlights a practical method for MLIPs to reduce the resources required for large-scale MD simulations.

Introduction

Molecular Dynamics (MD) simulations are essential for understanding the temporal evolution of atomic systems. While high-fidelity Quantum Chemistry (QC) methods like Density Functional Theory (DFT) provide accurate forces, their computational cost scales poorly with system size. Machine Learning Interatomic Potentials (MLIPs) have emerged as a solution, offering QC-level accuracy at significantly lower costs.

However, a recent trend toward increasingly large "foundation models" has introduced new bottlenecks. These massive architectures require substantial memory and compute power, limiting the number of atoms that can be simulated on a single GPU. This is particularly problematic for large-scale simulations on supercomputers, where inter-node communication overhead can degrade performance. This research addresses the need for efficient, lightweight MLIPs that maintain high accuracy without requiring additional, expensive QC training data.

Methods: Knowledge Distillation for MLIPs

The researchers propose a Knowledge Distillation framework applied to the Hierarchically Interacting Particle Neural Network (HIPNN) architecture. In standard MLIP training, models learn from total configuration energy and atomic forces. While these models typically calculate total energy by summing predicted local atomic energies, these local values are usually treated as internal latent variables.

Schematic of the teacher-student training framework showing the distillation of latent atomic energies from a large teacher to a compact student.

In this framework, these latent atomic energies are treated as valuable "knowledge":

  1. The Teacher: A high-capacity MLIP is trained on a standard QC dataset (ANI-Al, containing ~6,000 DFT calculations of aluminum).
  2. The Student: A smaller, lightweight MLIP is trained on the same ground-truth QC data, augmented by the local atomic energies predicted by the Teacher.
  3. Born-Again (BA) Training: A variant where the student and teacher share the same architecture size. A dynamic loss scheduler is used to prioritize teacher knowledge early in training before shifting focus to ground-truth data.

Results and Discussion

The teacher-student framework demonstrates significant improvements across accuracy, speed, and memory metrics. By training on per-atom energy targets rather than just a single total energy value per configuration, the student model receives $N$ times more constraints (where $N$ is the number of atoms), leading to highly data-efficient learning.

Pareto Dominance in Performance

Student models consistently outperformed "control" models (identical architectures trained only on ground-truth data). As shown in the performance analysis, student models occupy a superior Pareto front, offering better accuracy for a given computational budget.

Force RMSE vs. MD step time (A) and memory usage (B), demonstrating that student models (blue) achieve higher accuracy and efficiency than control models (red).

Key quantitative findings include:

  • Efficiency Gains: Student models achieved over a 2x speedup in MD simulations and required less than half the memory of the teacher model, with only a marginal (<20%) sacrifice in force accuracy.
  • Surpassing the Teacher: Using the "Born-Again" method, a student model of the same size as the teacher achieved a force RMSE of 0.083 eV/Å, a ~10% improvement over the teacher’s 0.092 eV/Å.
  • Simulation Stability: The distilled models successfully reproduced the Radial Distribution Function (RDF) of liquid aluminum at 1200 K in large-scale simulations involving over 18,000 atoms, confirming their stability in practical MD environments.

Conclusion and Future Outlook

This work demonstrates that distilling latent atomic energies is a powerful method for creating efficient MLIPs. The approach provides a path toward performing large-scale MD simulations that were previously computationally prohibitive. Future research may extend this technique to other architectures, such as those decomposing energy into local bonds (e.g., Allegro), or explore distilling more complex features like node-level force vectors or edge-level properties to further enhance student performance.

Summary updated

BibTeX
@misc{matin2025teacher,
  author = {Sakib Matin and Alice Allen and Emily Shinkle and Aleksandra Pachalieva and Galen T. Craven and Benjamin Nebgen and Justin S. Smith and Richard A. Messerly and Ying Wai Li and Sergei Tretiak and Kipton Barros and Nicholas Lubbers},
  title = {{Teacher-student training improves accuracy and efficiency of machine learning interatomic potentials}},
  year = {2025},
  eprint = {2502.05379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05379},
  howpublished = {arXiv},
}
Figure