TL;DR
Large Language Models are great at parsing human intent, but terrible at doing 3D crystallography in their heads—ask one to build a complex material interface, and you’ll likely get overlapping atoms and broken physics. MaterialsPilot solves this by teaching LLMs to write executable Python construction scripts instead of guessing raw coordinates, pairing a hierarchical physics knowledge base with a closed-loop simulator that catches and fixes physical violations on the fly. Across seven different LLMs, it triples the success rate of complex atomistic designs from 22.0% to 66.4%.
What Problem Does This Paper Address?
Designing next-generation semiconductors or catalysts isn’t just about discovering pure, repeating bulk crystals; the magic happens at the messy, functional boundaries—like catalytic active sites (where molecules land and react), grain boundaries (where tilted crystal lattices meet), and hetero-interfaces (sandwiches of different materials).
Translating a prompt like "Build a silicon-germanium interface with a 15 Å vacuum" into exact 3D atomic coordinates is a dream interface for materials scientists. However, general-purpose LLMs fail here for two big reasons:
- No physical intuition: LLMs treat atomic coordinates as statistical text tokens, not physical objects governed by charge neutrality, symmetry, and Euclidean geometry.
- Open-loop fragility: Building a multi-slab interface requires sequential, interdependent geometric steps. Generating a structure in a single, unverified pass means a tiny math error early on snowballs into catastrophic "steric clashes" (atoms sitting right on top of each other).
Methods
Instead of asking an LLM to spit out raw 3D coordinates, MaterialsPilot reframes materials design as iterative code optimization. The LLM writes a Python script calling deterministic materials-science libraries (like Pymatgen) to handle the heavy geometric math.
The system orchestrates four modules in a closed loop (up to 5 iterations):
- Hierarchical Domain-Aware RAG: Rather than dumping flat text into the prompt, the system retrieves structured blueprints across three semantic tiers—$L_1$ for chemical rules (ionic radii, valence), $L_2$ for structural schemas (rotation matrices, symmetry), and $L_3$ for functional preferences (where adsorbates like to sit)—blending them via Reciprocal Rank Fusion.
- Agentic Code Execution: The LLM writes and runs a Python script in a sandbox to instantiate an atomic structure.
- Physics-Aware Critic: Standard code agents stop once a script runs without syntax errors. MaterialsPilot goes further, passing the resulting crystal through four physical checks: Geometric (catching atomic overlaps), Chemical (checking local charge consistency via Bond Valence Sums), Thermodynamic (estimating energy stability using CHGNet, a pretrained Machine-Learning Interatomic Potential, or MLIP), and Semantic (verifying user constraints like vacuum thickness).
- Deterministic Feedback & Dynamic Retrieval: A rule-based parser translates runtime crashes or physics violations into plain-English repair instructions (e.g., "increase interface spacing") and triggers targeted follow-up retrieval to help the LLM patch its code.
Datasets
- New 400-Task Complex Architecture Benchmark: The authors curated a benchmark spanning four increasingly tricky topological scales (100 tasks each): Defect Engineering, Surface Adsorption, Grain Boundaries, and Heterostructure Interfaces.
- AtomWorld: An existing, independently developed external benchmark with its own official evaluator, used to test zero-shot transfer on natural-language crystal manipulations (substitutions, rotations, supercells) without retuning the system.
Key Insights and Ideas
- Code decouples intent from arithmetic: Letting the LLM act as an architect selecting library operations—while Python handles matrix multiplication and periodic boundary conditions—eliminates geometric hallucinations.
- Different tasks crave different priors: Ablation studies revealed a clean division of labor in the knowledge base. Local edits (defects) rely mostly on $L_1$ chemical rules, whereas global assemblies (grain boundaries and interfaces) jump by +50.6 and +46.1 percentage points in constraint satisfaction once $L_2$ crystallographic schemas are unlocked.
- Thermodynamic critics polish "valid" into "realistic": Adding the MLIP energy critic barely changes binary pass/fail rates, because structures can follow prompt rules while still being physically awkward. For instance, without MLIP feedback, an LLM placed a hydrogen atom 5.01 Å away from a platinum surface (practically floating in space). With MLIP feedback, it pulled the atom down to 1.80 Å—right in the sweet spot of real-world chemisorption.
Key Results
- Massive, model-agnostic gains: Tested across seven LLM backbones (including GPT-5.4-mini, Qwen3.6-Plus, DeepSeek-V3.2, and Kimi-K2.6), strict Task Satisfaction Rate (TSR) jumped from an average of 22.0% to 66.4% (+44.4 percentage points). Partial Constraint Satisfaction Rate (CSR) rose from 29.5% to 77.3%.
- Top performer: Kimi-K2.6 paired with MaterialsPilot hit 78.5% TSR (up from 25.5% with pure prompting). Even weaker baselines like MiniMax-M2.7 more than tripled their success rate (14.0% to 45.0%).
- Out-of-the-box generalization: Frozen and dropped directly into the external AtomWorld benchmark using DeepSeek-V3.2, MaterialsPilot achieved a 78.88% success rate, beating both Pure Prompting (60.72%) and the specialized AtomWorld-Agent baseline (65.38%).
Limitations and Future Work
- Knowledge and critic boundaries: The authors note that performance still leans heavily on how well the retrieval database covers a given material family, as well as the reliability of the underlying evaluators—especially for exotic, out-of-distribution materials where pretrained MLIPs like CHGNet might struggle to extrapolate.
- Construction vs. open-ended discovery: The current evaluation focuses on faithful, physically plausible construction from explicit specifications rather than open-ended de novo discovery of entirely unknown materials.
Summary updated