arXivPreprintOpen accesscond-mat.mtrl-sci

Fine-Tuning Small Language Models for Reliable VASP INCAR Generation

Xinyue Zhang, Jixiang Li, Bin Shao, Baishun Yang, Zhiyang Liu, Weichao Wang

Computational

Key points

From the paper's conclusion
  • The study fine-tuned a small language model (SLM) on reference VASP calculations and paired it with VASPGuard, a deterministic post-processor, to generate reliable VASP INCAR files from natural-language requests.
  • INCAR-SLM, built on Qwen3-4B, outperformed all general-purpose LLMs on the INCARBench benchmark, exceeding GPT-5.4 by 15.55 points on the 100-point INCAR Score, with most gains attributed to fine-tuning.
  • The study found that model size matters less than expected, as performance saturates at a few billion parameters, and Qwen3-4B outperformed larger models in the same family when fine-tuning and post-processing were applied.

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.

Read the paper

Discussion · 1

Science Skim's AI key points, plus readers' public thoughts

Science SkimAI key points
Pinned
  • The study fine-tuned a small language model (SLM) on reference VASP calculations and paired it with VASPGuard, a deterministic post-processor, to generate reliable VASP INCAR files from natural-language requests.
  • INCAR-SLM, built on Qwen3-4B, outperformed all general-purpose LLMs on the INCARBench benchmark, exceeding GPT-5.4 by 15.55 points on the 100-point INCAR Score, with most gains attributed to fine-tuning.
  • The study found that model size matters less than expected, as performance saturates at a few billion parameters, and Qwen3-4B outperformed larger models in the same family when fine-tuning and post-processing were applied.

Readers' thoughts

No reader thoughts yet.

Related papers