Hugging Face 联合推出 LeMaterial 开源材料发现平台

原标题:LeMaterial: an open source initiative to accelerate materials discovery and research
68AI 研判分

Hugging Face 与 Entalpic、LeMaterial 等机构合作,正式推出 LeMaterial 开源项目。该平台旨在通过整合数据集、模型和工具,加速材料科学领域的 AI 驱动发现与研究。核心亮点在于提供标准化的材料数据访问接口及可视化探索工具,降低科研门槛。

报道正文

本文目录7 个章节

返回文章列表

LeMaterial:一项旨在加速材料发现与研究的开源倡议

发布于 2024 年 12 月 10 日 在 GitHub 上更新 点赞 56

Alexandre Duval AlexDuvalinho Entalpic Lucile Ritchie lritchie Entalpic Martin Siron msiron Entalpic Inel DJAFAR inelgnu LeMaterial Etienne du Fayet etiennedufayet LeMaterial Amandine Rossello amandinerossello LeMaterial Ali Ramlaoui Ramlaoui LeMaterial JB D. IAMJB Leandro von Werra lvwerra Thomas Wolf thomwolf

logos

今天,我们非常兴奋地宣布 LeMaterial 的启动。这是一个由 Entalpic 和 Hugging Face 共同主导的开源协作项目。LeMaterial 旨在简化和加速材料研究,使机器学习模型的训练、新型材料的识别以及化学空间的探索变得更加便捷。⚛️🤗

作为第一步,我们发布了一个名为 LeMat-Bulk 的数据集。该数据集统一、清洗并标准化了最主流的材料数据集,包括 Materials Project、Alexandria 和 OQMD,从而形成了一种单一且协调一致的数据格式,包含 670 万条记录 和 7 种材料属性。

LeMaterial 站在巨人的肩膀上,我们基于一系列对这一倡议的开发起到关键作用的卓越项目进行构建:Optimade、Materials Project、Alexandria 和 OQMD,未来还将有更多项目加入。在使用 LeMaterial 时,请相应地注明这些项目的贡献。

为什么选择 LeMaterial?

材料科学领域正处于量子化学与机器学习的交汇点,充满了机遇——从更明亮的 LED、电化学电池、更高效的光伏电池到可回收塑料,其应用前景无限广阔。通过在大规模结构化数据集上利用机器学习(ML),研究人员能够以前所未有的规模对新进行高通量筛选和测试,从而显著加速具有所需特性的新型化合物的发现周期。在这一范式下,数据成为驱动 ML 模型的核心燃料,这些模型能够指导实验、降低成本,并比以往任何时候都更快地实现突破。

该领域依赖于诸如 Materials Project、Alexandria 和 OQMD 这样非常完整的数据集,它们均为开源且采用 CC-BY-4.0 许可证。然而,这些数据集在格式、参数和范围上存在差异,带来了以下挑战:

  • 数据集集成问题(例如:格式或字段定义不一致、计算方式不兼容)
  • 数据集组成中的偏差(例如:Materials Project 侧重于氧化物和电池材料)
  • 覆盖范围有限(例如:NOMAD 侧重于量子化学计算而非材料属性)
  • 不同数据库之间相似材料缺乏清晰的关联或标识符

这种碎片化的现状使得 AI4Science 和材料信息学领域的研究人员难以有效利用现有数据。无论是训练基础 ML 模型、构建准确的相图、识别新材料,还是高效探索化学空间,目前都没有简单的解决方案。虽然像 Optimade 这样的努力旨在标准化结构数据,但它们并未解决材料属性方面的差异或数据集范围中的偏差问题。

LeMaterial addresses these challenges by unifying and standardizing data from three major databases — Materials Project, Alexandria and OQMD — into a high-quality resource with consistent and systematic properties. The elemental composition treemap below highlights the value of this integration, showcasing how we increase the scope of existing datasets, like Materials Project, which are focused on specific material types, such as battery materials (Li, O, P) or oxides.

drawing

Materials Project and LeMat-BulkUnique treemap

Achieving a clean, unified and standardized dataset

LeMat-Bulk is more than a large-scale merged dataset with a permissive license (CC-BY-4.0). With its 6.7M entries with consistent properties, it represents a foundational step towards creating a curated and standardized open ecosystem for material science, designed to simplify research workflows and improve data quality. Below is a closer view of what is looks like. To interactively browse through our materials, check out the Materials Explorer space, built using MP Dash components.

