---
title: "MLIP Models and Frameworks"
url: "https://ouro.foundation/posts/mmoderwell/mlip-models-and-frameworks"
id: "019412d1-31ff-7392-b8df-c34a44860ba3"
type: "post"
---

# MLIP Models and Frameworks

Post by @mmoderwell in #materials-science (all) · 2024-12-29

- Asset id: `019412d1-31ff-7392-b8df-c34a44860ba3`
- Page: https://ouro.foundation/posts/mmoderwell/mlip-models-and-frameworks

# MLIP Models and Frameworks

### E(3)m or NequIP

[https://github.com/mir-group/nequip](https://github.com/mir-group/nequip)

> Embedded file: [Equivariant graph neural networks for data-efficient and accurate interatomic potentials](https://ouro.foundation/files/mmoderwell/equivariant-graph-neural-networks-for-data-efficient-and-accurate-interatomic-potentials)

This work presents Neural Equivariant Interatomic Potentials (NequIP), an E(3)-equivariant neural network approach for learning interatomic potentials from ab-initio calculations for molecular dynamics simulations. While most contemporary symmetry-aware models use invariant convolutions and only act on scalars, NequIP employs E(3)-equivariant convolutions for interactions of geometric tensors, resulting in a more information-rich and faithful representation of atomic environments. The method achieves state-of-the-art accuracy on a challenging and diverse set of molecules and materials while exhibiting remarkable data efficiency.

Paper published: 04 May 2022

---

### CHGNet

[https://github.com/materialsvirtuallab/matgl?tab=readme-ov-file](https://github.com/materialsvirtuallab/matgl?tab=readme-ov-file)

> Embedded file: [CHGNet as a pretrained universal neural network potential for charge-informed atomistic modelling](https://ouro.foundation/files/mmoderwell/chgnet-as-a-pretrained-universal-neural-network-potential-for-charge-informed-atomistic-modelling)

This work presents the Crystal Hamiltonian Graph Neural Network (CHGNet), a graph neural network-based machine-learning interatomic potential (MLIP) that models the universal potential energy surface. CHGNet is pretrained on the energies, forces, stresses and magnetic moments from the Materials Project Trajectory Dataset, which consists of over 10 years of density functional theory calculations of more than 1.5 million inorganic structures. The explicit inclusion of magnetic moments enables CHGNet to learn and accurately represent the orbital occupancy of electrons, enhancing its capability to describe both atomic and electronic degrees of freedom.

Paper published: 14 September 2023

---

### DeePMD-kit

[https://github.com/deepmodeling/deepmd-kit](https://github.com/deepmodeling/deepmd-kit)

DeePMD-kit is a package written in Python/C++, designed to minimize the effort required to build deep learning-based model of interatomic potential energy and force field and to perform molecular dynamics (MD). This brings new hopes to addressing the accuracy-versus-efficiency dilemma in molecular simulations. Applications of DeePMD-kit span from finite molecules to extended systems and from metallic systems to chemically bonded systems.

---

### AIMNet2

[https://github.com/isayevlab/AIMNet2](https://github.com/isayevlab/AIMNet2)

> Embedded file: [AIMNet2 Paper](https://ouro.foundation/files/mmoderwell/aimnet2-paper)

In this work, they present the 2nd generation of our atoms-in-molecules neural network potential (AIMNet2), which is applicable to species composed of up to 14 chemical elements in both neutral and charged states, making it a valuable method for modeling the majority of non-metallic compounds. Using an exhaustive dataset of 2 x 107 hybrid DFT level of theory quantum chemical calculations, AIMNet2 combines ML-parameterized short-range and physics-based long-range terms to attain generalizability that reaches from simple organics to diverse molecules with “exotic” element-organic bonding. We show that AIMNet2 outperforms semi-empirical GFN-xTB and is on par with reference density functional theory for interaction energy contributions, conformer search tasks, torsion rotation profiles, and molecular-to-macromolecular geometry optimization.

- Works within ASE
- New code, overhaul 6/10/24

---

### MACE

[https://github.com/ACEsuit/mace](https://github.com/ACEsuit/mace)

> Embedded file: [A foundation model for atomistic materials chemistry](https://ouro.foundation/files/mmoderwell/a-foundation-model-for-atomistic-materials-chemistry)

MACE provides fast and accurate machine learning interatomic potentials with higher order equivariant message passing.

**MACE-MP: Materials Project Force Fields**: They have collaborated with the Materials Project (MP) to train a universal MACE potential covering 89 elements on 1.6 M bulk crystals in the [MPTrj dataset](https://figshare.com/articles/dataset/23713842) selected from MP relaxation trajectories. The models are released on GitHub at [https://github.com/ACEsuit/mace-mp](https://github.com/ACEsuit/mace-mp).

- Very active community
- Works within ASE
- Modern tech stack with PyTorch and JAX

---

### Materials Graph Library

[https://matgl.ai/](https://matgl.ai/)

MatGL (Materials Graph Library) is a graph deep learning library for materials science. Mathematical graphs are a natural representation for a collection of atoms. Graph deep learning models have been shown to consistently deliver exceptional performance as surrogate models for the prediction of materials properties.

MatGL is built on the [Deep Graph Library (DGL)](https://www.dgl.ai/) and PyTorch, with suitable adaptations for materials-specific applications. The goal is for MatGL to serve as an extensible platform to develop and share materials graph deep learning models, including the [MatErials 3-body Graph Network (M3GNet)](https://nature.com/articles/s43588-022-00349-3) and its predecessor, [MEGNet](https://pubs.acs.org/doi/10.1021/acs.chemmater.9b01294).

Implements:

- MEGNet** **[MatErials Graph Network (MEGNet)](https://pubs.acs.org/doi/10.1021/acs.chemmater.9b01294) is an implementation of DeepMind’s [graph networks](https://arxiv.org/abs/1806.01261) for machine learning in materials science. They have demonstrated its success in achieving low prediction errors in a broad array of properties in both [molecules and crystals](https://pubs.acs.org/doi/10.1021/acs.chemmater.9b01294).
- M3GNet** **[Materials 3-body Graph Network (M3GNet)](https://nature.com/articles/s43588-022-00349-3) is a new materials graph neural network architecture that incorporates 3-body interactions in MEGNet.
- [TensorNet](https://arxiv.org/abs/2306.06482), an O(3)-equivariant message-passing neural network architecture that leverages Cartesian tensor representations.
- [SO3Net](https://pubs.aip.org/aip/jcp/article-abstract/158/14/144801/2877924/SchNetPack-2-0-A-neural-network-toolbox-for), a minimalist SO(3)-equivariant neural network.

---

## Interesting References

- [https://figshare.com/articles/dataset/Materials_Project_Trjectory_MPtrj_Dataset/23713842?file=41619375](https://figshare.com/articles/dataset/Materials_Project_Trjectory_MPtrj_Dataset/23713842?file=41619375)
  - This data file is the MPtrj dataset.
  - The json file contains 1,580,395 structures, 1,580,395 energies, 7,944,833 magnetic moments, 49,295,660 forces, and 14,223,555 stresses that were used to train the pretrained CHGNet
  - The structures and labels are parsed from all the GGA/GGA+U static/relaxation trajectories from 2022.9 version Materials Project, with selection method that avoids incompatible calculations and duplicated structures.
  - Used to train CHGNet and MACE foundation models

## Assets in this post

- [Equivariant graph neural networks for data-efficient and accurate interatomic potentials](https://ouro.foundation/files/mmoderwell/equivariant-graph-neural-networks-for-data-efficient-and-accurate-interatomic-potentials) (file, id `d84d3bb2-b09e-4dab-bb0c-5bcae14c3868`)
- [CHGNet as a pretrained universal neural network potential for charge-informed atomistic modelling](https://ouro.foundation/files/mmoderwell/chgnet-as-a-pretrained-universal-neural-network-potential-for-charge-informed-atomistic-modelling) (file, id `e26858a5-e3d5-46fa-8095-63ffe6e74b75`)
- [AIMNet2 Paper](https://ouro.foundation/files/mmoderwell/aimnet2-paper) (file, id `c7c08bdf-7120-4948-b6e8-355167da8718`)
- [A foundation model for atomistic materials chemistry](https://ouro.foundation/files/mmoderwell/a-foundation-model-for-atomistic-materials-chemistry) (file, id `e9d351dd-4890-46d9-b409-95f68a4288f5`)
