Probing Materials Knowledge in LLMs: From Latent Embeddings to Reliable Predictions
Organizations: Department of Materials Science and Engineering, Massachusetts Institute of Technology, Cambridge, 02139, MA, USA.
Abstract
Large language models are increasingly applied to materials science, yet fundamental questions remain about their reliability and knowledge encoding. Evaluating 25 LLMs across four materials science tasks -- over 200 base and fine-tuned configurations -- we find that output modality fundamentally determines model behavior. For symbolic tasks, fine-tuning converges to consistent, verifiable answers with reduced response entropy, while for numerical tasks, fine-tuning improves prediction accuracy but models remain inconsistent across repeated inference runs, limiting their reliability as quantitative predictors. For numerical regression, we find that better performance can be obtained by extracting embeddings directly from intermediate transformer layers than from model text output, revealing an ``LLM head bottleneck,'' though this effect is property- and dataset-dependent. Finally, we present a longitudinal study of GPT model performance in materials science, tracking four models over 18 months and observing 9--43% performance variation that poses reproducibility challenges for scientific applications.
Figures & tables
| Bandgap | Dielectric | Crystal System | MatKG | |
|---|---|---|---|---|
| (RMSE, eV) | (RMSE) | (Acc., %) | (Top-1, %) | |
| 1 | Llama-3-70B (0.70) | GPT-4o (1.8) | GPT-4.1-mini (66) | GPT-4.1-mini (68) |
| 2 | GPT-4.1-mini (0.71) | GPT-4.1-mini (1.9) | Llama-3-70B (63) | GPT-4.1 (66) |
| 3 | GPT-4o-mini (0.73) | Llama-3-70B (2.1) | GPT-4o-mini (63) | GPT-4o (65) |
| Model | Mean RMSE (eV) | Max Variation (%) |
|---|---|---|
| GPT-FT | 0.84 | 13 |
| GPT-4 | 1.3 | 9 |
| GPT-4o | 1.9 | 43 |
| GPT-3.5 | 2.4 | 19 |
LLM Reliability
Large language model reliability studies whether outputs remain correct, calibrated, robust, and controllable across prompts, contexts, and deployment conditions.
See all 757 papers