# M3GNet

**M3GNet**（材料三体图网络，Materials 3-body Graph Network）是一种用于周期性材料原子尺度模拟的图神经网络原子间势，由加州大学圣迭戈分校（UC San Diego）材料虚拟实验室（Materials Virtual Lab）的陈驰（Chi Chen）与王世岳（Shyue Ping Ong）在2022年《自然·计算科学》（*Nature Computational Science*）的论文中提出，是一种覆盖整个元素周期表的通用原子间势（IAP）。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> 该模型在材料计划（Materials Project）的结构弛豫数据库上训练，可用于结构弛豫（计算晶体能量最低的原子排布）、分子动力学，以及跨多样化学空间的性质预测。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup>

| 关键事实 | 细节 |
|---|---|
| 类型 | 含三体相互作用的图神经网络原子间势，面向周期性材料<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup><sup> • </sup><sup>[2](https://www.scm.com/doc/MLPotential/ModelsAndBackends.html)</sup>  |
| 发表 | 陈驰与王世岳，《自然·计算科学》2，718–728（2022）<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> |
| 训练数据 | 来自材料计划弛豫计算的超过187,000个能量、16,000,000个力和1,600,000个应力；涵盖89种元素<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> |
| 发现成果 | 在筛选的3100万个假想结构中，约180万个被预测为潜在稳定；能量最低的2000个中有1,578个经DFT验证为稳定<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> |
| 基准排名 | Matbench Discovery能量MAE为75 meV/atom，落后于MACE-MP-0（57）和CHGNet（63）等后续模型<sup>[3](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aenm.71046)</sup> |
| 模型规模 | 约227.5k参数，远小于MACE和CHGNet（约5.7M）<sup>[4](https://arxiv.org/abs/2403.04217)</sup> |
| 当前软件 | 在材料图库（MatGL）中维护；原TensorFlow仓库已于2025年4月9日归档<sup>[5](https://github.com/materialyzeai/m3gnet)</sup> |

## 架构

M3GNet扩展了此前的MEGNet（材料图网络，MatErials Graph Network）性质预测模型，将原子坐标和3×3晶格矩阵加入材料图，从而可以通过对预测能量进行自动微分获得力和应力等张量量。<sup>[5](https://github.com/materialyzeai/m3gnet)</sup><sup> • </sup><sup>[6](https://doi.org/10.1021/acsmaterialslett.5c00093)</sup>  其显著特征是对三体相互作用的显式处理，即图中成对边之间的键角，这超越了成对项，改善了对局域成键环境的表示。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup><sup> • </sup><sup>[2](https://www.scm.com/doc/MLPotential/ModelsAndBackends.html)</sup>

MatGL的默认实现使用5.0 Å的图截断半径、4.0 Å的三体截断半径、三个消息传递块和64维的节点与边嵌入，键角在球谐基上展开。<sup>[7](https://matgl.ai/matgl.models.html)</sup><sup> • </sup><sup>[8](https://www.nature.com/articles/s41524-025-01550-4)</sup>  该架构将传统原子间势的多体特征与灵活的材料图表示结合在一起。<sup>[9](https://www.nature.com/articles/s41524-024-01227-4)</sup>

## 训练数据

该通用势在材料计划自2011年启动以来产生的弛豫轨迹上训练，以晶体结构的总能量、原子力和应力张量作为目标。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> 发布的数据集`MPF.2021.2.8`托管于figshare。<sup>[5](https://github.com/materialyzeai/m3gnet)</sup> AMS建模软件包中分发的M3GNet-UP-2022模型将训练集概括为来自63,000种材料计划材料的187,000个结构，参考计算采用密度泛函理论的PBE和PBE+U级别，覆盖从H到Pu的元素，但不含Po到Ra。<sup>[2](https://www.scm.com/doc/MLPotential/ModelsAndBackends.html)</sup> 由于训练数据是无机晶体，该模型面向块体固体、表面和界面的快速计算，不适用于小有机分子或生物分子。<sup>[2](https://www.scm.com/doc/MLPotential/ModelsAndBackends.html)</sup>

后来的一次重训练工作对超过一百万个结构的完整弛豫轨迹数据集应用了DIRECT分层采样，产生了M3GNet-DIRECT通用势，能更可靠地外推到未见结构；在最具挑战性的10%测试结构上，其能量、力和应力误差均低于标准的M3GNet-MS模型。<sup>[9](https://www.nature.com/articles/s41524-024-01227-4)</sup>

## 材料发现

原论文展示了该势作为筛选工具的应用。将M3GNet能量应用于3100万个假想晶体结构——这些结构由对2019年ICSD数据库中的5,283个结构原型进行组合式等价离子替换生成——识别出约180万种材料相对于现有材料计划晶体可能稳定；在凸包之上能量最低的2,000种中，有1,578种经密度泛函理论验证为稳定。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup> 这些预测收录于matterverse.ai数据库。<sup>[1](https://www.nature.com/articles/s43588-022-00349-3)</sup><sup> • </sup><sup>[5](https://github.com/materialyzeai/m3gnet)</sup>

后续工作在端到端结构预测中检验了该势。在针对多样无机晶体的元素替换工作流中，M3GNet加速的搜索找到了1,687个相对于材料计划基态稳定的结构，而完整DFT工作流找到1,323个；作者得出结论：通用势非常适合加速发现，但会表现出系统性偏差。<sup>[10](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aidi.202500031)</sup> 一项对四元氧化物体系（Sr-Li-Al-O和Ba-Y-Al-O）的研究表明，M3GNet驱动的结构预测能够重新发现其训练集中缺失的实验已知材料，并识别出七种新的热力学和动力学稳定化合物。<sup>[11](https://arxiv.org/abs/2602.03369)</sup>

## 基准性能

在Matbench Discovery排行榜上，M3GNet的能量MAE为75 meV/atom，高于MACE-MP-0（57 meV/atom）和CHGNet（63 meV/atom）；一篇比较综述将其最佳用途列为轻量级通用筛选，主要局限是中等程度的可迁移性。<sup>[3](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aenm.71046)</sup> 在对四种通用势的系统评估中，M3GNet的单次形成能MAE为0.172 eV/atom，落后于CHGNet（0.054）、MACE（0.044）和ALIGNN-FF（0.137），而其晶胞几何预测名列前茅，平均绝对相对体积误差为2.97%，略优于CHGNet的3.16%。<sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/mgea.58)</sup> 对于V、Mo、W等过渡金属元素，CHGNet和MACE的表现显著优于M3GNet。<sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/mgea.58)</sup> 当MACE模型直接在M3GNet数据集上训练时，其能量误差与M3GNet大致相当（34.1对34.7 meV/atom），力误差更优（60.1对71.7 meV/Å），而M3GNet保持了更低的应力误差（0.41对0.62 GPa）。<sup>[13](https://pubs.aip.org/aip/jcp/article/159/4/044118/2904837/Evaluation-of-the-MACE-force-field-architecture)</sup>

**已知失效模式。** 一项2025年的研究识别出M3GNet、CHGNet和MACE-MP-0共有的系统性势能面软化效应：在表面、缺陷、固溶体、离子迁移势垒和声子模式等高能构型中，能量、力和曲率被低估，这一偏差可追溯到预训练数据集的近平衡采样。<sup>[14](https://www.nature.com/articles/s41524-024-01500-6)</sup> 与此一致，表面能评估发现，开箱即用的M3GNet在域外表面模拟中存在显著缺陷，但它可作为微调专用模型的高效起点。<sup>[4](https://arxiv.org/abs/2403.04217)</sup> 在对约2,400种经实验验证的矿物进行的有限温度分子动力学模拟中，六种受测通用势无一能将结构变化控制在公认的±2.5%阈值内。<sup>[15](https://lacuna.tiptreesystems.com/work/evaluating-universal-interatomic-potentials-for-molecular-dynamics-of-real-world/wrk_2f53193159e85049c969bd88be71ef0f)</sup> M3GNet在晶体结构验证测试中还会扭曲某些分子基元，如环戊二烯基和π配体，以及噻吩环和噻唑环。<sup>[16](https://arxiv.org/abs/2610.11246)</sup>

## 软件与后继者

原始实现由materialyzeai（前身为materialsvirtuallab）组织以BSD-3-Clause许可证发布，包含用于结构弛豫的`Relaxer`类和支持NVT与NPT系综的`MolecularDynamics`接口。<sup>[5](https://github.com/materialyzeai/m3gnet)</sup> 该TensorFlow代码库于2025年4月9日归档，由MatGL取代——后者是基于深度图库（Deep Graph Library）和PyTorch的重新实现，附带预训练的M3GNet通用势、LAMMPS接口，以及用于弛豫和性质预测的命令行工具。<sup>[5](https://github.com/materialyzeai/m3gnet)</sup><sup> • </sup><sup>[17](https://matgl.ai/)</sup>  MatGL v3.0.0（2026年5月）新增了M3GNet的PyTorch Geometric实现，修正了一个消息传递约定的缺陷，并在Hugging Face Hub上重新发布了重训练的权重。<sup>[17](https://matgl.ai/)</sup> 微软的MatterSim模型直接建立在M3GNet之上，增加了主动学习和更广泛的化学空间采样。<sup>[18](https://www.nature.com/articles/s41524-025-01650-1)</sup>

M3GNet被视为开创性的通用机器学习原子间势之一，尽管更新的架构在精度指标上已超越它，它仍是基准比较中的关键参考模型。<sup>[18](https://www.nature.com/articles/s41524-025-01650-1)</sup><sup> • </sup><sup>[3](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aenm.71046)</sup>

## References

1. [Chen, C., Ong, S.P. A universal graph deep learning interatomic potential for the periodic table. Nat Comput Sci 2, 718–728 (2022).](https://www.nature.com/articles/s43588-022-00349-3)
2. [M3GNet Models, MLPotential (AMS) documentation, SCM](https://www.scm.com/doc/MLPotential/ModelsAndBackends.html)
3. [Park et al. Machine Learning Interatomic Potentials for Energy Materials, Advanced Energy Materials (2025)](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aenm.71046)
4. [Focassio, Freitas, Schleder. Performance Assessment of Universal Machine Learning Interatomic Potentials: Challenges and Directions for Materials' Surfaces. arXiv:2403.04217](https://arxiv.org/abs/2403.04217)
5. [materialyzeai/m3gnet GitHub repository (archived)](https://github.com/materialyzeai/m3gnet)
6. [Wines, D., Choudhary, K. CHIPS-FF: Evaluating Universal Machine Learning Force Fields for Material Properties. ACS Materials Letters](https://doi.org/10.1021/acsmaterialslett.5c00093)
7. [matgl.models API documentation, MatGL](https://matgl.ai/matgl.models.html)
8. [Data-efficient construction of high-fidelity graph deep learning interatomic potentials. npj Computational Materials (2025)](https://www.nature.com/articles/s41524-025-01550-4)
9. [Robust training of machine learning interatomic potentials with dimensionality reduction and stratified sampling. npj Computational Materials (2024)](https://www.nature.com/articles/s41524-024-01227-4)
10. [Jakob et al. Universally Accurate or Specifically Inadequate? Stress-Testing General Purpose Machine Learning Interatomic Potentials. Advanced Intelligent Discovery](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/aidi.202500031)
11. [Accelerating Complex Materials Discovery with Universal Machine-Learning Potential-Driven Structure Prediction. arXiv:2602.03369](https://arxiv.org/abs/2602.03369)
12. [Yu et al. Systematic assessment of various universal machine-learning interatomic potentials. Materials Genome Engineering Advances (2024)](https://onlinelibrary.wiley.com/doi/10.1002/mgea.58)
13. [Evaluation of the MACE force field architecture: From medicinal chemistry to materials science. Journal of Chemical Physics 159, 044118 (2023)](https://pubs.aip.org/aip/jcp/article/159/4/044118/2904837/Evaluation-of-the-MACE-force-field-architecture)
14. [Deng et al. Systematic softening in universal machine learning interatomic potentials. npj Computational Materials 11, 9 (2025)](https://www.nature.com/articles/s41524-024-01500-6)
15. [Mannan et al. Evaluating Universal Interatomic Potentials for Molecular Dynamics of Real-World Minerals. ICLR 2025](https://lacuna.tiptreesystems.com/work/evaluating-universal-interatomic-potentials-for-molecular-dynamics-of-real-world/wrk_2f53193159e85049c969bd88be71ef0f)
16. [Assessing the Reliability of Foundational Machine Learning Potentials for Evaluating the Veracity of the Crystallography Open Database. arXiv:2610.11246](https://arxiv.org/abs/2610.11246)
17. [MatGL documentation and change log](https://matgl.ai/)
18. [Universal machine learning interatomic potentials are ready for phonons. npj Computational Materials (2025)](https://www.nature.com/articles/s41524-025-01650-1)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 物理学 › 物理学方法、实践与学术共同体 › Applied and interdisciplinary physics › Computational and simulation physics › Numerical methods in physics › Molecular and particle simulation methods › Force fields and interatomic potentials

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/m3gnet

English original: https://www.edgepedia.org/m3gnet
