MSP-LLM: A Structured Large Language Model Framework for Inorganic Material Synthesis Planning

Heewoong Noh, Gyoung S. Na, Namkyeong Lee, Chanyoung ParkNeurIPS 2026

TL;DR

AI has gotten remarkably good at dreaming up hypothetical new materials, yet figuring out how to actually cook them up in a lab remains a massive bottleneck. MSP-LLM introduces a two-stage framework using fine-tuned open-source language models to predict both the starting chemical ingredients and the exact sequence of lab operations needed to synthesize an inorganic material. By forcing the models to "think" like human chemists—categorizing material classes first and actively retaining ingredient constraints during generation—it outperforms massive proprietary LLMs and specialized retrieval systems alike.

What Problem Does This Paper Address?

Imagine having a blueprint for a revolutionary new battery material, La1.2Ca1.8Mn2O7, generated by a screening algorithm. Now, how do you actually make it?

In organic chemistry, synthesis planning relies on well-defined molecular graphs and crisp reaction rules. Inorganic solid-state chemistry is much messier: you usually only have a target chemical formula (no 3D atomic structure), and the same formula can crystallize into different polymorphs depending on how you bake, mix, or quench it.

To realize a material—a task called Material Synthesis Planning (MSP)—you have to solve two coupled puzzles:

  1. Precursor Prediction (PP): What starting powders (e.g., CaCO3, La2O3, MnO2) go into the crucible?
  2. Synthesis Operation Prediction (SOP): What sequence of physical steps (e.g., mixing $\rightarrow$ heating $\rightarrow$ mixing $\rightarrow$ shaping $\rightarrow$ sintering) turns those powders into the target?

Prior AI approaches tackled either PP or SOP in isolation, relied on rigid literature-retrieval pipelines, or leaned on closed-source LLM APIs. Nobody had established a unified, scalable framework to solve the entire inorganic MSP pipeline from composition alone.

Methods

Instead of asking one giant model to spit out an entire recipe in a single opaque leap, the authors mirror a human chemist’s workflow. They fine-tune two separate open-source LLMs (LLaMA-3.1-8B and Qwen-2.5-7B using QLoRA) and link them sequentially: the first predicts precursors, and the second designs the operational steps conditioned on those precursors.

Figure 1: Overall framework of MSP-LLM. Given a target material, MSP-LLM first predicts the precursor set (PP), and then, conditioned on the predicted precursors, generates the synthesis operation sequence (SOP), resulting in a MSP. The input–output texts above the PP and SOP LLMs illustrate example prompts used during LLM fine-tuning for each task.

What makes this work is how the models are structured during fine-tuning:

  • Material Group Decision Chain: Oxides, sulfides, and alloys require fundamentally different lab strategies. In both stages, prompts are structured so the LLM must first classify the target into one of 11 discrete material groups (e.g., 'oxide') as an intermediate token before generating precursors or operations.
  • Hierarchical Precursor Types: For the SOP stage, specific formulas contain high-level behavioral clues—for instance, any carbonate precursor usually demands an initial heating step to burn off $\text{CO}_2$. A rule-based mapper extracts high-level types (e.g., 'carbonate', 'oxide') and feeds them into the prompt as domain-specific inductive biases.
  • Precursor Constraint Factorization (PCF): Even when precursors are listed in the input prompt, standard autoregressive models tend to ignore them while decoding the operations. PCF fixes this by forcing the SOP model to re-generate the precursor types and formulas in its output sequence right before predicting the synthesis steps. Because the training loss penalizes errors on both the echoed precursors and the operations, the model's hidden decoder states are mathematically pressured to retain ingredient-specific constraints right up to the moment of action generation.

Datasets

The authors curate 10,851 real-world inorganic synthesis records from an existing literature-extracted dataset of materials science papers.

  • Refinements: Precursors are filtered to the 288 compounds appearing at least five times. Crucially, whereas the original dataset lumped thermal steps into a generic heating bucket, the authors decompose it into procedurally distinct operations, yielding seven canonical steps: mixing, drying, heating, sintering, annealing, quenching, and shaping.
  • Evaluation Splits: They test on two 8:1:1 splits—a random split (where a target formula may appear in training and test sets via different valid synthesis routes) and a harder target-disjoint split (strictly unseen target formulas).

