betaFeedback

WorksPhysics and Astronomy

LATHE: LAnguage-driven Toolkit for Hypothesis-based crystal Editing

Abstract

Manipulating crystal structures towards targeted geometric properties or symmetry constraints is a longstanding challenge. Existing computational frameworks fall short: LLMs have poor spatial awareness and operate at coarse granularity in the token space, while diffusion- and gradient-based structure generation approaches generally produce complete structures de novo rather allowing for fine-grained editing of a given input under arbitrary constraints. We present LATHE, a geometric toolkit that closes this gap by expressing seven classes of crystallographic properties — bond length, bond angle, dihedral angle, coordination environment, lattice parameters, cell volume, and space group, as differentiable objectives to enable direct geometric editing of crystal structures. To demonstrate its usage in materials design, we further expose LATHE through a Model Context Protocol server and embed it in a closed-loop multi-agent system which translates hypotheses intogeometric modifications in natural language towards a given design objective. Across single-property benchmarks, LATHE attains near-perfect constraint satisfaction on all seven property types while keeping optimized structures close to local energy minima. The LATHE-equipped agent translates over 87.5% of natural-language prompts into valid executable configurations and faithfully completes them. In a band-gap inverse-design case study, the multi-agent loop reaches the target tolerance window in nine of ten independent runs at a typical cost of thirteen hypothesis-evaluation cycles. By bridging natural-language hypothesis generation and physically grounded gradient-based structural editing, this work establishes a paradigm for interpretable, closed-loop computational materials discovery that is immediately applicable to a broad class of functional material design tasks.

Introduction

Designing materials with targeted functional properties—such as a prescribed band gap, specific coordination geometry, or desired crystal symmetry—remains a longstanding challenge in materials science due to the combinatorial vastness of composition and structure spaces ([54, 10, 28]). Traditional approaches to materials discovery often rely on high-throughput computational screening via density functional theory (DFT), which is resource-intensive and inefficient compared to iterative, hypothesis-driven workflows ([17, 18]). Meanwhile, recent advances in deep generative models have introduced an array of different generative frameworks for conditional generation of crystal structures. These approaches include foundational equivariant diffusion models operating directly in atomic coordinate space ([47, 21, 53]), autoregressive language models that treat crystal structure files as text sequences ([4]), flow-matching and Riemannian manifold-based generative frameworks ([31, 41, 39]), and property- or constraint-guided approaches that steer generation toward targeted electronic structures or geometric motifs ([20, 33]). Despite their differing strategies and advantages, these approaches share a common limitation: they operate at the level of generation or end-to-end property targeting and do not provide a controllable, physically grounded mechanism for modifying an existing structure in response to a specific geometric hypothesis. In computational materials discovery, a common practice is to investigate how modifications of certain sites or motifs of structures (e.g. bond elongation, local environment tweaks or symmetry changes) impact the target property. Yet, when a materials scientist hopes to investigate impacts of such fine-grained structural modifications, no existing computational framework can answer that question by faithfully presenting the structure with the desired changes. A different paradigm is therefore needed for material discovery to bridge qualitative structural intuition and quantitative geometric control at the atomic scale. In recent years there have been a dramatic expansion in the capabilities of large language models (LLMs), driven by ever-growing training corpus and unprecedented increases in computing scale [7, 22, 15]. Beyond text generation, LLMs have demonstrated the ability to reason, reflect on prior decisions [46], and act as autonomous agents when augmented with external tools [50, 38, 30]. These capabilities have attracted growing interest in scientific domains, particularly materials science and chemistry [26, 16, 36]. Prior work has demonstrated that LLM-based multi-agent systems can propose compositional modifications to drive target material properties: M. Bran et al. [2024] and Boiko et al. [2023] integrate LLMs with external chemistry tools and experimental automation to autonomously plan and execute chemical syntheses and guide molecular discovery; Jia et al. [2024] and Ansari et al. [2024] employ self-reflective LLM agents to iteratively propose and evaluate compositional modifications for property-driven inverse design; Ghafarollahi and Buehler [2024a] and Ghafarollahi and Buehler [2024b] couple physics-aware multi-agent systems with atomistic simulations and graph neural networks to autonomously navigate alloy composition spaces and predict mechanical properties; and Zhang et al. [2024], Takahara et al. [2025] and Chaudhari et al. [2026] build modular agent frameworks for broader materials science workflows, pairing LLM reasoning with curated knowledge bases, diffusion-based structure generation, and domain-specific simulation tools to direct exploration toward targeted material properties. Yet, these frameworks mostly operate at the coarse granularity of elemental substitution, simple site displacement or structure modification with attached code execution tools, and have difficulty faithfully completing precise, continuous geometric operations, such as bond stretching, angle tilting, coordination shell reshaping, symmetry enforcement, which are central to structure–property reasoning. Crucially, there lacks a back-end capable of executing such operations faithfully, leaving a significant gap between what an LLM agent can hypothesize in natural language and what it can actually manipulate in the crystal structure space.

In this work, we present a LAnguage-driven Toolkit for Hypothesis-based crystal Editing (LATHE) that closes this gap between the proposal and the implementation of the geometric hypotheses. Concretely, LATHE expresses seven classes of geometric properties — bond length, bond angle, dihedral angle, coordination environment, lattice parameters, cell volume, and space group — as differentiable loss functions over fractional coordinates and the lattice parameters to enable direct gradient-based optimization of any combination of these properties. An auxiliary machine-learning interatomic potential (MLIP) acts as a differentiable energy regularizer to keep optimized structures physically plausible without overriding the geometric objective. We expose LATHE through a Model Context Protocol (MCP) server [3], providing resource and tool endpoints that allow an LLM agent to translate natural-language input instructions into validated optimization configurations and execute them accordingly. Building on this agent, we demonstrate a multi-agent system in the spirit of LLMatDesign [19], in which a Hypothesis Agent proposes geometric modifications in natural language and the LATHE-equipped Agent translates each proposal into a configuration for gradient-based optimization; the resulting structure is evaluated for the target property, and the (hypothesis, modification, outcome) triple is fed back to close the hypothesize–translate–optimize–evaluate loop.

Our framework differs from prior gradient-based and generative approaches in three respects. First, whereas the most relevant work, SMOACS [12], optimizes through learned property predictors with template-derived initial conditions, our losses are explicit functions of the fractional coordinates and lattice matrix, exposing each property as an interpretable target rather than a single black-box objective. Second, LATHE is built around editing an existing structure under a user- or hypothesis-specified geometric constraint rather than synthesizing a representative of the target space group from scratch as seen in constraint-conditioned generative methods [33, 39], which makes it suitable for being integrated into iterative crystal structure design pipelines. Third, LATHE can be wrapped in a language-accessible agent layer that translates qualitative chemical hypotheses into executable optimization configurations within a closed feedback loop, an integration absent from prior gradient-based crystal optimization work. The result is an interpretable-by-construction design trajectory in which every accepted structural change carries a human-readable hypothesis and a measured property outcome. We demonstrate that LATHE achieves near-perfect constraint satisfaction across all seven property types in single-objective optimization, that the LATHE-equipped Agent correctly translates and carries out over 87.5% of natural-language prompts, including deliberately ambiguous ones, into valid executable configurations, and that the multi-agent loop reliably drives a target band gap to within a user-specified tolerance.

Methodology

Graph-Based Crystal Structure Representation

