Fine-Tuning Small Language Models for Reliable VASP INCAR Generation
cond-mat.mtrl-sci, cs.AI
Submitted: 2026-08-05
Updated: 2026-08-05
License: http://creativecommons.org/licenses/by/4.0/
The gist: Language models can prepare VASP INCAR files from natural-language requests, but so far only large proprietary cloud models come close to handling the tightly coupled, physics-sensitive settings
Terminology
Abstract
Language models can prepare VASP INCAR files from natural-language requests, but so far only large proprietary cloud models come close to handling the tightly coupled, physics-sensitive settings reliably, a dependence that fits poorly with local, high-throughput materials workflows where privacy, cost, and offline deployment matter. We show that a small language model (SLM) can close this gap. The SLM is fine-tuned on reference VASP calculations and paired with VASPGuard, a deterministic post-processor that checks syntax, workflow, and material-dependent constraints; we call the combined model INCAR-SLM. On INCARBench, a benchmark for VASP INCAR generation, INCAR-SLM built on Qwen3-4B outperforms every general-purpose LLM evaluated, exceeding GPT-5.4 by 15.55 points on the 100-point INCAR Score. Most of this gain comes from fine-tuning, with VASPGuard correcting the errors that remain. We further find that model size matters less than expected: once fine-tuning and post-processing are applied, performance saturates at a few billion parameters, and Qwen3-4B outperforms larger models in the same family.
Related papers
- Mode-selective electron-phonon coupling drives charge density waves in the kagome metals YRu 3 Si 2 and LaRu 3 Si 2
- Restoring the Surface Magnetic Gap in MnBi 2 Te 4
- ATLAS: A Foundation Neural Sampler for Amorphous Materials
- A Generalizable Machine Learning Framework for Half-Heusler Thermoelectrics
- Nonlinear dynamics in magnonic Fabry-P' e rot resonators: Low-power neuron-like activation and transmission suppression
- AES-Debye: an Accurate, Efficient, and Scalable Engine for Debye Scattering Calculations