View the complete Datacard

ReleaseDescription & ValueDate
v.1.0- Data collection and merging from various sources: Materials Project, Alexandria and OQMD datasets, including multiple fields and DFT functionals (PBE, PBESol, SCAN). - Data cleaning: identify and remove datapoints not conforming to the set standard (e.g. with non-compatible calculations). - Standardization: uniformly format the set of fields across databases, using Optimade standard - Material fingerprint: attribute a unique identifier to each material with a well benchmarked hashing function, enabling to remove duplicates - Accessibility and visualization: the proposed new datasets can be visualized thanks to open source tools (phase diagrams, material explorer) based on Crystal Toolkit, Pymatgen, and Dash components developed by Materials ProjectDec. 10, 2024
v.1.1- New data: calculate charge data for many materials in Materials Project database (additional 53k data points, band gaps information, unified energy correction scheme) - Evaluation: Code hashing function benchmarks - New functions: Material similarity metric and retriever tool of similar structures - New models: Equiformerv2 and FAENet trained on the data - Data validation: check for compatibility of fields, formatting, etc.Q1 2025
Future releasesNew data: release of r2SCAN data from Materials Project New surface datasets: OC20 & OC22 datasets and ability to cover other models than bulk (surface and slab+ads and molecule structures)Further harmonisation: include trajectories across MPTrj, OMat24 in similar format, include relational data in our DBQ2 2025

We offer different datasets and subsets, enabling tailored workflows for researchers depending on their needs (consistent calculations, deduplicating materials, or comprehensive exploration):

[注:本文篇幅超长,以上为核心前篇精译,后续内容保留原文呈现]

  • Compatibility: these subsets only provides calculations which are compatible to mix. This is available in 3 functionals today (PBE, PBESol and SCAN)
  • Non-compatible: this subset provides all materials not included in the compatibility subsets.
  • LeMat-BulkUnique : this dataset split provides de-duplicated material using our structure fingerprint algorithm. It is available in 3 subsets, for PBE, PBESol, and SCAN functionals. More Details on the dataset can be found on 🤗Hugging Face

Integrating a well-benchmarked materials fingerprint

Beside building this standardized dataset, one of the key contribution of LeMaterial is to propose a definition of a material fingerprint through a hashing function that assigns a unique identifier to each material.

Current approaches to identifying a material as novel relative to a database have predominantly relied on similarity metrics, which necessitate a combinatorial effort to screen the existing database for novelty. To provide faster novelty detection in a dataset, Entalpic introduces a hashing method to compute the fingerprint of a material.

image.png

Above is a breakdown of the fingerprinting. We use a bonding algorithm (e.g. EconNN) on the crystal structure to extract a graph, on which we then compute the Weisfeiler-Lehman algorithm to get a hash. This hash is combined with composition and space group information to create the material fingerprint.

Our fingerprinting approach offers several benefits:

  • Quickly identifying whether a material is novel or already catalogued.
  • Ensuring the dataset is free from duplicates and inconsistencies.
  • Allowing to connect materials between datasets.
  • Supporting more efficient calculations for thermodynamic properties, such as energy above the hull.

Below lies a comparison of our hash function with the StructureMatcher of Pymatgen, to find all duplicates of a dataset. The experiment was run on two datasets having very different structures.

When using our method, almost all of the task time was dedicated to calculating material hashes; the follow-up comparison step is negligible time-wise. When using StructureMatcher, the vast majority of the task time was spent comparing pairs of structures; building said structures is negligible time-wise.

DatasetNumber of structuresTask time for the hash function (parallelized on 12 CPUs)Task time for StructureMatcher (parallelized on 64 CPUs)
Carbon-2410,153100 seconds17 hours
MPTS-5240,476330 seconds4.9 hours

Additionally, we are planning on releasing a set of well-curated benchmarks to evaluate the validity of our hashing function. For instance, we investigated:

  • If distinct materials lead to different hashes based on material identification tags across existing databases
  • Whether adding small noises or applying symmetry operations to a material leads to the same hash
  • If materials sharing the same hash, across or within databases, could indeed be the same material — with manual and DFT checks
  • How fast and accurate our hash is compared to Pymatgen's StructureMatcher on existing databases

