# LatticeMind: A Validation-Gated Agentic Framework for Density Functional Theory Workflows

DevFeed: [LatticeMind: A Validation-Gated Agentic Framework for Density Functional Theory Workflows](<https://devfeed.tech/articles/latticemind-a-validation-gated-agentic-framework-for-density-functional-theory-workflows-94208.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.26869>)

Author: Nathaniel M. Vegh, Yu Zhu, Rapha\\"el J. Prentki, F\\'elix Beaudoin, Shuaishuai Yuan, Hong Guo

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Loop Engineering](<https://devfeed.tech/topics/loop-engineering.md>), [Data validation](<https://devfeed.tech/topics/data-validation.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted](<https://devfeed.tech/tags/ai-assisted.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [band](<https://devfeed.tech/tags/band.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cond-mat-mtrl-sci](<https://devfeed.tech/tags/cond-mat-mtrl-sci.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dft](<https://devfeed.tech/tags/dft.md>), [errors](<https://devfeed.tech/tags/errors.md>), [execution](<https://devfeed.tech/tags/execution.md>), [files](<https://devfeed.tech/tags/files.md>), [framework](<https://devfeed.tech/tags/framework.md>), [input](<https://devfeed.tech/tags/input.md>), [llm](<https://devfeed.tech/tags/llm.md>), [magnetic](<https://devfeed.tech/tags/magnetic.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [phonon](<https://devfeed.tech/tags/phonon.md>), [physics-comp-ph](<https://devfeed.tech/tags/physics-comp-ph.md>), [quant-ph](<https://devfeed.tech/tags/quant-ph.md>), [validation](<https://devfeed.tech/tags/validation.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

LatticeMind aims to prevent errors in multistage DFT workflows by checking projects before solver execution. A workflow contract records required stages, files, and dependencies; deterministic validators inspect the project, failed checks trigger bounded repair, and reports link back to project files. In a 44-case RESCU benchmark, three LLM backends reproduced every reference value; 119 of 132 runs passed on the first validated plan, and the rest passed after one repair cycle. A conventional trial-and-repair baseline reached 71% at twice the token cost per success. On 19 VASP cases, LatticeMind also reproduced every reference value. The abstract attributes reliability chiefly to the workflow contract and pre-execution validation, and reports generating and validating 23 inputs for a multistage photocatalyst-interface study.

## Source excerpt

arXiv:2610.26869v1 Announce Type: cross Abstract: First-principles calculations are rarely single solver calls: they are multistage workflows in which structures, settings, and saved densities must pass correctly between dependent stages. Language models can write a valid single input, but reliability collapses once stages are chained: a dropped dependency, wrong file handoff, or hallucinated keyword can invalidate results even when the solver runs, and such errors surface only after costly execution. We introduce LatticeMind, a validation-gated agentic framework that converts natural-language requests into executable, checkable density functional theory (DFT) projects. A workflow contract specifies required stages, files, and dependencies; deterministic validators inspect the project before any solver launch; failed checks trigger bounded repair; and reports remain traceable to project files. On a 44-case RESCU benchmark spanning total-energy, density-of-states, band-structure, magnetic, phonon workflows, three non-flagship LLM backends reproduced every reference value; 119 of 132 runs passed on the first validated plan and the rest after one repair cycle. Ablations identify the workflow contract and pre-execution validation as the principal reliability mechanisms; a conventional trial-and-repair baseline reaches 71% at twice the token cost per success. The same architecture reproduces every reference value on a 19-case VASP benchmark, demonstrating transfer across solvers. Beyond these task families, LatticeMind generated and validated the 23 inputs of a multistage study of Rh-induced electronic responses at a Rh$_6$/In$_x$Ga$_{1-x}$N photocatalyst interface. These results establish workflow contracts, deterministic validation, bounded repair, and traceable records as a practical foundation for reliable AI-assisted scientific computing, where preventable errors are caught before execution and the solver is never the first validator.