Crystal structure prediction with machine learning-based element substitution

Minoru Kusaba, Chang Liu, Ryo YoshidaComputational 2022 · DOI

Abstract: The prediction of energetically stable crystal structures formed by a given chemical composition is a central problem in solid-state physics. In principle, the crystalline state of assembled atoms can be determined by optimizing the energy surface, which in turn can be evaluated using first-principles calculations. However, performing the iterative gradient descent on the potential energy surface using first-principles calculations is prohibitively expensive for complex systems, such as those with many atoms per unit cell. Here, we present a unique methodology for crystal structure prediction (CSP) that relies on a machine learning algorithm called metric learning. It is shown that a binary classifier, trained on a large number of already identified crystal structures, can determine the isomorphism of crystal structures formed by two given chemical compositions with an accuracy of approximately 96.4%. For a given query composition with an unknown crystal structure, the model is used to automatically select from a crystal structure database a set of template crystals with nearly identical stable structures to which element substitution is to be applied. Apart from the local relaxation calculation of the identified templates, the proposed method does not use ab initio calculations. The potential of this substation-based CSP is demonstrated for a wide variety of crystal systems.

Introduction

Predicting how atoms arrange themselves into a crystal—the "Crystal Structure Prediction" (CSP) problem—is a cornerstone of materials science. Traditionally, this requires grueling, computationally expensive simulations that "hunt" for the lowest energy state by navigating a complex potential energy surface. Calculating the energy of even one arrangement using first-principles methods like Density Functional Theory (DFT) is slow, and doing it thousands of times to find a global minimum is often prohibitively expensive.

A new approach by Kusaba et al. suggests a smarter shortcut: using machine learning to find existing "templates" and simply swapping out the elements. By treating structure prediction as a "search and substitute" problem rather than a "from-scratch" optimization, they have developed a method that is both highly accurate and computationally efficient.

The Substitution-Based CSP Pipeline

The authors propose a three-step pipeline powered by metric learning to bypass the need for exhaustive global searches.

The three-step pipeline for crystal structure prediction via element substitution.
  1. Screening of Template Structures: For a new query composition ($C_q$), the model scans a database of known crystals. It filters for those with the same atomic ratios (e.g., 1:1:3) and ranks them by predicted structural similarity.
  2. Generation of Candidate Structures: The top-ranked "template" structures are selected. The query elements are then mapped onto the template's atomic sites based on physicochemical similarity.
  3. Optimization using DFT Calculation: Finally, a single, local DFT "relaxation" is performed to fine-tune the atomic positions. This is a fraction of the cost of a full search because the starting point is already near the stable configuration.

Metric Learning and Template Selection

The core innovation of this research is treating structural identity as a learnable distance. Instead of relying on physics-based simulations for the search, the researchers use a Multi-Layer Perceptron (MLP) to act as a binary classifier. Given two chemical compositions, the model predicts the probability that they share the same crystal structure (isomorphism).

Conceptual framework for selecting template structures from a database using metric learning.

To represent the chemistry, they utilized XenonPy to generate 290-dimensional descriptors for each composition based on 58 physicochemical features. Unlike previous substitution methods that only looked at pairs of elements (e.g., swapping Li for Na), this model considers the entire chemical context of the formula. If the model learns that "Composition A is to Structure X as Composition B is to Structure X," it can identify templates for new materials without simulating the physics from scratch.

Performance and Benchmarking

The method was trained using the Materials Project database, extracting 33,153 stable inorganic compounds and generating over 500 million pairs of structures for training. The results demonstrate significant potential:

  • High Accuracy: The binary classifier achieved an AUC of 0.991 and an accuracy of 96.4% in determining if two compositions share a structure.
  • Predictive Success: In 35 predictable benchmark cases, the method identified the true stable structure in the top five candidates 60% of the time.
  • Efficiency: The method successfully predicted complex structures with up to 104 atoms per unit cell—systems that would be nearly impossible for traditional evolutionary algorithms to solve in a reasonable timeframe.
  • Broad Applicability: The authors estimate that roughly 80% of known stable crystals have at least one isomorph in current databases, suggesting that 50–65% of all known crystal systems could be reconstructed using this approach.

Limitations and Future Outlook

While powerful, the method is inherently limited by the database; it cannot predict a "unique" crystal structure that has no existing template. Additionally, the current screening requires an exact match in composition ratios (e.g., $A_2BC_3$), though future iterations may allow for more flexible matching.

As databases like the Materials Project continue to grow, the reach of this substitution-based method will expand. It stands to become a primary tool in computational materials discovery, offering a high-speed alternative to traditional, resource-intensive search algorithms.

Summary updated

BibTeX
@inproceedings{kusaba2022crystal,
  author = {Minoru Kusaba and Chang Liu and Ryo Yoshida},
  title = {{Crystal structure prediction with machine learning-based element substitution}},
  booktitle = {Computational},
  year = {2022},
  doi = {10.1016/j.commatsci.2022.111496},
}
Figure