Improving Molecular Force Fields with Minimal Temporal Information
Organizations: School of Electrical and Computer Engineering, University of Tehran, Tehran, Iran · School of Computing, National University of Singapore, Singapore
Abstract
Accurate prediction of energy and forces for 3D molecular systems is one of fundamental challenges at the core of AI for Science applications. Many powerful and data-efficient neural networks predict molecular energies and forces from single atomic configurations. However, one crucial aspect of the data generation process is rarely considered while learning these models i.e. Molecular Dynamics (MD) simulation. MD simulations generate time-ordered trajectories of atomic positions that fluctuate in energy and explore regions of the potential energy surface (e.g., under standard NVE/NVT ensembles), rather than being constructed to steadily lower the potential energy toward a minimum as in geometry relaxations. This work explores a novel way to leverage MD data, when available, to improve the performance of such predictors. We introduce a novel training strategy called FRAMES, that use an auxiliary loss function for exploiting the temporal relationships within MD trajectories. Counter-intuitively, on two atomistic benchmarks and a synthetic system we observe that minimal temporal information, captured by pairs of just two consecutive frames, is often sufficient to obtain the best performance, while adding longer trajectory sequences can introduce redundancy and degrade performance. On the widely used MD17 and ISO17 benchmarks, FRAMES significantly outperforms its Equiformer baseline, achieving highly competitive results in both energy and force accuracy. Our work not only presents a novel training strategy which improves the accuracy of the model, but also provides evidence that for distilling physical priors of atomic systems, more temporal data is not always better.
Figures & tables
| Aspirin | Benzene | Ethanol | Malonaldehyde | Naphthalene | Salicylic acid | Toluene | Uracil | |||||||||
| Model | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces |
| SchNet ( Schütt et al., 2017 ) | 16.0 | 58.5 | 3.5 | 13.4 | 3.5 | 16.9 | 5.6 | 28.6 | 6.9 | 25.2 | 8.7 | 36.9 | 5.2 | 24.7 | 6.1 | 24.3 |
| DimeNet ( Gasteiger et al., 2020 ) | 8.8 | 21.6 | 3.4 | 8.1 | 2.8 | 10.0 | 4.5 | 16.6 | 5.3 | 9.3 | 5.8 | 16.2 | 4.4 | 9.4 | 5.0 | 13.1 |
| PaiNN ( Schütt et al., 2021 ) | 6.9 | 14.7 | - | - | 2.7 | 9.7 | 3.9 | 13.8 | 5.0 | 3.3 | 4.9 | 8.5 | 4.1 | 4.1 | 4.5 | 6.0 |
| TorchMD-NET ( Thölke and Fabritiis, 2022 ) | 5.3 | 11.0 | 2.5 | 8.5 | 2.3 | 4.7 | 3.3 | 7.3 | 3.7 | 2.6 | 4.0 | 5.6 | 3.2 | 2.9 | 4.1 | 4.1 |
| NequIP ( ) ( Batzner et al., 2022 ) | 5.7 | 8.0 | - | - | 2.2 | 3.1 | 3.3 | 5.6 | 4.9 | 1.7 | 4.6 | 3.9 | 4.0 | 2.0 | 4.5 | 3.3 |
| Aspirin | Benzene | Ethanol | Malonaldehyde | Naphthalene | Salicylic acid | Toluene | Uracil | |||||||||
| Model (T=2) | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces | energy | forces |
| Equiformer (T=1, Baseline) | 5.3 | 7.2 | 2.2 | 6.6 | 2.2 | 3.1 | 3.3 | 5.8 | 3.7 | 2.1 | 4.5 | 4.1 | 3.8 | 2.1 | 4.3 | 3.8 |
| FRAMES (T=2) with Aux: | 5.3 | 7.2 | 2.3 | 6.1 | 2.2 | 3.2 | 3.2 | 5.6 | 3.6 | 2.2 | 4.4 | 4.2 | 3.8 | 1.9 | 4.1 | 3.6 |
| FRAMES (T=2) with Aux: | 5.2 | 7.0 | 2.4 | 6.3 | 2.2 | 3.2 | 3.3 | 5.6 | 3.6 | 2.2 | 4.3 | 4.1 | 3.6 | 2.0 | 4.2 | 3.5 |
| Within Distribution | Outside Distribution | |||
|---|---|---|---|---|
| Energy | Forces | Energy | Forces | |
| Equiformer (Baseline) | 0.13228 | 0.0093 | 0.1460 | 0.0174 |
| FRAMES | 0.00569 | 0.0053 | 0.0248 | 0.0154 |
| FRAMES | 0.07009 | 0.0101 | 0.0639 | 0.0187 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Hyper-parameter | Aspirin | Benzene | Ethanol | Malonaldehyde | Naphthalene | Salicylic acid | Toluene | Uracil | |
|---|---|---|---|---|---|---|---|---|---|
| Energy coefficient | 1 | 1 | 1 | 1 | 2 | 1 | 1 | 1 | |
| Force coefficient | 80 | 80 | 80 | 100 | 20 | 80 | 80 | 20 | |
| FRAMES coefficient | 1 | 0.25 | 0.25 | 0.25 | 1 | 1 | 1 | 0.25 |
Machine Learning Interatomic Potentials
Machine learning interatomic potentials predict atomic energies and forces for fast simulations of molecules and materials.
See all 91 papers