Abstract
Recently, the remarkable capabilities of large language models (LLMs) have been illustrated across a variety of research domains such as natural language processing, computer vision, and molecular modeling. We extend this paradigm by utilizing LLMs for material property prediction by introducing our model Materials Informatics Transformer (MatInFormer). Specifically, we introduce a novel approach that involves learning the grammar of crystallography through the tokenization of pertinent space group information. We further illustrate the adaptability of MatInFormer by incorporating task-specific data pertaining to Metal-Organic Frameworks (MOFs). Through attention visualization, we uncover the key features that the model prioritizes during property prediction. The effectiveness of our proposed model is empirically validated across 14 distinct datasets, hereby underscoring its potential for high throughput screening through accurate material property prediction.
Introduction
The discovery of novel materials—ranging from high-capacity batteries to carbon-capture frameworks—increasingly relies on Machine Learning (ML) as a fast surrogate for computationally expensive Density Functional Theory (DFT) simulations. While Graph Neural Networks (GNNs) currently lead the field, they face two significant challenges: the requirement for "relaxed" structures (precise atomic positions often requiring DFT themselves) and a lack of interpretability.
MatInFormer addresses these issues by treating crystal structures as a language. By tokenizing the "grammar" of crystallography—including space groups, chemical formulas, and structural informatics—the model circumvents the need for 3D coordinates while providing a transparent mechanism for property prediction.
Methodology
The MatInFormer architecture is based on the RoBERTa model and utilizes a novel three-pronged tokenization strategy to represent materials as sequences of discrete data.
Tokenization Strategy
The model converts a material into a sequence of three token types:
- Space Group Tokens: These represent the fundamental symmetry rules of the crystal (e.g., crystal system, point group, and symmetry operations).
- Formula Tokens: Chemical compositions are embedded using "Matscholar," a specialized NLP tool that captures elemental properties.
- Informatics Tokens: A flexible slot for task-specific data, such as topology or porosity for Metal-Organic Frameworks (MOFs).
Pretraining and LPP
The model was pretrained on the JARVIS-Tools database using datasets of up to ~997k samples. Beyond standard Masked Language Modeling (MLM), the authors introduced Lattice Parameter Prediction (LPP). This task requires the model to predict physical dimensions ($a, b, c$ and angles) from the formula and space group, effectively teaching the model the relationship between chemistry and geometry.
Results and Discussion
MatInFormer was evaluated across 14 datasets, including the Matbench suite and hMOF gas absorption datasets.
- Performance: MatInFormer outperformed Wrenformer (the state-of-the-art coordinate-free model) in 6 of 8 Matbench tasks, notably achieving a 47% reduction in Mean Absolute Error (MAE) for the phonons dataset.
- Comparison with GNNs: In hMOF gas absorption tasks, MatInFormer(TVP) outperformed CGCNN, a popular structure-based GNN, despite the latter having access to detailed 3D structural information.
- Interpretability: Attention visualization revealed that the model prioritizes different features depending on the task. For instance, it focuses on chemical formulas for some properties and porosity tokens for gas absorption.
Conclusion
MatInFormer demonstrates that the "grammar" of crystallography is a powerful alternative to explicit 3D coordinates for material property prediction. While the model currently faces a "numerical bottleneck" in representing continuous values like exact interatomic distances, its scalability and interpretability mark a significant step forward. Future work will focus on materials-specific tokenization and multimodal approaches to bridge the gap between language models and structural graphs.
Summary updated