MaterialsPilot: An Execution-Feedback Framework for Generative Design of Complex Atomistic Architectures

Qiaolin Lu, Tongliang Liu, Qiang Qu, Bo Han, Yi Chang, Chengqi ZhangNeurIPS 2026

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:

  1. No physical intuition: LLMs treat atomic coordinates as statistical text tokens, not physical objects governed by charge neutrality, symmetry, and Euclidean geometry.
  2. 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.

Figure 1: Overview of MaterialsPilot Framework. The closed-loop system orchestrates four synergistic modules: (A) Domain-Aware RAG retrieves hierarchical knowledge priors; (B) Agentic Generation & Execution synthesizes and executes Python code; (C) a Physics-Aware Critic computes internal diagnostic states over geometric, chemical, thermodynamic, and semantic constraints; and (D) an Iterative Feedback Loop uses a deterministic feedback parser to verbalize execution traces and critic states into actionable textual feedback for self-correction.

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.
Four topological domains evaluated in the benchmark
  • 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

Abstract

Generating precise complex atomistic architectures from natural language specifications is a frontier in AI-driven materials discovery, critical for realizing functional systems like catalytic active sites and hetero-interfaces. While Large Language Models (LLMs) offer a powerful interface for such tasks, mapping abstract semantics to rigorous structural constraints remains unsolved as LLMs inherently face two deficits: first, the lack of quantitative physicochemical priors leads to topologically imprecise outputs; and second, open-loop generation without physical verification fails to resolve intermediate spatial conflicts, causing error propagation to invalidate coupled multi-step assemblies. To bridge this gap, we introduce \ourmethod, which formulates generation as iterative code optimization. It incorporates two key mechanisms: (1) Hierarchical Retrieval to bridge domain knowledge gaps by providing precise domain schemas; and (2) a Physics-Aware Feedback Loop to master complex logic by autonomously debugging execution and physical violations. Across four complex material modeling tasks and seven diverse LLM backbones, MaterialsPilot increases the rate of fully successful generations from 22.0\% to 66.4\%, while also producing structures that better satisfy user-specified constraints and physical plausibility checks. These results establish a model-agnostic framework for physically reliable language-driven atomistic design. Our code is publicly available at: [github.com/QiaolinLu/MaterialsPilot](https://github.com/QiaolinLu/MaterialsPilot).
BibTeX
@inproceedings{lu2026materialspilot,
  author = {Qiaolin Lu and Tongliang Liu and Qiang Qu and Bo Han and Yi Chang and Chengqi Zhang},
  title = {{MaterialsPilot: An Execution-Feedback Framework for Generative Design of Complex Atomistic Architectures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6I2wy66kZ8},
}
Figure