Learning local equivariant representations for large-scale atomistic dynamics

Albert Musaelian, Simon Batzner, Anders Johansson, Lixin Sun, Cameron J. Owen, Mordechai Kornbluth, Boris Kozinsky

Abstract

A simultaneously accurate and computationally efficient parametrization of the potential energy surface of molecules and materials is a long-standing goal in the natural sciences. While atom-centered message passing neural networks (MPNNs) have shown remarkable accuracy, their information propagation has limited the accessible length-scales. Local methods, conversely, scale to large simulations but have suffered from inferior accuracy. This work introduces Allegro, a strictly local equivariant deep neural network interatomic potential architecture that simultaneously exhibits excellent accuracy and scalability. Allegro represents a many-body potential using iterated tensor products of learned equivariant representations without atom-centered message passing. Allegro obtains improvements over state-of-the-art methods on QM9 and revMD17. A single tensor product layer outperforms existing deep MPNNs and transformers on QM9. Furthermore, Allegro displays remarkable generalization to out-of-distribution data. Molecular simulations using Allegro recover structural and kinetic properties of an amorphous electrolyte in excellent agreement with ab-initio simulations. Finally, we demonstrate parallelization with a simulation of 100 million atoms.

Introduction

The ability to accurately and efficiently parameterize the potential energy surface (PES) of molecules and materials is a cornerstone of modern computational chemistry and materials science. Molecular Dynamics (MD) simulations rely on these surfaces to calculate forces and predict the evolution of atomic systems over time. Historically, researchers faced a stark trade-off. High-fidelity methods like Density Functional Theory (DFT) provide exceptional accuracy but are computationally prohibitive for systems exceeding a few hundred atoms. Machine Learning Interatomic Potentials (MLIPs) emerged to bridge this gap, yet they introduced their own dichotomy: highly accurate Message-Passing Neural Networks (MPNNs) that suffer from poor scalability due to large receptive fields, and strictly local methods that scale well but often lack the precision required for complex chemical environments.

Allegro addresses this fundamental challenge by introducing a strictly local, equivariant deep neural network architecture. By moving away from atom-centered message passing and instead utilizing iterated tensor products of learned equivariant representations, Allegro achieves state-of-the-art accuracy while maintaining the linear scalability necessary for simulations involving millions of atoms.

The Allegro Architecture

The core innovation of Allegro lies in its departure from the standard message-passing paradigm. In traditional MPNNs, an atom's state is updated by aggregating information from its neighbors, who in turn have aggregated information from their own neighbors. This recursive process creates a wide "receptive field," making the model difficult to parallelize across multiple compute nodes and limiting its use in large-scale simulations.

The Allegro architecture (a) and the internal structure of a single layer (b), showing the interaction between scalar and tensor latent spaces.

Allegro enforces strict locality by considering only interactions within a fixed cutoff radius. To capture the complex, many-body interactions typically handled by message passing, Allegro employs iterated tensor products. Each layer in the network increases the "body order" of the representation—effectively accounting for interactions between groups of 3, 4, or more atoms—without expanding the spatial range of the model.

Furthermore, Allegro is built on the principles of equivariance under the $O(3)$ symmetry group (rotations and inversions). This ensures that the model inherently understands the geometric relationships within a molecule; if a system is rotated in 3D space, its predicted properties, such as force vectors, rotate accordingly. The architecture maintains two distinct latent spaces: a scalar (invariant) space for energy-related properties and a tensor (equivariant) space for geometric features, allowing them to interact dynamically at every layer.

Experimental Validation

The authors evaluated Allegro across several rigorous benchmarks to test its accuracy, generalization, and scalability:

  • revMD17: A standard dataset for testing force and energy accuracy on small organic molecules like aspirin and benzene.
  • QM9: A large-scale dataset of 134,000 small molecules used to assess performance across a broad chemical space.
  • 3BPA: A challenging benchmark involving a flexible drug-like molecule to test out-of-distribution generalization at high temperatures.
  • Amorphous Electrolyte ($Li_3PO_4$): A complex material system used to verify the model's ability to recover structural and kinetic properties.
  • Large-scale Silver (Ag): A bulk crystal system used to demonstrate parallelization and scaling to 100 million atoms.

Key Results and Discussion

Allegro demonstrated state-of-the-art accuracy, achieving the lowest errors recorded to date on several molecules within the revMD17 and QM9 datasets. Notably, a single tensor product layer in Allegro outperformed significantly deeper MPNNs and Transformers on QM9, highlighting the efficiency of equivariant representations.

In terms of generalization, Allegro showed remarkable robustness. In the 3BPA test, the model was trained on data at 300K but accurately predicted configurations at 1200K, significantly outperforming non-equivariant models. This suggests that respecting physical symmetries allows the model to learn more fundamental, transferable representations of the potential energy surface.

Comparison of structural properties predicted by Allegro and ab-initio molecular dynamics (AIMD) for an amorphous electrolyte, showing the radial distribution function $g(r)$ and angular distribution $p(\theta)$.

For the $Li_3PO_4$ electrolyte, Allegro's predictions for radial distribution functions and angular distributions were in excellent agreement with ab-initio data, as shown in Figure 6. It also accurately captured kinetic properties like ion diffusion (mean-square displacement), proving its reliability for complex materials discovery.

Finally, the architecture's strict locality enables massive scalability. The authors demonstrated a simulation of 100 million atoms using 128 GPUs, showing "strong scaling" where doubling the computational resources nearly doubles the simulation speed.

Conclusion and Limitations

Allegro represents a significant step forward in atomistic modeling, successfully combining the accuracy of deep equivariant networks with the scalability of local methods. While highly effective, the model's strict locality means it does not explicitly account for long-range interactions such as electrostatics or van der Waals forces beyond the cutoff radius. Future work may involve integrating explicit long-range modules. Additionally, the per-pair featurization approach increases memory requirements compared to per-atom methods, though this is a manageable trade-off for the gains in precision and scalability.

Summary updated

BibTeX
@inproceedings{musaelian2023learning,
  author = {Albert Musaelian and Simon Batzner and Anders Johansson and Lixin Sun and Cameron J. Owen and Mordechai Kornbluth and Boris Kozinsky},
  title = {{Learning local equivariant representations for large-scale atomistic dynamics}},
  booktitle = {Nature Communications},
  year = {2023},
  doi = {10.1038/s41467-023-36329-y},
}
Figure