🤗 Call to the community: our aim is not to position this fingerprint method as the single solution to de-duplicate materials databases and find novel materials, but rather to foster discussion around this question. One current limitation of this hashing technique is that it does not cover disordered structures; we would like to push the community towards finding a consensus, while proposing a relatively simple and efficient fingerprint method in the meantime.

LeMaterial in Action: applications and impact

In the longer term, LeMaterial aims to be a community-driven initiative that gathers large & curated datasets, machine learning models, handy toolkits, etc. It is designed to be practical and flexible, enabling a wide range of applications, such as:

  • Exploring extended phase diagrams (Link to our phase diagram explorer, built thanks to various open-source tools from Materials Project), constructed with a broader dataset, to analyze chemical spaces in greater detail. Combining larger datasets means that we can provide a finer resolution of material stability in a given compositional space:

drawing

Experimental phase diagram of Ti, Bb, Sn from this research paper

drawing

LeMat-Bulk phase diagram for Sn, Ti, Nb, built thanks to Pymatgen, Crystal Toolkit (Materials Project tools)

  • Compare materials properties across databases and functionals: by providing researchers with data across DFT functionals, and by linking materials via our materials fingerprint algorithm we are able to establish and connect materials properties calculated via different parameters. This gives researchers insight into how functionals might behave and differ across compositional space.

  • Determining if a material is novel. Our hashing function allows researchers to quickly assess whether a material is unique or a duplicate, streamlining the discovery process and avoiding redundant calculations.

  • Example 1: Our fingerprint method identified the following Alexandria entries (agm002153972, agm002153975) as potentially being the same material — having the same hash. When we did a relaxation on the higher energy entry, the material relaxed to the lower energy configuration.

Lower energy structureHigher energy structure
  • Example 2: applying our hash to another dataset (AIRSS) that is often used in training generative models, we found the following materials with the same hash.

To an untrained eye these visually appear like very different materials. However when we replicate the lattice we quickly identify that they are quite similar:

It is important to note here that Pymatgen's StructureMatcher identified these two unit cells as different materials, when they are indeed the exact same structures. Here, our hashing algorithm was able to identify them as indeed the same.

  • Training predictive ML models. We can also train machine learning interatomic potentials like EquiformerV2 on LeMat-Bulk. These models should benefits from its scale and data quality and the removal of bias across compositional space, and it would be interesting to assess the benefits of this new dataset. An example of how to incorporate LeMaterial with Fairchem can be found in Colab. We are currently in process of training an EquiformerV2 model using this dataset — stay tuned 💫

Take-aways

As a community, we often place a lot of value in the quality of these large-scale open-source databases. However the lack of standardization makes utilizing multiple dataset a huge challenge. LeMaterial offers a solution that unifies, standardizes, performs extra cleaning and validation efforts on existing major data sources. This new open-science project is designed to accelerate research, improve quality of ML models, and make materials discovery more efficient and accessible.

We are just getting started — we know there are still flaws and improvements to be made — and would thus love to hear your feedback! So please reach out if you are interested to contribute to this open-source initiative. We would be excited to continue expanding LeMaterial with new datasets, tools, and applications — alongside the community! ⚛️🤗

We extend our heartfelt thanks to Zachary Ulissi and Luis Barroso-Luque (Meta), and Matt McDermott (Newfound Materials, Inc.) for their valuable feedback regarding is initiative.

Citations

By downloading content from LeMaterial, you agree to accept the Creative Commons Attribution 4.0 license implying that content may be copied, distributed, transmitted, and adapted, without obtaining specific permission from LeMaterial, provided proper attribution is given to LeMaterial.

CC-BY-4.0 (license used for Materials Project, Alexandria, OQMD) requires proper acknowledgement. Thus, if you use materials data which include (”mp-”) in the immutable_id, please cite the Materials Project. If you use materials data which include (”agm-”) in the immutable_id, please cite Alexandria, PBE or Alexandria PBESol, SCAN. If you use materials data which include (”oqmd-”) in the immutable_id, please cite OQMD. Finally, if you make use of the Phase Diagram for visualization purposes, or the crystal viewer in the Materials Explorer, please acknowledge Crystal Toolkit.


To learn more about LeMaterial and get involved: