Editor’s introduction
Researchers developed a physics-informed retrieval-augmented generation model to plan inorganic crystal synthesis by linking thermodynamic stability with experimental methods. The model draws on a knowledge base of 13,820 experimentally verified routes, retrieving precedents based on chemical, structural, and thermodynamic similarity. It then generates synthesis pathways, precursors, and conditions, assessing feasibility through structured reasoning. A key boundary of the evidence is that routes from distinct physical regimes (e.g., hydrothermal vs. solid-state) are treated as different and not equivalent. The study demonstrates that the framework’s performance improves with expanded knowledge base entries without retraining, supporting its scalability in materials discovery.
Introduction
The integration of computational materials science and artificial intelligence has greatly expanded the space of candidate inorganic materials. High-throughput screening and generative models have populated databases such as Materials Project, OQMD, and GNoMe with materials on the order of 106. However, only a small fraction has been experimentally synthesized, leaving a major gap between computational prediction and experimental realization.
Physics-driven approaches have sought to address this gap using synthesizability metrics. Convex-hull energy and the amorphous limit provide interpretable measures of thermodynamic stability, while kinetic descriptors such as the basin of attraction and transition barrier offer complementary insights from the potential-energy landscape. Nevertheless, thermodynamic stability does not guarantee synthesis, and metastable phases can also be experimentally accessible. More importantly, these metrics do not directly provide actionable synthesis information, such as suitable precursors, temperatures, atmospheres, or processing routes.
Because such information is primarily reported in the literature as natural language, LLMs have recently been applied to synthesis planning. CSLLM and StructGPT-FT demonstrated LLM-based synthesizability classification and post hoc interpretation, whereas literature-grounded retrieval systems have shown promise for precursor recommendation and scientific reasoning. These studies indicate that LLMs can connect published synthesis knowledge to new materials, but most existing methods either frame synthesizability as a material-level classification problem or retrieve literature primarily through textual similarity.
Thus, current approaches face a complementary limitation: physics-based methods are interpretable but lack route-level experimental guidance, whereas LLM-based methods can propose routes but often provide opaque reasoning. Directly supplying full-text literature to an LLM further introduces redundant context and can obscure the association among precursors, processing conditions, and target phases. A synthesis-planning framework should therefore organize literature into structured, route-level records and retrieve precedents using physically meaningful material similarities, enabling both actionable and interpretable synthesis recommendations.
In this work, we reformulate inorganic material synthesizability from a binary classification problem, determined solely by the material itself, into a route-dependent scoring problem defined over multiple possible synthesis pathways. Building on this reformulation, we develop PIRAG-LM, a physics-informed retrieval-augmented generation language model for end-to-end inorganic crystal synthesis planning. The framework integrates three components: (i) a material-centered Structured Synthesis Knowledge Base (SSKB) containing 13,820 experimentally synthesized inorganic crystals curated from MP and ICSD, in which literature-derived synthesis information is organized around each material as route-level records; (ii) a physics-based similarity module that retrieves precedents through three complementary descriptors, i.e., chemical (CS), structural (SS), and thermodynamic (TS) similarity, ensuring retrieval grounded in physical analogies rather than textual resemblance; and (iii) a structured LLM reasoning module that proposes candidate routes, specifies precursors and processing conditions, and scores each route across thermodynamic feasibility, kinetics, and accessibility. Because every recommendation is explicitly linked to retrieved precedents and physical descriptors, the reasoning process is inherently traceable and interpretable.
Retrieval-augmented similarity framework (RASF)
The three similarity spaces provide complementary route-relevant information. CS captures similarities in elemental chemistry and coordination preferences, SS captures shared structural motifs, and TS distinguishes materials with different energetic stability despite similar chemistry or structure. Thus, chemically related oxides or structurally related perovskites may share transferable synthesis strategies, whereas metastable phases, such as nitride perovskites, may require non-equilibrium or substrate-stabilized thin-film routes.
Prediction of synthesis routes, precursors and conditions
The six method-level errors mainly involved specialized routes. Thin-film targets LaWN3 and MgMoN2 were misclassified as bulk flux-growth or solid-state routes, while Mg4Pt3H6 was not recognized as requiring diamond-anvil-cell synthesis. The remaining errors involved flux-growth or cooling-crystallization systems. Overall, PIRAG-LM performs well for common bulk routes but is less reliable when synthesis depends on thin-film geometry, crystallization control, or ultrahigh-pressure stabilization.
Precursor performance was evaluated using precursor coverage and core-precursor usability (Methods). Among the 41 method-correct cases, 26 achieved complete precursor coverage, 10 achieved 50–99% coverage, and 5 achieved below 50% coverage; thus, 36/41 cases (87.8%) reached at least 50% coverage. Core precursor sets were considered usable for 37/41 cases (90.2%). The four rejected cases involved a deficient sulfur source for EuZnGeS4, failure to recover the Li6WN4 + ZnBr2 metathesis chemistry for Zn3WN4, replacement of the elemental Cs/V/Te flux with Cs2Te3 + V for Cs3V9Te13, and a different nitrogen source and high-pressure mechanism for Sb3N5. These predictions were therefore counted as precursor errors rather than condition-prediction errors. Auxiliary-precursor matching was evaluated only for the 12 method-correct cases with experimentally identifiable route-specific additives, such as solvents, mineralizers, fluxes, ligands, or reactive media (Methods). Seven cases were matched, corresponding to 58.3%. This lower rate reflects the greater dependence of auxiliary reagents on route-specific experimental implementation.
Reaction-condition prediction was assessed for the remaining 37 materials using the interval-distance metric described in the Methods, for which overlapping predicted and reported intervals give zero error. The temperature MAE was 91.8 K. The largest deviations were observed for BeCO3(427 K) and Ba2MgH6(303 K), despite otherwise accepted method and precursor predictions, indicating that temperature transfer remains sensitive to precursor activation and high-pressure heating protocols.
The pressure MAE was 11.47 GPa and was dominated by three ultrahigh-pressure hydrides: LaB2H7 (predicted 0.01 GPa versus reported 150 GPa), LaBeH8 (5 versus 110 GPa), and CeH9 (10 versus 118–137 GPa). These errors reflect failure to identify the required pressure regime rather than ordinary variation in experimental conditions.
Excluding these three pressure-regime failures reduced the pressure MAE to 1.81 GPa for the remaining 34 materials, although MnN2 still showed a 48 GPa deviation. Thus, PIRAG-LM is reliable for most common routes and conventional precursor systems, while its main limitations involve specialized thin-film or crystallization routes and ultrahigh-pressure stabilization.
Performance enhanced by physics information and knowledge
Together, these examples demonstrate the modular extensibility of PIRAG-LM: targeted additions to physical descriptors or synthesis records can correct systematic errors without retraining, highlighting its potential for synthesis planning in more complex material systems. This retrieval-based design allows PIRAG-LM to evolve continuously alongside the growth of physical and experimental knowledge, offering a scalable foundation for AI-assisted synthesis planning.
Interpretability and evidence analysis
Interpretability is essential for synthesis planning because predictions must be traceable to evidence that researchers can verify and refine. PIRAG-LM achieves this through the material-centered SSKB and RASF: rather than retrieving text passages by semantic similarity, it retrieves previously synthesized materials through chemical, structural, and thermodynamic similarity (CS, SS, and TS). Each retrieved material is linked to route-level records, including precursors, processing conditions, and experimental constraints. Consequently, every recommendation can be traced to explicit physical precedents, explaining both why a precedent was selected and which synthesis knowledge was transferred to the target.
When asked why the material is considered synthesizable, the system reconstructs the decision from the recalled physical precedents. First, the target has a low energy above the convex hull of 0.02 eV/atom, indicating that it is close to the thermodynamic ground state. Second, the CS and SS precedents provide complementary evidence for constructing the target framework: BaFe2(P2O7)2 supports the formation of Fe–O–P units, whereas SrTi(PO4)2 and Na2ZrNi(P2O7)2 support Sr incorporation and the stabilization of related octahedral phosphate networks. Third, Ti2Ni(PO5)2 provides a kinetic precedent in which homogeneous precursor mixing followed by staged calcination produces a crystalline phosphate phase. Together, these retrieved records support a solution-assisted route involving precursor homogenization, pre-calcination, intermediate grinding and high-temperature crystallization.
The same evidence also defines the limits of this inference. None of the retrieved records directly demonstrates successful Nb(V) incorporation into the complete Sr–Nb–Fe phosphate framework or ordered Nb/Fe site occupation. The positive synthesizability judgement is therefore conditional on knowledge transferred from related systems rather than direct evidence for the target itself. In this process, RASF provides an external evidential scaffold, and the language model reasons over the retrieved material records to connect target properties, transferable synthesis knowledge and candidate routes. Claim-level CS, SS and TS labels make each step inspectable, distinguishing evidence-constrained reasoning from explanations generated solely from the model’s parametric memory.
This precedent-to-decision logic is also observed in the experimental validation cases. For BMI, retrieved Ba/Sr–Mo/W and Ba–In–M–O oxides support the use of BaCO3, MoO3 and In2O3, together with staged heating and prolonged high-temperature treatment. The experiment retained this precursor system and route logic, with the final temperature increased to 1,400 ∘C for kinetic optimization and improved phase purity. Additional detailed evidence chains for BMI, BNI, Hg[B(CN)4]2 and CoCo(CN)6 are provided in the Supplementary Information.
Discussion
In this work, we developed PIRAG-LM, a physics-informed retrieval-augmented language-model framework for inorganic crystal synthesis planning. PIRAG-LM reframes synthesizability from an intrinsic binary property into a route-dependent, evidence-grounded quantity determined by the accessibility of feasible synthesis pathways. It combines a structured synthesis knowledge base containing route-level literature records with chemical, structural, and thermodynamic descriptors to retrieve physically relevant precedents and generate candidate routes, precursor sets, conditions, difficulty assessments, and anticipated challenges. By linking each recommendation to explicit material analogues and their synthesis records, the framework provides interpretable reasoning and enables route-level diagnosis of missing knowledge, including high-pressure or thin-film-specific requirements.
Prospective synthesis of five new compounds—BMI, BNI, Hg[B(CN)4]2, CoCo(CN)6, and SrNb2Fe2(PO4)6—demonstrates that PIRAG-LM can connect precursor selection, processing conditions, and structural formation to retrieved evidence, helping translate theoretical crystal predictions into experimentally realized materials. Overall, the framework combines physical descriptors, historical synthesis knowledge, and language-model reasoning to provide a practical foundation for interpretable, route-level synthesis planning in complex inorganic materials.
Construction of the structured synthesis knowledge base
We first obtained experimentally synthesized materials from the MP database and collected their associated bibliographic records from the ICSD. Because ICSD records include theoretical studies, characterization-only reports and experimental synthesis studies, retrieved publications were screened to retain only articles reporting explicit experimental syntheses. The retained literature was processed using DeepSeek-V4, which classified synthesis-related information into structured fields, including synthesis method, precursors, temperature, pressure, atmosphere, processing sequence and reported experimental difficulties. The extracted records underwent multiple non-overlapping rounds of review by large language models. Following this automated validation, 500 material structures and their associated synthesis records were manually inspected, and records with overall correct content were incorporated into the dataset.
In addition to experimental synthesis information, the SSKB includes physical descriptors for each material. Crystal structures were converted into natural-language descriptions, and energy above the convex hull, formation energy, electronegativity and band gap were obtained from MP or calculated using Pymatgen. These experimental and physical attributes were integrated to form the SSKB used in this work. For the thin-film SSKB, substrate identity was included as an additional route-level field because of its role in determining thin-film phase formation and synthesis conditions.
Physics-informed material representations
Each element was then described by 14 elemental properties, including atomic number, Pauling electronegativity, atomic mass, periodic-table row and group, atomic radius, average ionic radius, Mendeleev number, oxidation-state statistics and three element-class indicators. The composition-weighted mean and the weighted dispersion of the 11 continuous elemental descriptors were calculated using Eqs. (2) and (3).
Together with six global composition statistics—the number of elements, compositional entropy, maximum and minimum atomic fractions, atomic-fraction range and the sum of squared atomic fractions—these quantities define the 31-dimensional CS vector in Eq. (4). Missing elemental properties were imputed using corpus medians, and all features were standardized with the imputer and scaler fitted on the SSKB corpus.
For SS and TS, structural information was obtained from the latent atomic descriptors of the pretrained MACE-MPA-0 medium foundation interatomic potential, used as a fixed encoder without task-specific fine-tuning. For a structure with N atoms, MACE generates a 256-dimensional descriptor hk for each atom k; these descriptors were averaged to obtain the crystal-level vector m in Eq. (5). This representation retains information on elemental identity, local coordination, bonding geometry and the distribution of atomic environments across the unit cell. The same encoder was applied to all 13,820 structures in the searchable index, and the resulting MACE block was standardized feature by feature using parameters fitted on the complete representation corpus.
Nearest-neighbour comparisons were performed in the original high-dimensional spaces rather than in UMAP projections. CS candidates were ranked by decreasing cosine similarity in the standardized 31-dimensional chemical space. SS candidates were ranked by increasing cosine distance in the 256-dimensional structural space, whereas TS candidates were ranked in the 261-dimensional fused structural–thermodynamic space; in both cases, the reported similarity was defined as 1 – dcos according to Eq. (9). Unless otherwise stated, the five nearest neighbours from each space were retained. The two-dimensional UMAP maps were used only for visualization and did not affect retrieval. Finally, the retrieved material identifiers were linked back to route-level SSKB records to generate the CStopN, SStopN and TStopN context files supplied to the language model, including synthesis methods, precursors, processing conditions and source evidence.
Evaluation of synthesis predictions
A method prediction was considered correct when it matched any experimentally reported route family, including solution evaporation, solid-state reaction, cooling crystallization, flux growth, RF co-sputtering, hydrothermal synthesis, mechanochemical ball milling and high-pressure synthesis. Routes representing distinct physical synthesis regimes were not treated as equivalent.
Second, core-precursor usability was evaluated as a binary material-level criterion. A predicted core set was considered usable when it could provide the required composition and reactive building units under the predicted route. Chemically equivalent alternatives were accepted, whereas sets with missing elemental sources, incompatible reaction pathways or incorrect stoichiometry were rejected.
Chemical substitutability was considered only for core-precursor usability and not for precursor coverage, which required an exact match to the experimentally reported compounds. A predicted core precursor was considered chemically substitutable when it could provide the same target-forming elements or reactive building units with compatible stoichiometry and oxidation states under the same synthesis route. The substitute also had to be compatible with the reported temperature, pressure, atmosphere and reaction medium. Substitutions were rejected if they changed the required elemental balance, introduced incompatible by-products, altered key intermediates, or required a different reaction mechanism or physical synthesis regime.
For example, replacing one soluble metal salt with another was considered acceptable when both generated the same reactive ionic species without changing the solution chemistry. By contrast, Zn3N2 + W was not considered equivalent to the experimentally used Li6WN4 + ZnBr2 precursors for Zn3WN4 because the latter involves an activated metathesis pathway. Similarly, NH3 was not considered equivalent to N2 in the high-pressure synthesis of Sb3N5 because the substitution changes both the nitrogen source and the reaction mechanism. For Cs3V9Te13, Cs2Te3+V was not treated as equivalent to an elemental Cs/V/Te flux mixture because pre-forming the Cs–Te binary modifies the accessible stoichiometry and reaction environment. These substitutions were therefore classified as core-precursor errors rather than condition-prediction errors.
Third, auxiliary-precursor matching was evaluated only when the experimental route contained identifiable solvents, mineralizers, fluxes, pH regulators, ligands or reactive media. An auxiliary prediction was considered matched when it reproduced the reported species or an equivalent chemical function under the same route. Precursor coverage and core usability were evaluated for all 41 method-correct materials, whereas auxiliary matching was evaluated for the 12 applicable cases.
Synthesis and characterization
Five target materials—BMI, BNI, Hg[B(CN)4]2, CoCo(CN)6 and SrNb2Fe2(PO4)6—were prospectively evaluated before their final experimental procedures were available to PIRAG-LM or included in the SSKB. The target CIFs and available thermodynamic descriptors were supplied as inputs. For each target, PIRAG-LM retrieved five synthesized precedents using chemical, structural and thermodynamic similarities and generated candidate plans specifying the synthesis route, precursors, processing sequence, operating conditions and anticipated difficulties. Experimental researchers selected equipment-compatible plans and optimized the operational parameters according to precursor reactivity, mixing homogeneity, intermediate-phase formation and PXRD feedback.


