[Paper Review] Evaluating the Performance and Robustness of LLMs in Materials Science Q&A and Property Predictions
This study evaluates the performance and robustness of large language models (LLMs) in materials science through domain-specific question answering and property prediction tasks. Using multiple datasets and prompting strategies—including few-shot in-context learning—researchers identify critical vulnerabilities such as mode collapse under prompt perturbations and counterintuitive performance gains from adversarial input manipulations, highlighting the need for cautious deployment and improved reliability in scientific applications.
Large Language Models (LLMs) have the potential to revolutionize scientific research, yet their robustness and reliability in domain-specific applications remain insufficiently explored. In this study, we evaluate the performance and robustness of LLMs for materials science, focusing on domain-specific question answering and materials property prediction across diverse real-world and adversarial conditions. Three distinct datasets are used in this study: 1) a set of multiple-choice questions from undergraduate-level materials science courses, 2) a dataset including various steel compositions and yield strengths, and 3) a band gap dataset, containing textual descriptions of material crystal structures and band gap values. The performance of LLMs is assessed using various prompting strategies, including zero-shot chain-of-thought, expert prompting, and few-shot in-context learning. The robustness of these models is tested against various forms of 'noise', ranging from realistic disturbances to intentionally adversarial manipulations, to evaluate their resilience and reliability under real-world conditions. Additionally, the study showcases unique phenomena of LLMs during predictive tasks, such as mode collapse behavior when the proximity of prompt examples is altered and performance recovery from train/test mismatch. The findings aim to provide informed skepticism for the broad use of LLMs in materials science and to inspire advancements that enhance their robustness and reliability for practical applications.
Motivation & Objective
- To assess the reliability and robustness of LLMs in domain-specific materials science tasks, including question answering and property prediction.
- To investigate how various prompt perturbations—ranging from realistic to adversarial—affect LLM inference performance.
- To explore unexpected behaviors in LLMs, such as mode collapse and train/test mismatch effects, during materials property prediction.
- To benchmark both open-source and commercial LLMs across multiple datasets to identify performance boundaries and failure modes.
- To provide informed skepticism and actionable insights for the responsible integration of LLMs into materials science R&D pipelines.
Proposed method
- Evaluated LLMs on three datasets: MSE-MCQs (undergraduate materials science MCQs), matbench_steels (steel composition and yield strength), and a band gap dataset with crystal structure descriptions.
- Applied diverse prompting strategies: zero-shot chain-of-thought, expert prompting, and few-shot in-context learning to optimize performance.
- Systematically introduced five types of textual perturbations: unit mixing, sentence reordering, synonym replacement, distractive info, and superfluous info to test robustness.
- Conducted ablation studies on the LLM-Prop model by manipulating input structure (order, fraction of sentences) and measuring MAE in band gap predictions.
- Used deterministic and repeated evaluations (three trials per condition) to account for LLMs’ non-deterministic outputs and ensure statistical reliability.
- Preprocessed numerical values in descriptions with [NUM] tokens to isolate text-based understanding in the LLM-Prop model.

Experimental results
Research questions
- RQ1How do different prompting strategies (e.g., few-shot in-context learning) affect LLM performance in materials science question answering and property prediction?
- RQ2To what extent are LLMs robust to realistic and adversarial prompt perturbations such as sentence reordering or superfluous numerical information?
- RQ3What unexpected behaviors emerge in LLMs during materials property prediction, such as mode collapse or performance enhancement from input perturbations?
- RQ4How does a fine-tuned LLM (LLM-Prop) respond to structural changes in input descriptions, such as reversed or shuffled sentence order?
- RQ5Can train/test mismatch in prompt structure lead to improved predictive performance, and what does this imply for model generalization in materials science?
Key findings
- LLMs demonstrated significant performance degradation under realistic perturbations such as sentence reordering and superfluous numerical information, indicating fragility in real-world deployment.
- Mode collapse was observed in few-shot in-context learning when input examples were dissimilar to the target prediction, resulting in identical outputs across diverse inputs.
- Surprisingly, adversarial perturbations like sentence shuffling and randomization enhanced the predictive accuracy of the fine-tuned LLM-Prop model on band gap predictions.
- The LLM-Prop model maintained or improved performance even when key structural elements of the input description were ablated, suggesting reliance on non-local or distributed features.
- Performance varied significantly based on prompt formulation, with unit mixing and synonym replacement causing notable accuracy drops, highlighting sensitivity to semantic and syntactic variations.
- The study reveals that LLMs can exhibit counterintuitive behaviors—such as improved performance under adversarial conditions—that are absent in traditional ML models, suggesting unique generalization dynamics in LLMs.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.