Key Insights and Ideas

  • LLMs are lazy readers without explicit pressure: Simply putting ground-truth precursors into the SOP prompt (implicit conditioning) barely beat giving the model no precursors at all! Probing the LLM's internal hidden states revealed why: under implicit conditioning, the decoder effectively marginalizes out the specific precursors, collapsing toward an average recipe for that target. Forcing the model to echo the precursors in the output (PCF) jumped linear-probe accuracy of precursor retention by 16.4 percentage points and dramatically boosted SOP accuracy.
Figure 2: SOP performance under target- only, implicit, and explicit conditioning across two fine-tuned backbone LLMs.
  • Bigger general knowledge can be noisy: On SOP, few-shot GPT-4o-mini actually outperformed much larger frontier models like GPT-4o and GPT-5.1. Without structured fine-tuning, vast background knowledge about chemical compounds appears to act as distracting noise when trying to output strict procedural sequences.
  • Minority classes benefit from the decision chain: Even though ~85% of the dataset consists of oxides, forcing the model to predict the material group first didn't bias everything toward oxides—it actually improved operation prediction across 9 of the 11 classes, with big jumps in alloys, pyrophosphates, and sulfides.

Key Results

MSP-LLM substantially outperforms specialized retrieval baselines and few-shot frontier LLMs (GPT-4o, GPT-5.1, Claude Haiku 4.5) across the board:

  • Precursor Prediction (PP): Achieves 72.85% Top-1 and 96.36% Top-10 Exact Match on unseen materials (Split 2), beating Retrieval-Retro (78.54% Top-10) and 40-shot GPT-5.1 (86.01% Top-10).
  • Synthesis Operation Prediction (SOP): Hits 32.18% Top-10 Exact Match and an F-1 score of 0.8498 on unseen targets, nearly tripling the exact-match rate of literature retrieval (11.19%) and crushing few-shot LLMs (<8%).
  • Full MSP Pipeline: Requiring both precursors and operation sequences to match the ground truth simultaneously is brutal—single-step API LLMs score under 1.2% Top-10, and a hybrid GPT-5.1 + GPT-4o-mini pipeline reaches just 5.41%. MSP-LLM reaches 18.56% (Split 1) and 23.23% (Split 2).
  • Downstream Conditions: Plugging MSP-LLM's outputs into an off-the-shelf condition predictor estimates reaction temperatures within 134.9 °C MAE and durations within 6.7 hours MAE on unseen materials.

Limitations and Future Work

While the main text focuses primarily on establishing the two-stage composition-to-operation framework (pointing readers to the appendices for error propagation and relaxed chemical validity analyses), a few practical boundaries are clear:

  • Vocabulary & Scope: Precursor prediction is restricted to a fixed vocabulary of 288 common precursors, and SOP relies on a 7-operation solid-state canon (additionally utilizing synthesis context from source paper titles in the main SOP experiments).
  • Sequential Error Propagation: Because SOP is conditioned on the Top-1 precursor prediction at inference time, any mistake in stage one cascades into stage two.
  • Complete Lab Recipes: MSP-LLM does not natively output continuous reaction parameters like exact temperatures or heating times, though the authors show it pairs naturally with downstream condition-prediction models as a promising path toward fully autonomous self-driving labs.

Summary updated

Abstract

Material synthesis planning (MSP) remains a fundamental and underexplored bottleneck in AI-driven materials discovery, as it requires not only identifying suitable precursor materials but also designing coherent sequences of synthesis operations to realize a target material. Although several AI-based approaches have been proposed to address isolated subtasks of MSP, a methodology for solving the entire MSP task has yet to be established. We propose MSP-LLM, a structured LLM-based framework that formulates MSP as a two-stage process composed of two constituent subproblems: precursor prediction (PP) and synthesis operation prediction (SOP). Our approach introduces a discrete material class as an intermediate decision variable that organizes both tasks into a chemically consistent decision chain. For SOP, we further incorporate hierarchical precursor types as synthesis-relevant inductive biases and employ precursor constraint factorization that preserves precursor-related information in the autoregressive decoding state. Extensive experiments show that MSP-LLM consistently outperforms existing methods on both PP and SOP, as well as on the MSP task, demonstrating an effective and scalable framework with practical potential for autonomous MSP. The source code for MSP-LLM is available at https://github.com/HeewoongNoh/MSP-LLM.
BibTeX
@inproceedings{noh2026msp,
  author = {Heewoong Noh and Gyoung S. Na and Namkyeong Lee and Chanyoung Park},
  title = {{MSP-LLM: A Structured Large Language Model Framework for Inorganic Material Synthesis Planning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uYucJYHAGU},
}
Figure