Abstract
The prediction of crystal properties plays a crucial role in materials science and applications. Current methods for predicting crystal properties focus on modeling crystal structures using graph neural networks (GNNs). However, accurately modeling the complex interactions between atoms and molecules within a crystal remains a challenge. Surprisingly, predicting crystal properties from crystal text descriptions is understudied, despite the rich information and expressiveness that text data offer. In this paper, we develop and make public a benchmark dataset (TextEdge) that contains crystal text descriptions with their properties. We then propose LLM-Prop, a method that leverages the general-purpose learning capabilities of large language models (LLMs) to predict properties of crystals from their text descriptions. LLM-Prop outperforms the current state-of-the-art GNN-based methods by approximately 8% on predicting band gap, 3% on classifying whether the band gap is direct or indirect, and 65% on predicting unit cell volume, and yields comparable performance on predicting formation energy per atom, energy per atom, and energy above hull. LLM-Prop also outperforms the fine-tuned MatBERT, a domain-specific pre-trained BERT model, despite having 3 times fewer parameters. We further fine-tune the LLM-Prop model directly on CIF files and condensed structure information generated by Robocrystallographer and found that LLM-Prop fine-tuned on text descriptions provides a better performance on average. Our empirical results highlight the importance of having a natural language input to LLMs to accurately predict crystal properties and the current inability of GNNs to capture information pertaining to space group symmetry and Wyckoff sites for accurate crystal property prediction.
Introduction
Predicting the physical and electronic properties of crystals is a fundamental challenge in materials science, essential for the discovery of novel semiconductors, battery materials, and catalysts. Traditionally, this task has been approached using Graph Neural Networks (GNNs), which model crystals as graphs where atoms are nodes and chemical bonds are edges. While effective, GNNs often struggle to capture global structural information, such as space group symmetries and periodicity, which are critical for accurate property prediction.
Interestingly, these complex structural details are often explicitly stated in natural language descriptions of crystals. This paper introduces LLM-Prop, a framework that shifts the paradigm from structural graph analysis to natural language processing. By leveraging the expressive power of Large Language Models (LLMs), LLM-Prop predicts material properties directly from text descriptions, effectively turning a materials science problem into a language problem.
Methodology
The researchers developed a comprehensive pipeline to convert crystallographic data into a format suitable for LLM processing.
The TextEdge Dataset
To train and evaluate LLM-Prop, the authors introduced TextEdge, a benchmark dataset derived from the Materials Project. TextEdge contains 144,931 samples, each pairing a crystal's structural text description with six key properties: band gap, formation energy per atom (FEPA), energy above hull ($E_{hull}$), unit cell volume, energy per atom (EPA), and a classification of band gap type (direct vs. indirect).
LLM-Prop Framework
The core of LLM-Prop is a fine-tuned T5-small model. Unlike standard generative applications, the researchers utilized only the encoder portion of the T5 architecture (approximately 37 million parameters). This choice reduces the parameter count and allows the model to handle longer input sequences while focusing on learning robust representations for regression.
The workflow begins with converting Crystallographic Information Files (CIFs) into deterministic text descriptions using Robocrystallographer. These descriptions are then preprocessed with specialized tokenization strategies. For instance, numerical values like bond lengths and angles are replaced with [NUM] and [ANG] tokens to prevent the model from getting bogged down in digit-by-digit reasoning, allowing it to focus on the structural context.
Results and Discussion
LLM-Prop demonstrates superior performance over state-of-the-art GNN baselines, such as ALIGNN and CGCNN, across several key metrics:
- Band Gap Prediction: Achieved an ~8% improvement over GNN baselines.
- Unit Cell Volume: Showed a remarkable 65% reduction in error compared to DeeperGATGNN.
- Classification: Improved the identification of direct vs. indirect band gaps by ~3%.
Key Insights
- Symmetry as Language: LLMs benefit from text descriptions that explicitly name space groups. While GNNs must infer these symmetries from connectivity, LLMs can use them as direct features.
- Natural Language Advantage: Fine-tuning on descriptive text yielded better results than training on raw CIF files or condensed JSON data. This suggests that the LLM's pre-training on general human language provides a useful prior for interpreting scientific text.
- Efficiency: LLM-Prop reached state-of-the-art accuracy with only 90k training samples, proving more data-efficient than many structural models.
- Model Size vs. Domain Specificity: Despite having 3x fewer parameters, LLM-Prop outperformed MatBERT, a model specifically pre-trained on materials science literature. This highlights the importance of the input format and architecture over sheer model size.
Conclusion and Future Work
LLM-Prop establishes that natural language descriptions are a powerful and underutilized representation for crystalline materials. While the model currently faces challenges with raw numerical reasoning and depends on the quality of automated text generators like Robocrystallographer, it opens new avenues for materials discovery. Future work will explore larger LLM backbones and "value-aware" tokenization to further bridge the gap between qualitative descriptions and quantitative physical properties.
Summary updated