Skip to main content
QUICK REVIEW

[Paper Review] Crystal Transformer: Self-learning neural language model for Generative and Tinkering Design of Materials

Lai Wei, Qinyang Li|arXiv (Cornell University)|Apr 25, 2022
Machine Learning in Materials ScienceMaterials Science7 citations
TL;DR

This paper introduces Crystal Transformer, a self-supervised, probabilistic generative model based on a blank-filling language model architecture for inorganic materials design. It enables interpretable, data-efficient generation of chemically valid materials with 89.7% charge neutrality and 84.8% electronegativity balance—over 4x and 8x better than random sampling—by learning 'materials grammars' from just 40,000 formulas.

ABSTRACT

Self-supervised neural language models have recently achieved unprecedented success, from natural language processing to learning the languages of biological sequences and organic molecules. These models have demonstrated superior performance in the generation, structure classification, and functional predictions for proteins and molecules with learned representations. However, most of the masking-based pre-trained language models are not designed for generative design, and their black-box nature makes it difficult to interpret their design logic. Here we propose BLMM Crystal Transformer, a neural network based probabilistic generative model for generative and tinkering design of inorganic materials. Our model is built on the blank filling language model for text generation and has demonstrated unique advantages in learning the "materials grammars" together with high-quality generation, interpretability, and data efficiency. It can generate chemically valid materials compositions with as high as 89.7\% charge neutrality and 84.8\% balanced electronegativity, which are more than 4 and 8 times higher compared to a pseudo random sampling baseline. The probabilistic generation process of BLMM allows it to recommend tinkering operations based on learned materials chemistry and makes it useful for materials doping. Combined with the TCSP crysal structure prediction algorithm, We have applied our model to discover a set of new materials as validated using DFT calculations. Our work thus brings the unsupervised transformer language models based generative artificial intelligence to inorganic materials. A user-friendly web app has been developed for computational materials doping and can be accessed freely at \url{www.materialsatlas.org/blmtinker}.

Motivation & Objective

  • To develop a generative AI model for inorganic materials that overcomes the black-box limitations of existing deep learning models.
  • To enable interpretable, data-efficient materials design by learning 'materials grammars' from unlabeled composition data.
  • To support both generative design and materials tinkering (e.g., doping) with explainable, rule-based generation steps.
  • To achieve high-quality, chemically valid compositions with minimal human-annotated data, unlike protein or molecular models requiring millions of samples.
  • To validate the model’s predictions using first-principles DFT calculations and demonstrate its utility in discovering new materials.

Proposed method

  • Adapts a blank-filling (masked language modeling) transformer architecture to learn the syntactic and semantic rules of inorganic materials compositions.
  • Trains on a self-supervised manner using only raw materials formulas (no labels), learning 'materials grammar' through next-token prediction.
  • Uses probabilistic generation steps to recommend substitution or doping actions with explanations based on learned chemical rules.
  • Employs a transformer-based neural network with 6 layers, 8 attention heads, and 2048-dimensional hidden layers, optimized via Adam with a default learning rate of 0.0001.
  • Evaluates model performance using metrics like charge neutrality (CN) and electronegativity balance (EN) on generated samples.
  • Validated model outputs using Roost, a graph neural network model, for formation energy (MAE: 70.181 eV) and bandgap (MAE: 0.6645 eV) predictions on a 10% test set.

Experimental results

Research questions

  • RQ1Can a self-supervised, blank-filling transformer model learn chemically meaningful 'materials grammars' from minimal data?
  • RQ2How does the model’s performance in generating chemically valid compositions compare to random sampling or other generative models in terms of charge neutrality and electronegativity balance?
  • RQ3To what extent can the model support interpretable materials design and tinkering (e.g., doping) with explainable generation steps?
  • RQ4What hyperparameters (e.g., number of layers, heads, hidden size) significantly affect the model’s generation quality and stability?
  • RQ5Can the model discover novel materials that are validated by first-principles DFT calculations?

Key findings

  • Crystal Transformer achieves 89.7% charge neutrality and 84.8% electronegativity balance in generated materials compositions—over 400% and 800% higher than enhanced random sampling.
  • The model generates chemically valid compositions with only 40,000 training formulas, demonstrating high data efficiency compared to models trained on millions of samples.
  • Hyperparameter tuning shows optimal performance at 6 transformer layers, 8 attention heads, 2048 hidden units, 0.3 dropout, and 0.0001 learning rate.
  • The model outperforms related models (LBLM and INST) in both charge neutrality (85.85%) and electronegativity balance (82.63%) on the same benchmark.
  • The Roost model trained on generated compositions predicts formation energy with a mean absolute error (MAE) of 70.181 eV and bandgap with MAE of 0.6645 eV.
  • The model successfully generated novel materials compositions that were validated via DFT calculations, confirming the practical utility of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.