All that structure matches does not glitter

Maya Martirossyan, Thomas Egg, Philipp Höllmer, George Karypis, Mark Transtrum, Adrian Roitberg, Mingjie Liu, Richard Hennig, Ellad B. Tadmor, Stefano MartinianiNeurIPS 2025 · DOI

TL;DR

This paper reveals critical flaws in common datasets and evaluation metrics for crystal structure prediction models, showing that many datasets contain duplicates and that standard metrics fail to account for material polymorphism. The authors introduce new, more robust datasets and evaluation metrics (METRe and cRMSE) to enable more meaningful benchmarking and drive progress in generative materials design.

What Problem Does This Paper Address?

The field of generative materials design, aiming to predict novel crystal structures from chemical compositions, has seen rapid progress. However, this progress is hampered by a lack of rigorous evaluation. Specifically, the authors identify three major issues:

  1. Dataset Duplication: Widely used datasets, like the carbon-24 dataset, contain a significant number of duplicate crystal structures, making it difficult to assess true model performance and generalization.
  2. Inappropriate Data Splitting: Datasets with numerous polymorphs (different crystal structures for the same composition) are often split randomly, leading to models being trained on one polymorph and tested on another, which is not a realistic evaluation of their ability to predict diverse structures.
  3. Misleading Benchmarks: Standard metrics, particularly the "match rate," can be misleading when dealing with polymorphs, as they penalize models for generating valid alternative structures. This can lead to models that learn to generate only a single, specific structure rather than the full range of possibilities.

Methods

The authors address these issues by:

  • Dataset Curation: They meticulously analyze existing datasets (carbon-24, perov-5, MP-20) using Pymatgen's StructureMatcher to identify and remove duplicates. They also create new, carefully constructed datasets and splits that address polymorphism and enantiomorphism.
  • New Evaluation Metrics: They introduce two novel metrics:
  • METRe (Match Everyone to Reference): This metric compares each generated structure against all reference structures in the test set, rewarding models that can reproduce the structural diversity present in the data. It's designed to be robust to polymorphism.
  • cRMSE (corrected Root Mean Square Error): This metric combines METRe with RMSE, penalizing non-matches by incorporating a tolerance-based error, providing a more comprehensive evaluation than RMSE alone.
  • Benchmarking Generative Models: They evaluate three state-of-the-art generative models (DiffCSP, FlowMM, and OMatG) on their newly curated datasets using the proposed metrics.

Datasets

The paper introduces and utilizes several datasets:

  • Original Datasets: carbon-24, perov-5, MP-20.
  • New/Revised Datasets:
    • carbon-24-unique: carbon-24 with duplicates removed.
  • carbon-24-unique-with-enantiomorphs: enantiomorphs treated as distinct.
  • carbon-enantiomorphs: a toy dataset with only chiral pairs.
  • carbon-24-unique-N-split: splits based on the number of atoms (N) to study extrapolation.
  • carbon-X and carbon-NXL: datasets of identical structures with different unit cells for overfitting tests.
  • perov-5-polymorph-split: perov-5 dataset with polymorphs grouped within splits.
  • MP-20-polymorph-split: MP-20 dataset with polymorphs grouped within splits.

Key Insights and Ideas

  • "Glitter" vs. "Structure": The title aptly captures the core problem – models might appear to perform well based on superficial matches ("glitter"), but true structural diversity and correctness ("structure") are often overlooked due to flawed datasets and metrics.
  • Polymorphism is Key: The paper strongly emphasizes that for many materials, polymorphism is not an edge case but a fundamental property that generative models must be able to capture. Current benchmarks often fail to assess this.
  • Dataset Quality is Paramount: The research highlights that even advanced models can be poorly evaluated if the underlying datasets are not meticulously curated and representative of the scientific problem.
  • Metrics Drive Model Development: The introduction of METRe and cRMSE aims to shift the focus of model development towards generating diverse and accurate crystal structures, rather than just achieving high scores on flawed metrics.
  • Unit Cell Size Matters: The study reveals that model performance can degrade significantly with increasing unit cell size (N), presenting a clear challenge for future generative models.

Key Results

  • The widely-used carbon-24 dataset contains only about 40% unique structures.
  • The authors demonstrate that random splitting of polymorph-rich datasets (like perov-5) leads to unrealistic evaluation scenarios.
  • New datasets and splits, particularly perov-5-polymorph-split and MP-20-polymorph-split, enable more robust benchmarking.
  • Generative models evaluated on the new datasets and metrics show improved performance when accounting for polymorphism. For instance, on carbon-24-unique, models achieve METRe rates near 98%, significantly higher than standard match rates.
  • The proposed METRe metric shows a substantial improvement in capturing model performance on polymorphic datasets compared to standard match rates.
  • Performance deteriorates for the carbon-NXL dataset as the number of atoms (N) increases, with match rates dropping significantly for N=8.

Limitations and Future Work

  • Duplicate Identification: The authors acknowledge that their method for identifying duplicates is based on numerical tolerances and might not be perfect, potentially missing some duplicates or misclassifying others.
  • Data Leakage: For datasets where duplicates are intentionally kept (e.g., for augmentation), ensuring no data leakage between training and test sets requires careful implementation.
  • k-METRe: The paper suggests future work on a "k-METRe" rate, analogous to the k-match rate, which could be useful when the generated set is larger than the reference set.
  • Generalizability: While the paper focuses on inorganic crystals, the principles of dataset curation and metric design could be extended to other material types.
  • Model Extrapolation: The observed performance drop with increasing unit cell size (N) highlights a significant challenge for future research in developing models that can extrapolate to larger and more complex structures.

Summary updated

BibTeX
@misc{martirossyan2025all,
  author = {Maya Martirossyan and Thomas Egg and Philipp Höllmer and George Karypis and Mark Transtrum and Adrian Roitberg and Mingjie Liu and Richard Hennig and Ellad B. Tadmor and Stefano Martiniani},
  title = {{All that structure matches does not glitter}},
  year = {2025},
  eprint = {2509.12178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.12178},
}
Figure