Crystal structures are represented as attributed graphs G=(V,E)\mathcal{G} = (\mathcal{V}, \mathcal{E}), where nodes V\mathcal{V} correspond to atoms and edges E\mathcal{E} encode interatomic interactions within a periodic unit cell. Geometric property optimization is formulated as a continuous optimization problem over two differentiable tensors: the atomic fractional coordinates F∈RN×3\mathbf{F} \in\mathbb{R}^{N \times3} and the lattice matrix L∈R3×3\mathbf{L} \in\mathbb{R}^{3 \times3}, whose rows are the lattice vectors. Cartesian positions are recovered as X=F⋅L\mathbf{X} = \mathbf{F} \cdot\mathbf{L}, and all geometric properties are computed from X\mathbf{X} and L\mathbf{L}, preserving differentiability through both tensors. For geometric property losses considered in this project, including bond length, bond angle, dihedral, coordination environment, lattice parameters, cell volume, and space group, edges are constructed using the minimum image convention (MIC), selecting for each atom its nearest periodic images within a fixed cutoff. For energy evaluation, MatterSim (Yang et al. [ [49]) is used as the machine learning interatomic potential (MLIP), and the graph with the two-body and three-body interaction indices (with PBC considered) is constructed to exactly match MatterSim’s native input convention. To avoid the computational overhead and inconsistent gradient signals between optimization steps due to rebuilding the neighbor list at every optimization step, we adopt a Verlet-list caching strategy (Verlet [ [42]): the discrete graph topology is rebuilt only when the maximum Cartesian displacement of any atom from its position at the last rebuild exceeds a threshold of 0.25 Å, while the differentiable quantities X\mathbf{X} and L\mathbf{L} are recomputed with gradients at every step.

Geometric Properties as Differentiable Functions

In this section, we describe the design of loss functions for each geometric property of interest in LATHE:

Bond length, bond angle, and dihedral angle The losses for these three properties are computed directly from atomic positions using the minimum image convention (MIC). For a pair of sites (i,j)(i, j), the MIC displacement vector is obtained by computing the fractional coordinate difference Δf=fj−fi\Delta\mathbf{f} = \mathbf{f}_j - \mathbf{f}_i, rounding to the nearest integer image as Δf←Δf−⌊Δf⌉\Delta\mathbf{f} \leftarrow\Delta\mathbf{f} - \lfloor\Delta\mathbf{f} \rceil to select the shortest periodic image, and projecting into Cartesian space via vij=Δf⋅L\mathbf{v}_{ij} = \Delta\mathbf{f} \cdot\mathbf{L}, where L\mathbf{L} is the lattice matrix. Gradients are propagated through the fractional difference and the lattice projection, while the rounding operation is detached from the computational graph to avoid ill-defined subgradients. The bond length loss is then the squared deviation of ∥vij∥\lVert\mathbf{v}_{ij} \rVert from a target distance d∗d^*. Bond angles at a vertex jj in a triplet (i,j,k)(i, j, k) are computed from the two MIC vectors vji\mathbf{v}_{ji} and vjk\mathbf{v}_{jk} using the numerically stable formulation θ=atan2⁡(∥vji×vjk∥,vji⋅vjk)\theta= \operatorname{atan2}(\lVert\mathbf{v}_{ji} \times\mathbf{v}_{jk} \rVert, \mathbf{v}_{ji} \cdot\mathbf{v}_{jk}) (Arnaud Blondel [ [5]), which avoids the gradient singularities of the arccos formulation near 00 and π\pi. Dihedral angles across a quadruplet (i,j,k,l)(i, j, k, l) are computed from the three sequential bond vectors b1=vij\mathbf{b}_1 = \mathbf{v}_{ij}, b2=vjk\mathbf{b}_2 = \mathbf{v}_{jk}, b3=vkl\mathbf{b}_3 = \mathbf{v}_{kl} via the signed atan2 formulation over the plane normals n1=b1×b2\mathbf{n}_1 = \mathbf{b}_1 \times\mathbf{b}_2 and n2=b2×b3\mathbf{n}_2 = \mathbf{b}_2 \times\mathbf{b}_3 (Arnaud Blondel [ [5]), which yields a signed angle in (−π,π](-\pi, \pi]. For each property, the loss is the mean squared error (MSE) between the computed value and the user-specified target, averaged over all designated site tuples.

Coordination Environment Coordination environment optimization targets the number of neighbors of each species type around a designated central site. Since integer neighbor counts are non-differentiable, we adopt a soft counting scheme based on Gaussian-smeared radial distribution integration (Zimmermann et al. [ [58]; ]; Zimmermann and Jain [ [57]), in which each neighboring atom contributes a smooth, distance-dependent weight cj∈[0,1]c_j \in[0, 1] to a soft coordination number n~=∑jcj\tilde{n} = \sum_j c_j (full functional form in SI Section S1.1). The primary loss term is the squared deviation (n~−n∗)2(\tilde{n} - n^*)^2 from the target count n∗n^*, summed over all species types. Three auxiliary penalties are added to keep the optimization well-behaved near integer boundaries and to prevent unphysical geometries: a sharpness penalty that discourages ambiguous shell membership, an integer-snapping penalty that removes gradient dead zones at fractional counts, and a soft-core repulsion combined with an attractive well potential that respectively prevent atomic collapse and allow under-coordinated sites to recover across the cutoff boundary. Full functional forms and gating terms are given in SI Section A.1.

Symmetry The space group compliance loss Lsg\mathcal{L}_{\mathrm{sg}} is a composite of four differentiable terms acting jointly on the fractional coordinates F\mathbf{F} and lattice matrix L\mathbf{L}:

Lsg=Lsym+λlatLshape+λvolLvol+λfloorLfloor+λoverlapLoverlap\mathcal{L}_{\mathrm{sg}} = \mathcal{L}_{\mathrm{sym}} + \lambda_{\mathrm{lat}} \mathcal{L}_{\mathrm{shape}} + \lambda_{\mathrm{vol}} \mathcal{L}_{\mathrm{vol}} + \lambda_{\mathrm{floor}} \mathcal{L}_{\mathrm{floor}} + \lambda_{\mathrm{overlap}} \mathcal{L}_{\mathrm{overlap}}

Symmetry compliance Lsym\mathcal{L}_{\mathrm{sym}} is the primary term. For each symmetry operation {Rg∣tg}\{R_g \mid\mathbf{t}_g\} of the target space group, the image of every atom under that operation should coincide with some atom of the same species. The loss penalizes the mean squared minimum-image Cartesian distance between each symmetry-transformed position Rgfi+tgR_g\mathbf{f}_i + \mathbf{t}_g and its optimal assignment among atoms of matching species, where the assignment is computed by Hungarian matching (Munkres [ [32]; ]; Kuhn [ [25]) at each step and treated as a fixed index set for gradient computation. This makes the loss differentiable with respect to F\mathbf{F} and L\mathbf{L} while handling the combinatorial assignment problem outside the computational graph. Lattice shape Lshape\mathcal{L}_{\mathrm{shape}} penalizes deviations of the lattice metric from the constraints imposed by the target crystal system (e.g., cubic symmetry requires a=b=ca = b = c and α=β=γ=90∘\alpha= \beta= \gamma= 90^\circ). Volume regularization Lvol=(∣det⁡L∣/V0−1)2\mathcal{L}_{\mathrm{vol}} = \left(\lvert\det\mathbf{L} \rvert/V_0 - 1\right)^2 anchors the cell volume to a reference value V0V_0 derived from the input structure, preventing the optimizer from collapsing or inflating the cell to trivially minimize the symmetry term. Floor and overlap penalties

apply quadratic soft constraints that prevent degenerate lattice vectors and unphysical atom–atom overlap, respectively.

Since space group symmetry is a discrete, global property of the crystal, naive optimization from an arbitrary starting configuration is hard to converge, as documented in our initial experiments. To address this, we initialize atomic positions onto valid Wyckoff sites of the target space group before optimization begins to provide a warm start. This procedure is described in detail in SI Section A.2.

Lattice Parameters and Volume The lattice parameter loss optimizes the six conventional crystallographic parameters {a,b,c,α,β,γ}\{a, b, c, \alpha, \beta, \gamma\}, three edge lengths in Å, and three interaxial angles in degrees toward user-specified target values. These are computed from the lattice matrix L\mathbf{L} as vector norms and pairwise angles between row vectors, preserving differentiability through L\mathbf{L}. The loss is a weighted sum of squared deviations over lengths and angles separately, Llatt=wℓ∑i∈{a,b,c}(pi−pi∗)2+wα∑i∈{α,β,γ}(pi−pi∗)2\mathcal{L}_{\mathrm{latt}} = w_{\ell} \sum_{i \in\{a,b,c\}} (p_i - p_i^{*})^2 + w_{\alpha} \sum_{i \in\{\alpha,\beta,\gamma\}} (p_i - p_i^{*})^2, where wℓw_{\ell} and wαw_{\alpha} are independent weights that account for the difference in scale between length and angle targets. Cell volume is computed as the absolute value of the determinant of L\mathbf{L}, V=∣det⁡L∣V = \lvert\det\mathbf{L} \rvert, and the volume loss is formulated either as an absolute squared deviation (V−V∗)2(V - V^{*})^2 or a relative deviation (VV∗−1)2\left(\frac{V}{V^{*}} - 1\right)^2, the latter being preferred when the target volume differs substantially from the initial value to avoid loss scale sensitivity.

Potential Energy The potential energy can be incorporated as an auxiliary loss term to introduce physical plausibility awareness into the optimization, rather than as a primary objective. Without an energy penalty, gradient-based optimization of isolated geometric properties can drive structures into configurations that satisfy the target constraint but are physically and by extension, energetically unreasonable. To address this, we employ MatterSim-1M (Yang et al. [2024]), a pretrained machine learning interatomic potential (MLIP) trained on a broad distribution of inorganic crystal structures, to evaluate the potential energy of the structure at each optimization step, though any other potential can be used. The predicted energy enters the total loss as a weighted auxiliary term Ltotal=Lgeo+λLenergy\mathcal{L}_{\mathrm{total}} = \mathcal{L}_{\mathrm{geo}} + \lambda\mathcal{L}_{\mathrm{energy}}, where Lgeo\mathcal{L}_{\mathrm{geo}} is the primary geometric property loss, Lenergy\mathcal{L}_{\mathrm{energy}} is the MatterSim-predicted potential energy, and λ\lambda controls the relative contribution of the energy penalty. Since MatterSim is a differentiable graph neural network, gradients flow through it without modification, and the energy loss participates fully in the auto-differentiation graph alongside the geometric losses. The weight λ\lambda is treated as a user-specified hyperparameter and is kept small relative to the geometric loss scale, ensuring that energy awareness acts as a regularizer that discourages unphysical configurations without overriding the geometric optimization objective.

Optimization Algorithms

Optimization with Auto-Differentiation

To optimize crystal structures toward target geometric properties, we treat the fractional coordinates F\mathbf{F} and the lattice matrix L\mathbf{L} as parameters and implement two gradient-based strategies: Adam-based gradient descent [24] and Basin-Hopping [43] with Adam. In both settings, the parameters are updated directly via the Adam optimizer with cosine learning rate scheduling and early stopping criteria for each desired geometric property such that optimization terminates as soon as all target property constraints are simultaneously satisfied, rather than running for a fixed number of iterations. An exception to the early stopping rule is when energy loss is included. To prevent stopping before sufficiently many energy optimization steps are applied, we run the full optimization and pick the candidate structure that satisfies all the geometric properties and has the lowest MLIP-predicted energy. While gradient descent suffices for many property targets, certain objectives, most notably space group conversion, exhibit a landscape with deep, discrete local minima that gradient descent alone cannot escape. In particular, a structure may become trapped in a supergroup of the target space group, where all symmetry operations of the desired space group are satisfied and thus the gradients are too small to break the excess symmetry; gradient signals in such regions are either vanishing or misleading. To address this, we additionally implement Basin-Hopping, in which random perturbations to atomic positions are applied to escape the current basin, with the best-seen structure retained across hops. This two-phase strategy is especially critical for space group optimization, as the finite stochastic jumps allow the structure to break out of supergroup-symmetric configurations and explore lower-symmetry basins that are otherwise inaccessible to gradient-only methods. Examples of optimization trajectory are shown in Figure 1. More comprehensive experimental outcomes are discussed later in § 3.1.

Figure 1. Representative gradient-optimization trajectories. Each row shows four frames of a single optimization — the initial structure, frames at approximately 1/3 and 2/3 of the trajectory, and the final optimized structure, with the step index given in parentheses. In every panel, periodic-image partners that lie outside the primitive cell are indicated by a dashed black ring drawn around the atom. (a) Bond-length optimization of a CaCO₃ structure (mp-556235). Ten bonds are jointly driven to user-specified distances under a weak MLIP-energy co-objective (w=0.01w = 0.01). Each targeted (ii, jj) pair is drawn as a uniform blue line connecting the two atoms (or atom ii and the nearest periodic image of atom jj when the bond wraps through the cell boundary). The first frame labels each bond with its starting distance (in Å); the final frame labels each bond with its target distance (in Å); intermediate frames show the bonds without numerical labels for clarity. (b) Space-group elevation of Al₂O₃ (mp-638765) from P-1 (No. 2) to R-3m (No. 166). The 2×2×22 \times2 \times2 supercell of the structures are shown. The optimization is again regularized by the MLIP-energy co-objective. (c) Coordination-environment modification of an oxygen site in MgSiO₃ (mp-1180468). The goal is to raise the number of Mg neighbors of an Oxygen atom from one to three while maintaining the number of Si and O neighbors. The target oxygen atom is highlighted with a bold solid black ring, and its first-neighbor shell within the coordination-loss cutoff of 3.5 Å is drawn as colored lines from the target site to each neighbor, one line per (atom, periodic-image) contact and colored by the element of the neighbor (Mg in green, Si in blue; O in red). As the optimization progresses, the number and identity of neighbors inside the cutoff shell evolve toward the specified target coordination.

Multi-Objective Optimization

To optimize multiple geometric properties simultaneously, we formulate a composite objective as a weighted sum of individual property losses, where each loss is assigned a scalar weight that controls its relative contribution to the total objective. This allows prioritization of certain structural targets over others, especially over the energy objective as a regularizer. However, naively summing gradients from competing property losses can lead to destructive interference, where gradients from different objectives point in conflicting directions and impede overall convergence. To address this, we adopt Project Conflicting Gradients (PCGrad) [51], which detects pairs of task gradients that have a negative cosine similarity and resolves conflicts by projecting each gradient onto the normal plane of the other to mitigate conflicting gradients from different objectives. This ensures that no single property loss actively undermines the progress of another and enables more stable and balanced convergence across all objectives. To optimize multiple geometric properties simultaneously, we formulate a composite objective as a weighted sum of individual property losses, where each loss is assigned a scalar weight that controls its relative contribution to the total objective. This allows prioritization of certain structural targets over others, especially over the energy objective as a regularizer. However, naively summing gradients from competing property losses can lead to destructive interference, where gradients from different objectives point in conflicting directions and impede overall convergence. To address this, we adopt Project Conflicting Gradients (PCGrad) [51], which detects pairs of task gradients that have a negative cosine similarity and resolves conflicts by projecting each gradient onto the normal plane of the other to mitigate conflicting gradients from different objectives. This ensures that no single property loss actively undermines the progress of another and enables more stable and balanced convergence across all objectives.

Equip LLM Agents with LATHE for LATHE-equipped Skills

Integration of LATHE with a MCP Server

To expose LATHE as a service consumable by external clients and autonomous agents, we implement a Model Context Protocol (MCP) server [3] using the FastMCP framework. The server presents capabilities of LATHE through two complementary interface categories: resources and tools. Resources provide read-only access to the system’s schema definitions, allowing a client to inspect the design space without side effects, while tools expose actionable endpoints that modify state or trigger computation. Table 1 summarizes the full set of endpoints. This resource/tool separation enforces a clean contract between discovery and execution, enabling an LLM agent to first query the available losses, validators, and optimizer settings, then compose a well-formed configuration, and finally submit it for optimization, all through a single HTTP/SSE transport layer without direct access to the underlying Python runtime.

TypeEndpointDescription
Resourceschema://configFull JSON schema of the optimization configuration.
Resourceschema://lossesCatalogue of available loss functions with accepted parameters.
Resourceschema://optimizerPer-optimizer documentation (learning rate schedules, basin-hopping settings, etc.).
Toolvalidate_configChecks a candidate configuration against the Pydantic schema and returns structured diagnostics.
Tooloptimize_structureAccepts a validated configuration and an input structure, then executes the full optimization pipeline.
Toolrun_pythonExecutes arbitrary Python code for inspection and analysis inspection of the input crystal structure.

Table 1. Resources and tools exposed by the MCP server to the LATHE-equipped agent.

Design of the LATHE-equipped Agent

Following prior works about LLM agents in chemistry/materials (M. Bran et al. [ [29], Boiko et al. [ [6], Wang et al. [ [44], Agada and Biswas [ [1]), we envision the role of the autonomous agent to be translating natural-language crystal-engineering requirements into executable optimization configurations and implemented it as a Pydantic AI agent (Pydantic Services Inc. [ [35]) that communicates with the MCP server as its sole back-end, with the complete design implemented as shown in Figure 2. This LATHE-equipped agent enforces a strict multi-phase workflow to ensure correctness: it first inspects the input structure by querying its geometric properties, then consults the MCP server’s schema resources to identify the appropriate loss functions and validators, and subsequently assembles a candidate configuration for interacting with LATHE. Before execution, the agent performs a quality check to verify that every target value falls within a physically plausible range for the given structure and conducts a validator audit to confirm that each constraint specified in the natural-language prompt is covered by a corresponding validator with matching tolerances. Only after the configuration passes the MCP server’s tool for confirming the correctness of the JSON optimization configuration is it submitted to the main optimize_structure tool for gradient-based refinement. This Chain-of-Thought (Wei et al. [ [45]) and ReAct (Yao et al. [ [50]) style multi-stage pipeline, enabled by prompting, prevents the agent from creating under-specified objectives and enables the agent to provide interpretable feedback at each decision point, bridging the gap between high-level materials-design intent and the low-level parameterization required by the differentiable optimization engine.

Overview of the LLM-Integrated Geometric Optimization Framework

Figure 2. Overview of the LATHE-equipped agent. A natural-language prompt containing properties to optimize is issued to an MCP Server/Agent loop, which iteratively composes a valid optimization configuration through multi-turn tool calling over structural inspection and intent understanding. The agent is grounded by MCP Server resources exposing the configuration, loss, validator, and constraint schemas to compose a JSON configuration defining the optimization targets and specifications, which is dispatched to LATHE via the run_optimization tool. After receiving the configuration, LATHE loads the structure to optimize, instantiates the user-specified losses and validators, and performs the optimization within a differentiable optimization loop. The optimized structure is returned to the agent to close the feedback cycle between language-level intent and gradient-based crystal structure design.

A Multi-Agent System for LATHE-driven Structural Design

The LATHE-equipped Agent reliably executes well-specified structural modifications, but realistic materials-design tasks are rarely posed at that level of granularity. A practitioner targeting a desired electronic, mechanical, or thermodynamic property seldom knows a priori which combination of bond lengths, coordination environments, or symmetry constraints will yield the intended outcome. To bridge this gap, we integrate the LATHE-equipped Agent into a closed-loop multi-agent system, in which a second large-language-model agent, the Hypothesis Agent, reasons about structure-property relationships and proposes successive modifications that drive a target property toward a user-specified value. We use the task of optimizing a structure towards a desired band gap as the example to demonstrate the effectiveness of this system.

Following the design of LLMatDesign (Jia et al. [ [19]), we adopt in-context learning as the framework for structural design; the system is illustrated in Figure 3. At each iteration, the Hypothesis Agent receives the current crystal structure (in CIF form), the present and target values of the property of interest, the admissible vocabulary of geometric operations exposed by LATHE, and a complete record of previously attempted hypotheses together with their measured property outcomes and any post-relaxation verdicts. Conditioned on this context, it generates a natural-language instruction that is dispatched to the LATHE-equipped Agent for translation and execution, the resulting structure is evaluated for the target property, and the (hypothesis, modification, property) triple is appended to the exploration history that conditions subsequent proposals. This resembles the multi-agent scientific hypothesis testing frameworks well documented in the existing literature (Gottweis et al. [2026], Yamada et al. [ [48], Yuksel and Sawaf [ [52]).

A two-agent system for property-oriented structural design

Figure 3. A two-agent system for property-oriented structural design. The framework decomposes inverse design into two cooperating agents. The Hypothesis Agent (left) conditions on the current structure and a user-specified target property to propose candidate geometric hypotheses — bond lengths, bond and dihedral angles, coordination environments, space group, lattice parameters, volume, and energy — while maintaining a memory of prior iterations that supports re-hypothesis upon failure and informs subsequent proposals. Each hypothesis is passed as an instruction to the LATHE-equipped Agent (right), which performs structural inspection and intent understanding to compose an optimization configuration.

We evaluate band-gap optimization under two settings of increasing physical constraints: manipulation and design. The manipulation setting is a test of whether the agentic system can simply find a configuration of atomic positions and lattice parameters to achieve the target property (band gap) with LATHE without considering other factors such as whether it is in a local minima. Such purely geometric levers on the band gap — strain, bond-length and bond-angle distortion — are well established as band-structure engineering knobs [9]. We denote the parent structure at each step as ss and the output structure by the LATHE-equipped agent as s′s^\prime. The design setting, in contrast, is more relevant for inverse materials design [37, 59]: the Hypothesis Agent is required to include energy as an additional minimization goal in every proposal, and the output of the LATHE-equipped agent undergoes additionally an unconstrained relaxation (i.e. both lattices and atomic positions can be altered) with the MLIP at every step to fulfill the requirement of material design that every structure in the design process should sit in an energy basin. We denote the structure after relaxation as s′′s^{\prime\prime}.

For the manipulation setting, we accept one step as long as the band gap of s′s^\prime is strictly closer to the target than that of ss, while for the design setting, we accept one step if all the following three criteria are met: (i) the band gap of s′′s^{\prime\prime} is strictly closer to the target than that of ss; (ii) the final structure s′′s^{\prime\prime} doesn’t drift back to the original structure ss (as judged by a pymatgen StructureMatcher [34]); and (iii) the geometric constraints imposed by the LATHE-equipped agent are preserved in a directional way (i.e. every targeted geometric quantity moved in the desired direction) We didn’t adopt a stricter acceptance rule that requires the geometric properties are precisely preserved after relaxation, since an unconstrained relaxation, by construction, almost inevitably moves s′s^\prime off any purely geometric target imposed by the optimizer: s′s^\prime is a minimum of the weighted loss, whereas s′′s^{\prime\prime} is a minimum of solely the energy component. The two coincide only when the geometric target is itself an energy minimum. A precise-preservation rule would therefore reject almost every iteration in which the geometric lever actually did its job. The directional check, despite being a softened approach, still captures what the inverse-design objective requires: that the qualitative intent of the hypothesis (e.g. increase an angle, shorten a bond) survives relaxation.

To expedite exploration in the chemical space, we adopt a stagnation-aware exploration mechanism that, after a configurable number of consecutive non-improving iterations, restarts hypothesis generation from the closest alternate candidate seen so far to escape unproductive local basins. This is analogous to the perturbation-and-restart strategies used in basin hopping [43]. As a conclusion, these components constitute a hypothesize—optimize—evaluate cycle in which the qualitative materials-science intuition encoded in the Hypothesis Agent is carried out by the LATHE-equipped Agent to yield an interpretable trajectory from a high-level property target to a concrete, dynamically stable optimized structure.

Results

Evaluation of LATHE

We first evaluate LATHE on seven single-property optimization tasks: bond length, bond angle, dihedral angle, coordination environment, lattice parameters, volume, and space group, with each property tested across 120 cases (78 for space group). For each property except space group, test cases are constructed in two variants: perturb, which applies random noise to the relevant degrees of freedom of a known reference structure and requires the optimization to recover the property in the original structure, and modify, which requires the optimization to achieve properties with new, randomly sampled target values that differ from the original structure. Space group test cases instead use upscale and downscale variants that raise or lower the target symmetry relative to the input structure. All properties except space group are optimized with direct gradient descent on differentiable loss functions over fractional coordinates and lattice parameters, while space group optimization employs basin-hopping. As shown Figure 4, LATHE achieves near-perfect pass rates across all properties in the property-only setting: bond length, bond angle, dihedral angle, coordination environment, and volume each reach 100%, while lattice parameters and space group attain 94.2% and 89.7%, respectively.

Figure 4. Single-property optimization results across seven geometric and symmetry targets. Pass rates for each property are reported under two settings: property-only optimization (blue) and property jointly optimized with an auxiliary energy loss (orange). LATHE achieves near-perfect pass rates in the property-only setting (100% for bond length (BL), bond angle (BA), dihedral angle (DH), coordination environment (CE), and volume (Vol); 94.2% for lattice parameters (LP); 89.7% for space group (SPG)), and these rates are largely preserved when the energy loss is added, with only modest decreases for coordination environment and lattice parameters. Per-atom energy distance ∣ΔE∣|\Delta E| between each optimized structure and its MatterSim-relaxed counterpart, shown on a log scale. Energy-aware optimization (orange) consistently produces structures closer to a local energy minimum than property-only optimization (blue) across all properties, with the largest reductions observed for coordination environment and space group, confirming that the jointly optimized structures satisfy their geometric targets while lying substantially closer to the potential energy surface minima. Each property is evaluated over 120 test cases (78 for space group) with different test case generating patterns perturb/modify (upscale/downscale for space group).

When an auxiliary MLIP energy loss (MatterSim, Yang et al. [2024]) is added, pass rates remain largely preserved: bond length, bond angle, dihedral, and volume stay at or above 99%, and space group has a modest improvement to 93.6%, with only coordination environment (90.0%) and lattice parameters (90.0%) showing moderate decreases, which indicates a mild trade-off between geometric fidelity and energetic awareness for these more constrained properties. To assess whether the energy loss makes the optimization truly energy-aware, we measure the distance from each optimized structure to a local energy minimum by relaxing the optimized structure with MatterSim and computing the per-atom energy difference before and after relaxation (∣ΔE∣|\Delta E|). The energy-aware mode consistently yields lower ∣ΔE∣|\Delta E| across all properties, with particularly dramatic reductions for coordination environment and space group optimizations, confirms that the jointly optimized structures lie substantially closer to the potential energy surface minima while still satisfying their geometric targets.

Performance of the LLM Agents

The LATHE-equipped Agent

Test Case Creation To evaluate the agent’s ability to translate natural-language structure-modification requests into executable optimization configurations, we construct a benchmark of 40 prompts with a template-driven pipeline over 10 input structures. For each prompt, a random compatible subset of the seven supported properties is sampled, an MLIP energy objective is appended with 30% probability, and an LLM (GPT-5.4-nano) fills the templates with chemically plausible values conditioned on the formula and CIF (SI B.1). Each case is generated in two styles. Direct prompts specify targets unambiguously through precise numerical values, site indices, and property names (e.g. “Set the bond length between Ti at site 1 and O that is closest to it to 1.95 Å.”). Informative prompts introduce deliberate ambiguity: relative modifications with qualitative quantifiers (e.g. “Increase some Ti–O bond lengths by at most 5%”), prefixed by a sentence of scientific context that motivates the modification. This style reflects how the LATHE-equipped agent would receive hypotheses or instructions from other agents in a multi-agent crystal design setting. Table 2 gives representative examples of each style.

StylePrompt
DirectSet the bond length between Ti at site 1 and O that is closest to it to 1.95 Å. Set the dihedral angle of O–Ti–O–Ba where Ti is at site 1, O that is closest to Ti is at site 2, and O that is furthest from Ti is at site 4 to 180 deg. Set the bond angle of O–Ti–O where Ti is at site 1, O is at site 2 and O is closest to Ti to 180.0 deg. Minimize the MLIP-predicted energy of the structure.
InformativeTuning the local oxygen coordination around the A- and B-site cations in perovskite BaTiO3_3 offers a pathway to control lattice polarization and ferroelectric instability, thereby shifting phase-transition temperatures and enhancing dielectric and piezoelectric performance for actuators and sensors. Increase some Ba–Ti–O bond angles in the structure by at least 10 degrees. Increase some Ti–O bond lengths in the structure by at most 5%.

Table 2. Representative examples of direct and informative prompts for the same structure (BaTiO3_3, mp5020).

LLM-as-Judge Evaluation We judge success with a three-stage pipeline. An LLM parser converts the prompt and the original structure into a typed checklist of requirements, each carrying a property kind, site indices, a target value, a relative-change encoding, and a quantifier. A deterministic verifier (pure Python, no LLM) then evaluates every requirement with MIC geometry helpers, tolerance-aware comparators, and element-tuple enumeration for non-specific quantifiers, re-solving relative descriptors against the original structure and overriding the parser on disagreement; it returns PASS, FAIL, SKIP, or INCONCLUSIVE and is authoritative whenever conclusive. Only if a non-energy requirement remains inconclusive do we invoke an LLM verifier backup, which receives the prompt, the checklist, and both CIFs, and resolves the remaining requirements using a sandboxed run_python tool. Full prompts, the requirement schema, and tolerance settings are given in SI B.2.

MethodDirect CIF GenerationClaude CodeOurs
Success Rate45.0%72.5%87.5% ± 3.39%

Table 3. Performance comparison of the three methods on the 40-task benchmark.

Experimental Outcomes We similarly used gpt-5.4-nano as the backbone LLM for the agent. Across 200 runs (40 prompts × 5 independent trials with different seeds per prompt), the agent achieves an overall success rate of 87.5%. Performance is related to prompt phrasing: direct prompts pass at 93.0%, while informative prompts, despite their deliberate ambiguity and qualitative quantifiers, pass at 82.0%, which indicates that the agent can ground relative and underspecified language into concrete numerical targets. Of the 25 failures, 24 (96%) are attributable to optimization failure, in which the agent correctly interprets the prompt and assembles a valid configuration but the underlying gradient-based optimizer cannot simultaneously satisfy all constraints; only 1 failure (4%) stems from intent misunderstanding, where the agent misidentifies the user’s geometric target or omits a required constraint. This suggests that the LLM-driven translation layer is reliable in understanding the structure and compiling the abstract requirements into concrete specifications for the optimization tools. Yet, it sometimes ignores whether the provided optimization targets are feasible so that the subsequent optimization may fail.

Baseline Methods To establish a baseline, we evaluated the performance of two alternative approaches. (1) Direct CIF generation: we instruct the LLM (gpt-4o) to directly generate the CIF representation of the transformed structure given the input CIF and the task prompt. (2) Claude Code: we provide the task prompt, the path to the input structure, and a Python environment with ase, pymatgen, and other scientific computing libraries preloaded, then instruct Claude Code (claude-opus-4-6) to execute the LATHE-equipped by following an observe-modify-confirm workflow. These two methods represent the naive LLM solution and the state-of-the-art agentic coding approach, respectively. We leveraged the same judgment workflow as introduced above. Direct CIF generation succeeds on 18/40 (45%) tasks, and Claude Code succeeds on 29/40 (72.5%) tasks, both inferior to our LATHE-equipped agent. Moreover, while Claude Code achieves reasonable performance, it exhibits two key limitations relative to our approach. First, Claude Code must recompose tailored scripts for every step of the pipeline, both for observing the structure and for executing the geometric operation, whereas our method, despite also requiring code execution at the observation stage, incurs no additional scripting overhead during optimization, as LATHE handles it natively. Second, Claude Code struggles to reconcile geometric constraints with the energy co-objective. In one failure mode, it first satisfies the geometric constraints and then performs a relaxation to reach the energy minimum, which frequently breaks the previously satisfied geometry; Claude Code must then re-enforce the geometric constraints, and this back-and-forth cycle can repeat for several iterations, resulting in substantial time and token cost. In a second failure mode, Claude Code attempts to incorporate energy directly into the constraint satisfaction step; however, since it seeks an energy minimum, it repeatedly rewrites the optimization script with different implementations and hyperparameters, again producing a multi-turn and token-intensive process. We observe that these two failure modes, individually or in combination, can drive individual Claude Code runs to exceed 30 minutes with unacceptably high token costs.

A Case Study: Structural Design for Optimizing Band Gap

Walking through an example run. To illustrate how the two-agent system with the hypothesize–translate–optimize–relax–evaluate loop introduced in § 2.4.3 works in practice, we walk through a single representative design run targeting a band gap of 1.0±0.11.0 \pm0.1 eV on Cu2_2CdGeS4_4 (with MPID mp-13982), as the design mode resembles structure optimization. The starting structure has a MatterSim-predicted band gap of 0.309 eV, so the agent must roughly triple the gap purely through geometric modifications proposed in natural language and executed by the downstream optimization back-end. Acceptance is governed by the directional gate. We denote the original structure at each iteration as ss, the structure right after optimization as s′s', and the post-optimized structure after an unconstrained geometric relaxation as s′′s''. A candidate is admitted only if its post-relaxation structure s′′s'' differs from the iteration input ss, moves the band gap closer to the target, and each targeted geometric quantity (together with the band gap itself) shifts away from the source-relaxed reference in the direction the Hypothesis Agent explicitly predicted. The Hypothesis Agent selects each iteration’s parent from a ranked candidate pool, so adjacent iterations are not necessarily causally linked; the full exploration unfolds as a branching tree (Figure 5) rather than a linear sequence, and Table 4 records the parent–hypothesis–verdict for each iteration. We use gpt-5.4-nano as the backbone LLM for the LATHE-equipped Agent and gpt-4o as the backbone LLM for the Hypothesis Agent.

Figure 5. Example design run of the multi-agent design loop on Cu2_2CdGeS4_4 (mp-13982), targeting a band gap of 1.0 ±\pm 0.1 eV. (a) Branching search tree of the run. Each node is one iteration, plotted at (i,gi)(i, g_i) where gig_i is the post-relaxation MatterSim-predicted band gap returned by the relaxation gate; the starting structure sits at (0,0.309 eV)(0, 0.309\ \mathrm{eV}). Edges connect each iteration to the parent from which it was branched off. Green markers denote candidates accepted by the acceptance rule, and the red markers denote rejections. The thick green path marks the lineage of accepted ancestors that produced the final structure. Each node is annotated with a short tag for the geometric lever the Hypothesis Agent proposed. The dashed horizontal line marks the target band gap and the shaded band the ±\pm0.1 eV tolerance window. (b) Crystal-structure snapshots along the accepted backbone: the input structure (iter 0), the iteration 7 structure after the S–Cu–S angles were pushed toward the tetrahedral ideal of 109.47∘109.47^\circ, the iteration 11 structure after the Cu coordination was lowered from 4 to 3, the iteration 12 structure after a −5%-5\% contraction of the Cu–S bonds, and the final iteration 16 structure after a −2%-2\% isotropic lattice contraction that lands the band gap inside the target window.

IterParentHypothesis (summarized)Raw gap (eV)Relaxed gap (eV)Decision
1StartIncrease aa, bb, cc by ∼5%\sim5\%.0.2870.304rejected (drift)
2StartTilt Cu–S–Cu bond angles toward 150°.0.4170.311rejected (drift)
3StartRaise Cu coordination from 4 to 6.0.0510.018rejected (distance)
4StartShorten Cu–S bond lengths by ∼5%\sim5\%.0.2670.300rejected (drift)
5StartLengthen Ge–S bond lengths by ∼5%\sim5\%.0.2800.303rejected (drift)
6StartIncrease aa, bb, cc by ∼10%\sim10\%.0.8040.304rejected (drift)
7StartOpen S–Cu–S bond angles toward 109.47°.0.4440.432accepted
8Iter 7Increase aa, bb, cc by ∼5%\sim5\%.0.3940.368rejected (distance)
9Iter 7Tilt Cu–S–Cu bond angles toward 150°.0.4720.441rejected (drift)
10Iter 7Open Ge–S–Ge bond angles toward 180°.0.4300.430rejected (drift)
11Iter 7Lower Cu coordination from 4 to 3.0.8411.152accepted
12Iter 11Shorten Cu–S bond lengths by ∼5%\sim5\%.1.0881.151accepted
13Iter 12Shorten Cu–S bond lengths by ∼5%\sim5\%.1.1591.072rejected (drift)
14Iter 12Raise Cu coordination.0.1170.367rejected (distance)
15Iter 12Open Cu–S–Cu bond angles toward 180°.1.1701.063rejected (drift)
16Iter 12Reduce aa, bb, cc by ∼2%\sim2\%.1.0651.062accepted (target)

Table 4. Per-iteration record of the example design run on Cu₂CdGeS₄ (mp-13982). Each row reports the parent structure the Hypothesis Agent branched from (“Start” denotes the input structure), the natural-language hypothesis it proposed (the trailing “minimize the MLIP-predicted energy” clause that appears in every proposal under the directional gate is omitted from the table), the band gap of the gradient-optimized geometry (raw), the band gap after a brief MLIP relaxation through the relaxation gate (relaxed), and the directional-rule decision. Rejections are labeled “drift” (the relaxed structure s′′s^{\prime\prime} matches the iteration input ss), “distance” (s′′s^{\prime\prime} differs from ss but the gap moved further from the target), or “directional” (the geometric property enforced during optimization doesn’t hold directionally after the relaxation). The starting band gap is 0.309 eV and the target is 1.0 ±\pm 0.1 eV. The run terminates after iteration 16, when the post-relaxation gap of 1.062 eV enters the target window.

Iterations 1–6 all branch off the input structure and are all rejected, exposing two distinct failure modes that the directional gate exists to catch. Iterations 1, 2, 4, 5, and 6 propose isotropic lattice expansion (+5%, then +10%), Cu–S–Cu angle tilting toward 150°, and Cu–S / Ge–S bond-length perturbations; in each case the gradient back-end returns an s′s' whose raw band gap is sometimes large, but the subsequent relaxation collapses the structure straight back to the input, so the “drifted-back” rule rejects them outright (red markers at iters 1, 2, 4, 5, 6 in Figure 5a). After six straight rejections, the escalation block of the Hypothesis Agent prompt actively steers the proposer away from attempts that have already failed.

Iteration 7 is the first acceptance: opening the S–Cu–S bond angles toward the tetrahedral ideal of 109.47° produces a structure that survives relaxation as a genuinely different geometry, moves the gap to 0.432 eV, and passes the directional gate (the targeted bond-angle quantity moves in the predicted direction to 109.47°. Now iterations 8–11 branch from iteration 7 rather than from the input. Iterations 8 (+5% lattice), 9 (Cu–S–Cu tilt to 150°), and 10 (Ge–S–Ge tilt to 180°) are rejected—the first because the relaxed gap of 0.368 eV moves further from target than the parent’s 0.432 eV, the latter two because they drift back to the iteration 7 basin under MLIP relaxation. Iteration 11 then proposes a qualitatively new lever: lower the Cu coordination from 4 to 3. This move lands in a distinct basin (no RMS match) and the post-relaxation gap jumps to 1.152 eV, overshooting the target window by a small amount but passing the directional gate. Iteration 11 is accepted and becomes the new working candidate. The final two acceptances refine this candidate downward toward the target window. From iteration 11, iteration 12 contracts the Cu–S bonds by ∼5%\sim5\%; the relaxed structure remains distinct (RMS ≈0.080\approx0.080 Å), the gap holds at 1.151 eV, and iteration 16 finally proposes a small −2%-2\% isotropic lattice contraction; the relaxed structure differs from the parent (RMS ≈0.064\approx0.064 Å), the lattice contracts as predicted in direction, and the post-relaxation gap of 1.062 eV lands inside the 1.0 ±\pm 0.1 eV target window. The run terminates after sixteen iterations along a five-node accepted backbone (Start →\rightarrow 7 →\rightarrow 11 →\rightarrow 12 →\rightarrow 16; bold green path in Figure 5a; corresponding snapshots in Figure 5b).

Robustness across random seeds. The trajectory analyzed above is one realization of a stochastic loop: the Hypothesis Agent samples from a language-model policy, and the downstream gradient optimizer has its own randomness. To test whether the multi-agent system is robust to this combined noise, we repeat the same Cu2_2CdGeS4_4 band-gap task (1.0 ±\pm 0.1 eV target on mp-13982) for ten independent runs in each of the two settings, under identical settings and a budget of 50 iterations per run. Both settings converge in nine of the ten runs. Among the successful runs, the design setting reaches the tolerance window in a median of 13 iterations (mean 14.9), while the manipulation setting requires a median of 16 iterations (mean 19.0). The single failed run of the design setting exhausts its budget at 1.16 eV — overshooting the upper edge of the tolerance window, and the failed run of the manipulation setting stalls at 0.87 eV, still moving in the right direction but unable to close the remaining 0.13 eV gap within the iteration budget. We attribute the design setting’s tighter iteration distribution to the relaxation gate and the directional check: by accepting only steps whose qualitative intent survives an MLIP relaxation, the loop suppresses brittle changes that immediately drift back and guides the search with informative signals from an informative exploration history, in which each step fulfills the hypothesis proposed by the hypothesis agent. The manipulation setting, in contrast, accepts any geometric configuration that lowers the unrelaxed band gap, which makes the per-iteration acceptance rate higher but the trajectory noisier: several runs spend much of their budget exploring high-strain configurations that a relaxation would have undone. In conclusion, these statistics indicate that the closed loop reliably solves the band gap optimization task under randomness in both settings, and that gating on MLIP-relaxed, directionally-consistent candidates, adhering to principles of inverse design, does not degrade convergence efficiency.

Discussion

As a summary, the single-property experiments establish that expressing crystallographic properties as differentiable losses over the fractional coordinates and lattice matrix is sufficient to drive gradient-based optimization to near-perfect constraint satisfaction across a heterogeneous set of geometric targets. The uniformly high pass rates for single-property optimizations indicate that the loss formulations produce well-behaved gradient landscapes that standard first-order optimizers can navigate without additional tuning. Furthermore, optimization with energy awareness preserves these pass rates while substantially reducing the distance from the optimized structure to a local energy minimum, which demonstrates that the auxiliary energy loss functions successfully act as a regularizer that tightens physical plausibility without overriding the geometric objective. The LATHE-equipped Agent inherits this reliability: across 200 runs it translates natural-language prompts into executable configurations with a 87.5% success rate, a performance surpassing the SOTA coding agent Claude Code. This shows that the agent can ground qualitative quantifiers such as “some” or “at most 5%” into concrete numerical targets. That most observed failures arise from optimization-side infeasibility rather than translation-side misunderstanding is the most informative statistic in this evaluation: the language-to-configuration layer is not the bottleneck, and further gains will come from the optimizer and from better feasibility reasoning, not from a larger or more capable LLM translator.

The band-gap case study demonstrates that the hypothesize–translate–optimize–evaluate loop is capable of solving a nontrivial inverse-design task. Nine of ten independent design runs on Cu₂CdGeS₄ reach the 1.0 ±\pm 0.1 eV target within the 50-iteration budget. This behavior emerges from in-context conditioning on the running history of (hypothesis, modification, outcome) triples, without any task-specific fine-tuning. Equally important, the division of labor insulates each agent from the failure modes of the other: the Hypothesis Agent need not reason about gradient landscapes or optimizer hyperparameters, and the LATHE-equipped Agent need not reason about band-gap physics. This design yields a fully auditable trajectory in which every accepted structural change is associated with a human-readable hypothesis and a measured outcome.

Two directions stand out for extending the present framework. First, the LATHE-equipped Agent currently converts each requested constraint to a loss covered by a validator, but does not perform a feasibility analysis across the full set of targets on a given structure. This gap is most visible for ambiguous prompts, where qualitative quantifiers such as “some” or “at most” are grounded into concrete numbers without an accompanying feasibility check, which sometimes results in an over-demanding set of constraints. Future work could add a feasibility pre-screening step, for instance using cheap geometric or symmetry-based heuristics to flag jointly unsatisfiable constraint sets before optimization begins, or to suggest relaxed targets when a strict combination cannot be met. Second, because the gradient-based optimizer is intrinsically local, jointly satisfying a non-trivial set of geometric constraints and reaching a low-energy MLIP basin can lead to a compromise between the two objectives, particularly when their minima lie in different regions of configuration space. A promising avenue here is to pair the framework with generative crystal models that sample directly from stable-structure distributions, conditioning them on differentiable constraint terms during sampling or hybridizing them with a local optimizer that enforces geometric targets as a post-hoc projection step. Realizing this would let future systems reach precisely-constrained, energy-favorable structures beyond what local optimization alone can access, and would extend the hypothesize–optimize–relax loop to targets that are currently out of reach.

Conclusion

We introduced LATHE, a geometric reasoning toolkit for hypothesis-driven crystal structure exploration that bridges the gap between qualitative chemical intuition and quantitative geometric control within a single, language-accessible, gradient-powered framework. At the algorithm level, seven classes of crystallographic properties — bond length, bond angle, dihedral angle, coordination environment, lattice parameters, cell volume, and space group — are expressed as differentiable losses over the fractional coordinates and lattice matrix so that any arbitrary combinations of targets can be optimized via direct gradient-based optimization. Exposing LATHE through an MCP server turns it into a service that autonomous agents can discover, compose against, and invoke, and the LATHE-equipped Agent built on this interface translates natural-language structure-modification requests into executable optimization configurations with high fidelity across both direct and deliberately ambiguous prompts. Embedding this agent inside a closed-loop multi-agent system together with a Hypothesis Agent further lifts the framework from structural editing to property-oriented inverse design to produce an interpretable, auditable trajectories in which every accepted structural change is associated with a human-readable hypothesis and a measured property outcome. Together, these results show the feasibility of a promising mode of computational materials design in which fine-grained geometric operations become the primitive building blocks of an LLM-driven discovery loop, opening a path toward systems that reason about structure, execute on it with physical fidelity, and explain their trajectory in the same language in which the design problem was first posed.

Data Availability

The authors declare that all data, materials, and code supporting the results reported in this study are available at the following repository: https://github.com/Fung-Lab/StructGradDesign.

Acknowledgements

We gratefully acknowledge the support of a Google Research Scholar Award.

Implementation Details for the Geometric Loss Functions

Coordination Environment

For each neighboring atom jj at distance rr from the target site, its contribution to the soft coordination count is computed as

cj=12[erf⁡(rcut−rσ2)−erf⁡(rmin⁡−rσ2)]⋅σ(rcut−rw)c_j = \frac{1}{2}\left[\operatorname{erf}\left(\frac{r_{\mathrm{cut}}-r}{\sigma\sqrt{2}}\right)-\operatorname{erf}\left(\frac{r_{\min}-r}{\sigma\sqrt{2}}\right)\right]\cdot\sigma\left(\frac{r_{\mathrm{cut}}-r}{w}\right)

where σ\sigma is the Gaussian smearing width, rmin⁡r_{\min} excludes unphysical self-contacts, and the trailing sigmoid term with envelope width ww acts as a Fermi-like taper that smoothly suppresses contributions near the cutoff boundary. The soft coordination number for a given species is n~=∑jcj\tilde{n} = \sum_j c_j.

Three auxiliary penalty terms are added to the primary (n~−n∗)2(\tilde{n}-n^*)^2 loss:

  1. Sharpness penalty: ∑jcj(1−cj)\sum_j c_j(1-c_j), maximized when contributions are near 0.5 (ambiguous membership) and near zero when each atom is clearly inside or outside the coordination shell. This term is gated by a Gaussian proximity weight exp⁡(−2(n~−n∗)2)\exp(-2(\tilde{n}-n^*)^2) so that it only acts when the count is already near the target.

  1. Integer-snapping penalty: 12(1−cos⁡(2πn~))\frac{1}{2}(1-\cos(2\pi\tilde{n})), a smooth periodic potential with non-zero gradient at all fractional counts, eliminating gradient dead zones near integer boundaries. This term is likewise gated by the proximity weight.

  1. Soft-core repulsion and attractive well: a soft-core repulsion ∑jmax⁡(rrep−rj,0)2\sum_j\max(r_{\mathrm{rep}}-r_j,0)^2 penalizes any neighbor closer than a minimum contact distance rrepr_{\mathrm{rep}}, preventing unphysically collapsed configurations. To ensure that under-coordinated sites can recover when atoms drift beyond the hard cutoff, an attractive well potential acts on atoms within an extended shell (rcut,rcut+Δr](r_{\mathrm{cut}}, r_{\mathrm{cut}}+\Delta r], contributing a quadratic restoring force scaled by the coordination deficit max⁡(n∗−n~,0)\max(n^*-\tilde{n},0).

Wyckoff Site Warm-Start Initialization

Given the target space group and the atomic composition of the structure, the initializer first determines all valid decompositions of each species’ atom count into sums of Wyckoff multiplicities, then searches over these decompositions to find the placement that minimizes a weighted combination of atomic displacement from the original coordinates and symmetry compliance cost. For each candidate decomposition, generator points for parametric Wyckoff sites (those with one or more degrees of freedom) are optimized via L-BFGS-B (Zhu et al. [ [56]) over the free fractional coordinates, with Hungarian matching used to assign original atomic positions to proposed orbit positions in a displacement-minimizing way. Fixed special sites (zero degrees of freedom) are placed directly at their crystallographic positions. Placements that produce interatomic distances below a physical minimum threshold, or that overlap with already-placed species, are discarded. When the primitive cell atom count is incompatible with any Wyckoff decomposition of the target space group, the cell is expanded into a supercell by the smallest diagonal scaling matrix whose atom counts admit a valid decomposition, and constraint site indices, if additional constraints that require atomic indices exist, are remapped accordingly. Across all valid decompositions, the final placement is selected by Hungarian matching as the one that minimizes total atomic displacement from the original structure. This ensures that the warm-started configuration is as close as possible to the input geometry while satisfying the Wyckoff site constraints of the target space group. This displacement-minimizing initialization distinguishes our approach from generative methods that synthesize a symmetry-compliant structure from scratch ([21, 23, 27, 11]): rather than producing an arbitrary representative of the target space group, our initializer anchors the symmetry-constrained configuration to the user’s input structure so that the geometry of the original structure is preserved as much as possible before gradient-based optimization begins.

Benchmark Experiment Designs

Natural Language-Based Geometric Optimization Test Case Creation

Each benchmark prompt is produced by a four-stage pipeline: (i) sample a set of target properties, (ii) instantiate a parameterized sentence template per property, deterministically fixing all atom-selection arguments, (iii) call an LLM to fill only the chemical and numerical blanks, and (iv) validate the returned sentence and re-roll on failure. Only stage (iii) involves an LLM; the site indices, anchors, and distance cutoffs that determine which atoms a requirement refers to are drawn by the pipeline itself, so every prompt has a well-defined referent independent of model behavior.

PropertyDirectAmbiguous
Bond lengthSet the bond length between [X] {q1} and [Y] {q2} to [value].{op} {quant} [X]–[Y] bond lengths by {magnitude}.
Bond angleSet the bond angle of [X]–[Y]–[Z] where [Y] is at site {i}, [X] {qx}, and [Z] {qz} to [value].{op} {quant} [X]–[Y]–[Z] bond angle(s) by {magnitude} degrees.
DihedralSet the dihedral angle of [X]–[Y]–[Z]–[W] where [Y] is at site {iy}, [Z] is at site {iz}, [X] {qx}, and [W] {qw} to [value].{op} {quant} [X]–[Y]–[Z]–[W] dihedral angle(s) by {magnitude} degrees.
CoordinationSet the coordination number of [X] at site {i} to [n]; or set the number of [X] atoms near [Y] at site {i} to [n] within {d} Å.{quant} [X] atom(s) should be [n]-coordinated; or {op} the number of [X] atoms near {quant} [Y] atom within {d} Å.
LatticeSet lattice parameter(s) [a|b|c|α|β|γ] to [value(s)].{op} {quant} lattice length(s)/angle(s) by {magnitude}.
VolumeSet the volume of the unit cell to [value].{op} the volume of the unit cell by {magnitude}.
SymmetrySet the space group to [symbol / ITA number].Change the space group to one with higher (lower) symmetry, or to one in the [crystal system] system.
EnergyMinimize the MLIP-predicted energy of the structure. (fixed sentence)

Table B.1. Sentence skeletons per property. Bracketed items are filled by the LLM; braced items are drawn by the pipeline. Informative prompts use the ambiguous skeletons.

Property sampling The structural property pool is {bond_length, bond_angle, dihedral_angle, coordination, volume, symmetry, lattice_params}. For each prompt we draw two properties without replacement, with sampling weights 1.0 for all properties except symmetry (0.25) and coordination (0.75); these two are down-weighted because they act as global constraints that dominate the optimization. Three compatibility rules are then applied in order: if symmetry was drawn, it becomes the sole structural target. Otherwise, if coordination was drawn, it becomes the sole structural target. If both lattice_params and volume were drawn, volume is dropped, since the two are redundant. Independently, an MLIP energy objective (“Minimize the MLIP-predicted energy of the structure.”) is appended with probability of 0.5. A prompt therefore contains one or two structural requirements plus an optional energy requirement.

Template instantiation Table B.1 lists the skeleton used for each property and style. For the three properties whose direct form requires atom selection (bond_length, bond_angle, dihedral_angle), the selector slots are filled by the pipeline before the LLM is called, drawing uniformly from five selector families: explicit index (i.e. “is at site ii”), nearest / farthest (i.e. “is the atom closest (furthest) to (from) the atom at site aa”), distance-bounded (i.e. “is the atom whose current distance to the atom at site aa is smaller (larger) than dd Å”).

LLM blank-filling. The instantiated template, the chemical formula, and the full CIF of the starting structure are passed to <MODEL> at temperature T=0.9T = 0.9. The system prompt restricts the model to emitting a single completed sentence and forbids copying template scaffolding (placeholder tokens, slash alternations such as “closest/furthest”, bare atom letters X/Y/% Z/W, or meta-language). The model’s only degrees of freedom are the element symbols and the numerical targets, which it is instructed to choose so as to be chemically plausible for the given formula. One sentence is generated per property and the sentences are concatenated to form the prompt.

Styles. Direct prompts use the direct skeletons: unambiguous targets specified by exact site indices, property names, and precise numerical values. Informative prompts use the ambiguous skeletons, in which the target is expressed as a relative modification ({increase, reduce} by {at most, at least} x% or x degrees) over a set of atoms picked out by a qualitative quantifier ({one, two, three, some, all}). A second LLM call then produces one sentence of scientific motivation for the sampled modification, which is prepended to the prompt; that call is explicitly instructed not to restate or paraphrase the modification, so the context sentence adds framing without disambiguating the target.

PropertyTolerance
Bond length, lattice length0.1 Å
Bond angle, lattice angle1.0°
Dihedral angle2.0°
Volume5.0 ų
Space group, coordinationexact match

Table B.2. Tolerances used by the deterministic comparators.

Validation and re-rolling. Each generated sentence is checked by a deterministic validator that rejects: (i) residual placeholder tokens; (ii) unresolved slash alternations; (iii) echoed template meta-language; (iv) bare X/Y/Z/% W atom letters; (v) grammar leaks in which the template’s copula is retained in front of a selector that carries its own verb (e.g. “Ca is whose current distance…”); (vi) repeated declared site indices or an atom pinned by both an index and a relational qualifier; and (vii) for bond angles, failure to enumerate three separate atom selectors, which would indicate that two qualifiers had been fused onto a single outer atom. On rejection the template is re-instantiated with freshly drawn selectors and the call is repeated, for up to four attempts in total; the failure reason and the offending sentence are logged. Prompts that exhaust all attempts are recorded and discarded.

LLM-as-Judge Evaluation Protocol

Every run is scored by the same three-stage pipeline, which consumes the prompt, the original CIF, and the modified CIF and returns a per-requirement checklist plus a binary judgement. Only Stages 1 and 3 use an LLM.

Stage 1 — Parser A single structured-output LLM call converts the prompt into an ordered list of typed Requirement objects. Each carries a property kind ({bond length, bond angle, dihedral angle, coordination, lattice length, lattice angle, volume, space group, energy}), site indices into the original structure, a target value, a relative-change encoding (absolute, exact delta, or an at-most/at-least bound in a given direction, with an optional percent flag), and a quantifier ({specific, some, all, count}). The parser sees only a compact summary of the original structure — lattice parameters, volume, and one line per site giving index, element, and fractional coordinates.

The convention is that every relative phrase in a prompt (“closest to”, “furthest from”, “within DD Å”) denotes an atom in the original structure, since the atom nearest a given anchor before modification need not be the nearest one after. The parser therefore resolves such phrases immediately into integer indices, and the downstream verifier never re-interprets prompt wording. Ties are broken by lowest index, with all tied alternatives recorded so that moving any of them counts as satisfying the requirement.

Stage 2 — Deterministic verification Each requirement is re-checked in pure Python and assigned PASS, FAIL, SKIP, or INCONCLUSIVE. All geometry uses minimum image convention, and comparisons are tolerance-aware (Table B.2).

For non-specific quantifiers, all element-matching tuples are enumerated under a neighbour cutoff retried at 4.0 → 5.0 → 6.0 Å. Writing TT for the enumerated tuples and H⊆TH \subseteq T for those satisfying the bound, some passes iff ∣H∣≥1|H| \ge1, count iff ∣H∣≥N|H| \ge N, and all iff H=T≠∅H = T \ne\varnothing; specific passes iff the parser’s tuple or a tied alternative passes. Coordination counts neighbors at the stated cutoff, defaulting to a sweep over 2.4–3.5 Å when the prompt names none; space groups are compared via SpacegroupAnalyzer at symprec = 0.1. Energy requirements are always SKIP.

A requirement is INCONCLUSIVE only when its typed fields are insufficient to run any check (missing target, delta, or direction; unresolvable space-group symbol; empty enumeration) or when a check raises, so one malformed item can never abort the pass.

Stage 3 — LLM verifier backstop Stage 3 runs only if a non-energy requirement is INCONCLUSIVE after Stage 2, and on most runs never fires. When invoked, a second LLM agent receives the prompt, the checklist, and both CIFs, and measures the structure through a sandboxed run_python tool preloaded with both pymatgen structures, the MIC helpers, the comparators of Table B.2, and the enumeration utilities. It must use the parser’s frozen indices verbatim and back every verdict with a printed boolean, emitting one [PASS|FAIL|SKIP] line per requirement.

Aggregation The final checklist is aligned one-to-one with the parsed requirements: the Stage-2 verdict is used whenever conclusive, the Stage-3 line otherwise, and an ignored objective counts as FAIL. Disagreements on conclusive items are resolved in favor of Stage 2 and logged. A run passes iff the checklist covers every non-energy requirement and none is FAIL. Failures are attributed to parse_failure, verifier_failure (incomplete coverage), a missing or unreadable CIF, or optimization_failure.

Prompts for LLM Agents for the LATHE-equipped Agent

We hereby provide the prompts for the LATHE-equipped agent described in § 2.4.2. The ConfigBuilderAgent is an agent that translates a natural-language structural requirement into a validated OptimizationConfig. It communicates with the MCP server (§ 2.4.1), and its behavior is fully determined by (i) a structured-output schema enforced on every reply, (ii) a system prompt assembled at agent-construction time, and (iii) a single per-call user prompt that hands the requirement to the model.

System prompt

The system prompt below is the concrete string the model receives. The final {schema_context} block is filled in at agent-construction time by concatenating the JSON payloads of four MCP resources.

Listing 1: System prompt for the LATHE-equipped agent.

You are an expert materials scientist and crystal structure optimizer. Your task is to convert a
    user’s natural-language requirement for modifying a crystal structure into a valid
    grad_optim OptimizationConfig.

Your output is parsed as a structured ‘AgentOutput‘ object with two fields:
    - reasoning: short explanation of your choices
    - config: the OptimizationConfig (validated against the full schema)

The schema is enforced automatically -- wrong loss names, missing required args, or malformed
    values will be rejected and you will be asked to fix them. Read the schema reference below
    carefully so you get it right on the first attempt.

CORE PRINCIPLE -- MINIMAL VIABLE CONFIG:
Build the smallest config that captures what the user EXPLICITLY asked for. The optimizer is a
    gradient method on a non-convex MLIP energy surface; every extra constraint you add narrows
    the feasible region and makes the run more likely to fail or stall. Treat each constraint as
    a real cost. When in doubt, LEAVE IT OUT -- under-constraining is recoverable (the user can
    re-prompt), but over-constraining produces silent failures that look like the toolkit is
    broken.

Specifically:
- Do NOT generalize a singular or vague reference into "all matching atoms." If the user says
    "the Si-O bond" or "some Si-O bonds," DO NOT enumerate every Si-O bond in the structure.
    Pick ONE representative bond (or the smallest set the user clearly demands) and stop.
- "some", "several", "a few", "multiple" -> 1 to 3 entries, biased toward 1. These are vague
    quantifiers, NOT instructions to constrain everything.
- Constraints implied by the requirement but not stated should usually be omitted. Example: "set
    this Si-O bond to 1.62 Angstrom" does NOT mean "also pin every other bond, angle, and the
    volume." Add only the Si-O bond loss.

Workflow:
1. If a structure file is provided and the requirement refers to specific atoms, bonds, angles,
    space groups, or other structural properties, call run_python to inspect the structure
    first. Use pymatgen to find the exact atom indices, measure current bond lengths/angles, get
    the space group number, volume, etc. Do not guess or invent numerical values -- always derive
    them from the structure.
2. Identify the relevant losses from the schema. You only author the ‘losses’ list -- the server
    derives the matching ‘validators’ automatically from your loss configs (one validator per
    property loss; an auxiliary energy validator is added only when ‘mlip_energy’ is among the
    losses). Leave ‘validators’ empty.
3. QUANTITY CHECK: re-read the user’s requirement and classify the quantifier for each
    constraint type:
- Exact number given ("two angles", "3 bonds"): the config MUST contain exactly that many
    entries.
- Vague quantifier ("some", "several", "a few", "multiple"): emit 1 to 3 entries, defaulting to
    1 unless the requirement clearly implies more. Treat "some" as "at least one example" -- NOT
    "all of them."
- "all", "every", "each" with a clearly bounded set ("all four Si-O bonds around site 0"):
    enumerate exactly that bounded set after structural inspection. If the set is unbounded or
    large (e.g. "all bonds"), ask yourself whether the user really meant a representative subset
    and default to 1-3 entries unless they were explicit about wanting all.
- No quantifier (e.g. "make the Si-O bond shorter"): emit ONE entry for a representative
    instance.
4. MINIMAL-CONFIG CHECK before emitting: for each loss in your config, ask "did the user
    explicitly ask for this?" If the answer is "implied" or "seems related," DROP IT. The config
    should map 1:1 to the user’s words, not to a comprehensive description of the structure.
5. Emit the structured output. The framework validates it automatically; if validation fails you
    will see the error and may correct it.
Rules:
- Do NOT populate the ‘validators‘ field. The server fills it in for you based on the losses.
  Leave it as an empty list.
- Use lr_schedule="cosine" whenever mlip_energy is included (energy is negative, so
  ReduceLROnPlateau crashes).
- When ‘symmetry‘ loss is present, optimizer.mode MUST be "basin_hopping" (the schema enforces
  this).
- For loss weighting (especially mlip_energy vs geometric losses), follow the guidance in the
  loss’s description in schema://losses — that is the single source of truth and may be tuned
  per deployment.
- Only include losses explicitly required by the prompt. When unsure whether a loss is needed,
  leave it out.
- structure_path will be filled in automatically — you may set it to "" or the provided path;
  do not invent a path.
- DO NOT set optimizer.num_steps or optimizer.n_hops. The server fixes num_steps at 3000 for
  gradient mode and 1000 per hop for basin_hopping, and fixes n_hops at 5. Any values you
  supply for these fields are overwritten. Tune lr / perturbation strengths instead if you
  need to adjust the search.
- For "reduce/increase a dihedral by N degrees" wording, derive the target with
  ‘derive_dihedral_target(structure, i, j, k, l, N, direction)‘ inside run_python — do NOT do
  arithmetic on the raw angle. Sign and (-180, 180) branch errors are the most common dihedral
  bug.

PRINCIPLES FOR TRANSLATING PROMPTS INTO LOSS ARGS:
1. Targets are absolute, in the schema’s units. Every numeric loss arg is the literal value the
   optimizer pulls toward — never a ratio, multiplier, or relative change. When the prompt
   expresses something relative ("shrink by 3%", "reduce the angle by 15 degrees"), use
   run_python to read the original value and compute the absolute target yourself before
   putting it in the config.

2. A loss is a point pull, not a region. The optimizer drives the structure to whatever target
   value you set, with no awareness of bounds the prompt may have imposed. Two consequences:
- For bounded prompts ("at most N%", "by at most N degrees"), aim INSIDE the bound so optimizer
  overshoot doesn’t push you out — mid-bound is a safe default.
- For change prompts ("increase X", "decrease Y"), the target must differ from the current
  measured value, otherwise the gradient is zero and nothing happens.

3. Use the audit. Call audit_config_against_prompt before optimize_structure. Treat
   ’error’-severity issues as a hard stop — fix and re-audit. Treat ’warning’-severity issues
   as likely bugs; only dismiss one if you can name a concrete reason it’s a false positive in
   your reasoning field.

--- SCHEMA REFERENCE ---
<contents from the MCP Server>

Per-call user prompt

Each call to build_config issues the single per-turn user prompt below. The <structure_path> and <requirement> fields are substituted at call time; the structure-file preamble is omitted when no path is provided. The repair-loop and audit-driven repair prompts that may follow on subsequent turns are internal control-flow artifacts triggered only when validate_config or audit_config_against_prompt returns issues, and are not part of the golden-path interface.

Listing 2: Per-call user prompt issued by `build_config.

Structure file: <structure_path>

Requirement:
<requirement>

Perform the quantity check and validator audit, then emit the structured AgentOutput. The config
    field will be validated against the full OptimizationConfig schema automatically.

Prompt for Claude Code

Below is the prompt we used to instruct Claude Code to complete the geometric operation tasks.

Listing 3: Prompt used for Claude Code.

Structure file: <structure_path>

You are given:
1. An input CIF file containing a crystal structure.
2. A modification prompt describing the desired structural change.

Your task is to modify the crystal structure according to the prompt and save the corrected
    final structure.

Environment:
- Use the Python environment with: source .venv/bin/activate
- The environment already includes ‘ase‘ and ‘pymatgen‘.
- You may write and run Python scripts to inspect, modify, and validate the structure.
- You may use the ‘temp/‘ directory for intermediate structures, scripts, logs, or other temporary files.
- If structural relaxation is needed, refer to ‘relax.py‘.

Workflow:
Follow an explicit ‘observe \rightarrow modify \rightarrow check‘ loop. If the check fails, revise the modification and repeat the ‘modify \rightarrow check‘ steps until the structure is correct.

Output requirements:
- Once the check is successful, write the final modified structure to the ‘output/‘ directory.
- The output CIF file must use the same base filename as the prompt file.
- Do not modify the original input structure.

References

  1. [1]J. O. Agada and A. Biswas. LLMs, RAG systems, and agents in crystalline materials discovery and characterization: A systematic review. MRS Bulletin, 51:481–515, 2026. doi: 10.1557/s43577-026-01057-3.DOI
  2. [3]Anthropic. Model context protocol specification. https://modelcontextprotocol.io/specification/2025-11-25, 2025. Accessed: April 2026.
  3. [4]Luis M Antunes, Keith T Butler, and Ricardo Grau-Crespo. Crystal structure generation with autoregressive large language modeling. Nat. Commun., 15(1):10570, December 2024.DOI
  4. [5]Martin Karplus Arnaud Blondel. New formulation for derivatives of torsion angles and improper torsion angles in molecular mechanics: Elimination of singularities. Journal of Computational Chemistry, 17 (9):1132–1141, 1996. doi: https://doi.org/10.1002/(SICI)1096-987X(19960715)17:9<1132::AID-JCC5>3.0.CO;2-T. URL https://onlinelibrary.wiley.com/doi/abs/10.1002/%28SICI%291096-987X%2819960715%2917%3A9%3C1132%3A%3AAID-JCC5%3E3.0.CO%3B2-T.
  5. [6]Daniil A Boiko, Robert MacKnight, Ben Kline, and Gabe Gomes. Autonomous chemical research with large language models. Nature, 624(7992):570–578, December 2023.DOI
  6. [7]Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners, 2020. URL https://arxiv.org/abs/2005.14165.
  7. [9]A. Chaves, J. G. Azadani, Hussain Alsalman, D. R. da Costa, R. Frisenda, A. J. Chaves, Seung Hyun Song, Y. D. Kim, Daowei He, Jiadong Zhou, A. Castellanos-Gomez, F. M. Peeters, Zheng Liu, C. L. Hinkle, Sang-Hyun Oh, Peide D. Ye, Steven J. Koester, Young Hee Lee, Ph. Avouris, Xinran Wang, and Tony Low. Bandgap engineering of two-dimensional semiconductor materials. npj 2D Materials and Applications, 4(1), August 2020. ISSN 2397-7132. doi: 10.1038/s41699-020-00162-4. URL http://dx.doi.org/10.1038/s41699-020-00162-4.
  8. [10]Stefano Curtarolo, Gus L. W. Hart, Marco Buongiorno Nardelli, Natalio Mingo, Stefano Sanvito, and Ohad Levy. The high-throughput highway to computational materials design. Nat. Mater., 12(3):191–201, March 2013.DOI
  9. [11]Scott Fredericks, Kevin Parrish, Dean Sayre, and Qiang Zhu. Pyxtal: A python library for crystal structure generation and symmetry analysis. Computer Physics Communications, 261:107810, April 2021. ISSN 0010-4655. doi: 10.1016/j.cpc.2020.107810. URL http://dx.doi.org/10.1016/j.cpc.2020.107810.
  10. [12]Akihiro Fujii, Yoshitaka Ushiku, Koji Shimizu, Anh Khoa Augustin Lu, and Satoshi Watanabe. Rethinking gradient-based methods: Multi-property materials design beyond differentiable targets, 2025. URL https://arxiv.org/abs/2410.08562.
  11. [15]Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Jack W. Rae, Oriol Vinyals, and Laurent Sifre. Training compute-optimal large language models, 2022. URL https://arxiv.org/abs/2203.15556.
  12. [16]Kevin Maik Jablonka, Qianxiang Ai, Alexander Al-Feghali, Shruti Badhwar, Joshua D. Bocarsly, Andres M. Bran, Stefan Bringuier, L. Catherine Brinson, Kamal Choudhary, Defne Circi, Sam Cox, Wibe A. de Jong, Matthew L. Evans, Nicolas Gastellu, Jerome Genzling, María Victoria Gil, Ankur K. Gupta, Zhi Hong, Alishba Imran, Sabine Kruschwitz, Anne Labarre, Jakub Lá la, Tao Liu, Steven Ma, Sauradeep Majumdar, Garrett W. Merz, Nicolas Moitessier, Elias Moubarak, Beatriz Mouriño, Brenden Pelkie, Michael Pieler, Mayk Caldas Ramos, Bojana Ranković, Samuel G. Rodrigues, Jacob N. Sanders, Philippe Schwaller, Marcus Schwarting, Jiale Shi, Berend Smit, Ben E. Smith, Joren Van Herck, Christoph Völker, Logan Ward, Sean Warren, Benjamin Weiser, Sylvester Zhang, Xiaoqi Zhang, GhezaI Ahmad Zia, Aristana Scourtas, K. J. Schmidt, Ian Foster, Andrew D. White, and Ben Blaisz. 14 examples of how llms can transform materials science and chemistry: a reflection on a large language model hackathon. Digital Discovery, 2(5):1233–1250, 2023. ISSN 2635-098X. doi: 10.1039/d3dd00113j. URL http://dx.doi.org/10.1039/D3DD00113J.
  13. [17]Anubhav Jain, Geoffrey Hautier, Charles J Moore, Shyue Ping Ong, Christopher C Fischer, Tim Mueller, Kristin A Persson, and Gerbrand Ceder. A high-throughput infrastructure for density functional theory calculations. Comput. Mater. Sci., 50(8):2295–2310, June 2011.DOI
  14. [18]Anubhav Jain, Shyue Ping Ong, Geoffrey Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Shreyas Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, and Kristin A Persson. Commentary: The materials project: A materials genome approach to accelerating materials innovation. APL Mater., 1(1):011002, July 2013.DOI
  15. [19]Shuyi Jia, Chao Zhang, and Victor Fung. Llmatdesign: Autonomous materials discovery with large language models. arXiv preprint arXiv:2406.13163, 2024.arxiv.org/abs/2406.13163
  16. [20]Shuyi Jia, Panchapakesan Ganesh, and Victor Fung. Electronic structure guided inverse design using generative models, 2025. URL https://arxiv.org/abs/2504.06249.
  17. [21]Rui Jiao, Wenbing Huang, Peijia Lin, Jiaqi Han, Pin Chen, Yutong Lu, and Yang Liu. Crystal structure prediction by joint equivariant diffusion, 2024. URL https://arxiv.org/abs/2309.04475.
  18. [22]Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models, 2020. URL https://arxiv.org/abs/2001.08361.
  19. [23]Filip Ekström Kelvinius, Oskar B. Andersson, Abhijith S. Parackal, Dong Qian, Rickard Armiento, and Fredrik Lindsten. Wyckoffdiff – a generative diffusion model for crystal symmetry, 2025. URL https://arxiv.org/abs/2502.06485.
  20. [24]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2017. URL https://arxiv.org/abs/1412.6980.
  21. [25]H W Kuhn. The hungarian method for the assignment problem. Nav. Res. Logist. Q., 2(1-2):83–97, March 1955.
  22. [26]Ge Lei, Ronan Docherty, and Samuel J Cooper. Materials science in the era of large language models: a perspective. Digit. Discov., 3(7):1257–1272, 2024.DOI
  23. [27]Daniel Levy, Siba Smarak Panigrahi, Sékou-Oumar Kaba, Qiang Zhu, Kin Long Kelvin Lee, Mikhail Galkin, Santiago Miret, and Siamak Ravanbakhsh. Symmcd: Symmetry-preserving crystal generation with diffusion models, 2025. URL https://arxiv.org/abs/2502.03638.
  24. [28]Turab Lookman, Prasanna V Balachandran, Dezhen Xue, and Ruihao Yuan. Active learning in materials science with emphasis on adaptive sampling using uncertainties for targeted design. Npj Comput. Mater., 5(1), February 2019.DOI
  25. [29]Andres M. Bran, Sam Cox, Oliver Schilter, Carlo Baldassari, Andrew D. White, and Philippe Schwaller. Augmenting large language models with chemistry tools. Nature Machine Intelligence, 6(5):525–535, 2024. doi: 10.1038/s42256-024-00832-8.
  26. [30]Grégoire Mialon, Roberto Dessì, Maria Lomeli, Christoforos Nalmpantis, Ram Pasunuru, Roberta Raileanu, Baptiste Rozière, Timo Schick, Jane Dwivedi-Yu, Asli Celikyilmaz, Edouard Grave, Yann LeCun, and Thomas Scialom. Augmented language models: a survey, 2023. URL https://arxiv.org/abs/2302.07842.
  27. [31]Benjamin Kurt Miller, Ricky T. Q. Chen, Anuroop Sriram, and Brandon M Wood. Flowmm: Generating materials with riemannian flow matching, 2024. URL https://arxiv.org/abs/2406.04713.
  28. [32]James Munkres. Algorithms for the assignment and transportation problems. Journal of the Society for Industrial and Applied Mathematics, 5(1):32–38, 1957. doi: 10.1137/0105003. URL https://doi.org/10.1137/0105003.
  29. [33]Ryotaro Okabe, Mouyang Cheng, Abhijatmedhi Chottratanapituk, Manasi Mandal, Kiran Mak, Denisse Córdova Carrizales, Nguyen Tuan Hung, Xiang Fu, Bowen Han, Yao Wang, Weiwei Xie, Robert J Cava, Tommi S Jaakkola, Yongqiang Cheng, and Mingda Li. Structural constraint integration in a generative model for the discovery of quantum materials. Nat. Mater., 25(2):223–230, February 2026.
  30. [34]Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffrey Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent L. Chevrier, Kristin A. Persson, and Gerbrand Ceder. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, February 2013. ISSN 0927-0256. doi: 10.1016/j.commatsci.2012.10.028. URL http://dx.doi.org/10.1016/j.commatsci.2012.10.028.
  31. [35]Pydantic Services Inc. Pydantic AI: Agent framework for building production-grade applications with generative AI, 2026. URL https://github.com/pydantic/pydantic-ai. Documentation: https://pydantic.dev/docs/ai/; accessed 2 September 2026.
  32. [36]Mayk Caldas Ramos, Christopher J. Collison, and Andrew D. White. A review of large language models and autonomous agents in chemistry. Chemical Science, 16(6):2514–2572, 2025. ISSN 2041-6539. doi: 10.1039/d4sc03921a. URL http://dx.doi.org/10.1039/D4SC03921A.
  33. [37]Benjamin Sanchez-Lengeling and Alán Aspuru-Guzik. Inverse molecular design using machine learning: Generative models for matter engineering. Science, 361(6400):360–365, 2018. ISSN 1095-9203. doi: 10.1126/science.aat2663. URL http://dx.doi.org/10.1126/science.aat2663.
  34. [38]Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools, 2023. URL https://arxiv.org/abs/2302.04761.
  35. [39]Anshuman Sinha, Shuyi Jia, and Victor Fung. Representation-space diffusion models for generating periodic materials, 2024. URL https://arxiv.org/abs/2408.07213.
  36. [41]Krit Tangsongcharoen, Teerachote Pakornchote, Chayanon Atthapak, Natthaphon Choomphon-anomakhun, Annop Ektarawong, Björn Alling, Christopher Sutton, Thiti Bovornratanaraks, and Thiparat Chotibut. Crystalgrw: Generative modeling of crystal structures with targeted properties via geodesic random walks, 2025. URL https://arxiv.org/abs/2501.08998.
  37. [42]Loup Verlet. Computer ”experiments” on classical fluids. i. thermodynamical properties of lennard-jones molecules. Phys. Rev., 159:98–103, Jul 1967. doi: 10.1103/PhysRev.159.98. URL https://link.aps.org/doi/10.1103/PhysRev.159.98.DOI
  38. [43]David J Wales and Jonathan P K Doye. Global optimization by basin-hopping and the lowest energy structures of Lennard-Jones clusters containing up to 110 atoms. J. Phys. Chem. A, 101(28):5111–5116, July 1997.
  39. [44]Xian Wang, Qun Zeng, D. H. Xu, L. Zhang, G. Jiang, and Mingli Yang. Accelerating materials discovery via AI-agent integration of large language models and simulation tools. Journal of Materials Informatics, 6(1):9, 2026. doi: 10.20517/jmi.2025.69.
  40. [45]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems 35 (NeurIPS 2022), 2022.arxiv.org/abs/2201.11903
  41. [46]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. Chain-of-thought prompting elicits reasoning in large language models, 2023. URL https://arxiv.org/abs/2201.11903.
  42. [47]Tian Xie, Xiang Fu, Octavian-Eugen Ganea, Regina Barzilay, and Tommi Jaakkola. Crystal diffusion variational autoencoder for periodic material generation, 2022. URL https://arxiv.org/abs/2110.06197.
  43. [48]Yutaro Yamada, Robert Tjarko Lange, Cong Lu, Shengran Hu, Chris Lu, Jakob Foerster, Jeff Clune, and David Ha. The ai scientist-v2: Workshop-level automated scientific discovery via agentic tree search, 2025. URL https://arxiv.org/abs/2504.08666.
  44. [49]Han Yang, Chenxi Hu, Yichi Zhou, Xixian Liu, Yu Shi, Jielan Li, Guanzhi Li, Zekun Chen, Shuizhou Chen, Claudio Zeni, Matthew Horton, Robert Pinsler, Andrew Fowler, Daniel Zügner, Tian Xie, Jake Smith, Lixin Sun, Qian Wang, Lingyu Kong, Chang Liu, Hongxia Hao, and Ziheng Lu. MatterSim: A deep learning atomistic model across elements, temperatures and pressures, 2024. URL https://arxiv.org/abs/2405.04967.
  45. [50]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In The Eleventh International Conference on Learning Representations (ICLR), 2023.arxiv.org/abs/2210.03629
  46. [51]Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning, 2020. URL https://arxiv.org/abs/2001.06782.
  47. [52]Kamer Ali Yuksel and Hassan Sawaf. A multi-ai agent system for autonomous optimization of agentic ai solutions via iterative refinement and llm-driven feedback loops, 2024. URL https://arxiv.org/abs/2412.17149.
  48. [53]Claudio Zeni, Robert Pinsler, Daniel Zügner, Andrew Fowler, Matthew Horton, Xiang Fu, Zilong Wang, Aliaksandra Shysheya, Jonathan Crabé, Shoko Ueda, Roberto Sordillo, Lixin Sun, Jake Smith, Bichlien Nguyen, Hannes Schulz, Sarah Lewis, Chin-Wei Huang, Ziheng Lu, Yichi Zhou, Han Yang, Hongxia Hao, Jielan Li, Chunlei Yang, Wenjie Li, Ryota Tomioka, and Tian Xie. A generative model for inorganic materials design. Nature, 639(8055):624–632, March 2025.DOI
  49. [54]Hengrui Zhang, Alexandru B. Georgescu, Suraj Yerramilli, Christopher Karpovich, Daniel W. Apley, Elsa A. Olivetti, James M. Rondinelli, and Wei Chen. Emerging microelectronic materials by design: Navigating combinatorial design space with scarce and dispersed data. Accounts of Materials Research, 6(6):730–741, May 2025. ISSN 2643-6728. doi: 10.1021/accountsmr.5c00011. URL http://dx.doi.org/10.1021/accountsmr.5c00011.
  50. [56]Ciyou Zhu, Richard H Byrd, Peihuang Lu, and Jorge Nocedal. Algorithm 778: L-BFGS-B. ACM Trans. Math. Softw., 23(4):550–560, December 1997.DOI
  51. [57]Nils E R Zimmermann and Anubhav Jain. Local structure order parameters and site fingerprints for quantification of coordination environment and crystal structure similarity. RSC Adv., 10(10):6063–6081, February 2020.DOI
  52. [58]Nils E. R. Zimmermann, Matthew K. Horton, Anubhav Jain, and Maciej Haranczyk. Assessing local structure motifs using order parameters for motif recognition, interstitial identification, and diffusion path characterization. Frontiers in Materials, Volume 4 - 2017, 2017. ISSN 2296-8016. doi: 10.3389/fmats.2017.00034. URL https://www.frontiersin.org/journals/materials/articles/10.3389/fmats.2017.00034.DOI
  53. [59]Alex Zunger. Inverse design in search of materials with target functionalities. Nature Reviews Chemistry, 2(4), March 2018. ISSN 2397-3358. doi: 10.1038/s41570-018-0121. URL http://dx.doi.org/10.1038/s41570-018-0121.

Paper details

vlnc:W_cvhpkc27
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents