LLM4Mat-bench: benchmarking large language models for materials property prediction

Andre Niyongabo Rubungo, Kangming Li, Jason Hattrick-Simpers, Adji Bousso Dieng

TL;DR

LLM4Mat-Bench is a massive new benchmark designed to evaluate how well Large Language Models (LLMs) predict the properties of crystalline materials. The study reveals a surprising "size paradox": smaller, task-specific models fine-tuned on materials data significantly outperform general-purpose giants like Llama and Mistral, which frequently struggle with scientific hallucinations and data formatting.

What Problem Does This Paper Address?

While LLMs have shown promise in scientific domains, materials science lacks a standardized, large-scale benchmark for property prediction. Existing datasets are often small, derived from single sources, or limited to a few properties. This makes it difficult to rigorously assess whether an LLM is truly "understanding" crystal structures or simply memorizing patterns from a narrow slice of data.

Furthermore, there is no consensus on the best way to "show" a material to an LLM. Should we use a chemical formula, a raw Crystallographic Information File (CIF) full of coordinates, or a natural language description? LLM4Mat-Bench aims to answer these questions by providing a massive, multi-modal testbed.

Methods

The researchers evaluated two main categories of models:

  1. Task-Specific Predictive Models: These are smaller models fine-tuned specifically for materials science, including MatBERT (109M parameters) and LLM-Prop (35M parameters).
  2. General-Purpose Conversational LLMs: Variants of Llama, Gemma, and Mistral (ranging from 3B to 9B parameters) were tested using zero-shot and five-shot prompting.

To represent the materials, the authors used three modalities:

  • Composition: Simple chemical formulas (e.g., NaCl).
  • CIF: The standard, number-heavy file format used in crystallography.
  • Description: Human-readable text generated deterministically from CIFs using a tool called Robocrystallographer. This converts raw coordinates into descriptions of symmetry, bonding, and local geometry.

Performance was measured using the MAD:MAE ratio for regression tasks (where a ratio > 5.0 indicates a strong model) and AUC for classification.

Datasets

The authors introduced LLM4Mat-Bench, the largest benchmark of its kind to date. It aggregates data from 10 diverse, publicly available sources, covering roughly 1.9 million crystal structures and 45 distinct properties (ranging from band gaps to elastic moduli).

Table 1: LLM4Mat-Bench statistics, showing the massive scale of the dataset across 10 sources.

The benchmark includes specialized data for metal-organic frameworks (hMOF), high-entropy alloys (Cantor HEA), and organic materials (OMDB), ensuring high diversity compared to previous benchmarks like MatBench.

Key Insights and Ideas

  • Small and Specialized Wins: In a strike against the "bigger is always better" trend, the 35M-parameter LLM-Prop consistently outperformed 7B-parameter general models. This suggests that domain-specific fine-tuning is far more important than raw parameter count for scientific tasks.
  • The Power of Description: LLMs performed significantly better when materials were presented as natural language descriptions rather than raw CIF files. This indicates that LLMs are better at leveraging their pre-trained linguistic reasoning than parsing dense tables of numerical coordinates.
  • Hallucination is a Scientific Risk: General-purpose LLMs often "hallucinated" by providing the same property value for different materials or failing to generate valid numerical outputs entirely, especially when faced with complex CIF inputs.
  • Energetic Properties are "Easier": Properties like formation energy were predicted with much higher accuracy across all models compared to electronic properties like band gaps. This aligns with existing trends in the materials science community, as energy is often more directly correlated with basic bonding and composition.

Key Results

  • Predictive Dominance: LLM-Prop achieved the highest accuracy on 8 out of 10 datasets for regression tasks.
  • Baseline Comparison: The fine-tuned LLMs often outperformed or matched CGCNN, a widely used Graph Neural Network baseline, particularly on datasets with shorter, more compact textual descriptions.
  • Prompting Limits: For general-purpose models, five-shot prompting provided a modest boost over zero-shot, but they still lagged far behind fine-tuned models, often failing to even beat a "dummy" model that simply guesses the average value.
Figure 1: Performance comparison across models. Higher values in the line plots indicate better performance relative to the GNN baseline.

Limitations and Future Work

The authors acknowledge several constraints:

  • Computational Costs: Due to budget limits, they could not perform exhaustive hyperparameter searches for every property or test massive proprietary models like GPT-4o.
  • Formatting Issues: Chat-based models frequently failed to follow the requested JSON output format, making data extraction difficult.
  • RAG Potential: The study did not explore Retrieval-Augmented Generation (RAG), which could potentially help general LLMs by providing them with relevant context from materials databases during inference.

Future work will focus on developing task-specific instruction-tuned LLMs and determining the optimal number of few-shot examples needed to bridge the gap between general and specialized models.

Summary updated

BibTeX
@article{rubungo2025llm,
  author = {Andre Niyongabo Rubungo and Kangming Li and Jason Hattrick-Simpers and Adji Bousso Dieng},
  title = {{LLM4Mat-bench: benchmarking large language models for materials property prediction}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2025},
  doi = {10.1088/2632-2153/add3bb},
}
Figure