A framework to evaluate machine learning crystal stability predictions

Janosh Riebesell, Rhys E. A. Goodall, Philipp Benner, Yuan Chiang, Bowen Deng, Gerbrand Ceder, Mark Asta, Alpha A. Lee, Anubhav Jain, Kristin A. PerssonNature Machine Intelligence 2025

Abstract

The rapid adoption of machine learning in various scientific domains calls for the development of best practices and community agreed-upon benchmarking tasks and metrics. We present Matbench Discovery as an example evaluation framework for machine learning energy models, here applied as pre-filters to first-principles computed data in a high-throughput search for stable inorganic crystals. We address the disconnect between (1) thermodynamic stability and formation energy and (2) retrospective and prospective benchmarking for materials discovery. Alongside this paper, we publish a Python package to aid with future model submissions and a growing online leaderboard with adaptive user-defined weighting of various performance metrics allowing researchers to prioritize the metrics they value most. To answer the question of which machine learning methodology performs best at materials discovery, our initial release includes random forests, graph neural networks, one-shot predictors, iterative Bayesian optimizers and universal interatomic potentials. We highlight a misalignment between commonly used regression metrics and more task-relevant classification metrics for materials discovery. Accurate regressors are susceptible to unexpectedly high false-positive rates if those accurate predictions lie close to the decision boundary at 0 eV per atom above the convex hull. The benchmark results demonstrate that universal interatomic potentials have advanced sufficiently to effectively and cheaply pre-screen thermodynamic stable hypothetical materials in future expansions of high-throughput materials databases.

Introduction

The search for new inorganic crystals is a cornerstone of materials science, essential for developing next-generation batteries and solar cells. Traditionally, this discovery process relies on Density Functional Theory (DFT), which, while accurate, is computationally prohibitive for screening millions of candidates. Machine learning (ML) models have emerged as a promising "pre-filter" to accelerate this search. However, a significant gap exists between a model's performance on retrospective data (known materials) and its utility in prospective discovery (unseen chemical spaces).

The Matbench Discovery Framework

To bridge this gap, the authors introduce Matbench Discovery, a benchmarking framework designed to simulate real-world discovery campaigns. The core task requires models to predict the thermodynamic stability—specifically the distance to the "convex hull"—of a material using only its unrelaxed initial structure as input.

The Matbench Discovery framework overview, illustrating the workflow from initial structure assignment to energy comparison against the convex hull of stability.

The framework evaluates models on the WBM (Wang-Botti-Marques) dataset, which contains approximately 215,000 unique, newly generated crystal prototypes. This represents a true prospective test, as the test set is larger than the training set (the Materials Project database) and contains chemical environments the models have not previously encountered.

Rethinking Metrics: The "Triangle of Peril"

A key contribution of this work is the identification of a misalignment between standard regression metrics, like Mean Absolute Error (MAE), and discovery success. In materials discovery, the critical factor is classification: correctly identifying whether a material is stable (below the convex hull) or unstable.

Rolling MAE vs. energy above hull, highlighting the 'Triangle of Peril' (red shaded region) where model error exceeds the distance to the stability threshold.

The authors define the "Triangle of Peril" (the red shaded region in the figure above) as the area where a model's rolling MAE is greater than the absolute distance to the stability threshold. If a model's predictions fall within this region, it becomes effectively impossible to distinguish stable materials from unstable ones, leading to high false-positive rates. This explains why some models with low overall MAE still perform poorly as discovery tools.

Results: The Dominance of Universal Interatomic Potentials

The benchmark results reveal a clear hierarchy in model performance. Universal Interatomic Potentials (UIPs), such as EquiformerV2, MACE, and CHGNet, significantly outperform traditional "energy-only" models. Unlike one-shot predictors that map a structure directly to an energy value, UIPs learn the underlying physics of atomic interactions (forces and stresses). This allows them to "relax" the structure to its lowest-energy state, mimicking the physical process of crystal formation.

EquiformerV2 + DeNS emerged as the top performer, achieving an F1 score of 0.815 and a Discovery Acceleration Factor (DAF) of 5.04. This means that using the model makes a researcher five times more effective at finding stable crystals than random searching.

Conclusion and Future Work

Matbench Discovery establishes a new standard for evaluating ML models in materials science, prioritizing task-relevant classification over simple regression. While UIPs have shown remarkable progress, several challenges remain. Current evaluations are limited to 0 Kelvin, ignoring the effects of entropy and temperature. Furthermore, future iterations of the benchmark must incorporate dynamic stability and synthesizability to ensure that computationally "stable" crystals can actually be realized in the laboratory.

Summary updated

BibTeX
@inproceedings{riebesell2025framework,
  author = {Janosh Riebesell and Rhys E. A. Goodall and Philipp Benner and Yuan Chiang and Bowen Deng and Gerbrand Ceder and Mark Asta and Alpha A. Lee and Anubhav Jain and Kristin A. Persson},
  title = {{A framework to evaluate machine learning crystal stability predictions}},
  booktitle = {Nature Machine Intelligence},
  year = {2025},
  doi = {10.1038/s42256-025-01055-1},
}
Figure