NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RECIPE: Learning to Rank Complete Precursor Sets for Inorganic Retrosynthesis

Jing Gao, Kaipeng Zeng, Fuyuan Xia, Jian Ma, Yufeng Li, Qifeng Li, Lin Yao, Junchi YanNeurIPS 2026

TL;DR

Generative AI can dream up millions of promising new inorganic materials, but a material is useless until someone figures out how to cook it in a lab. Most machine learning models try to predict the starting chemical "ingredients" (precursors) one by one, leaving chemists to guess how to combine them into a working recipe. RECIPE flips the problem: instead of scoring isolated ingredients, it learns to directly evaluate and rank complete, variable-sized sets of precursors, dramatically boosting the odds of getting the exact synthesis recipe on the first try.

What Problem Does This Paper Address?

Imagine asking an AI for a cake recipe, and it hands you a ranked list of individual ingredients: flour (0.92), sugar (0.89), baking powder (0.85), baking soda (0.84). Should you use both baking powder and baking soda, or are they mutually exclusive substitutes? And where do you stop reading the list—after three items, or five?

This is the central bottleneck in single-step inorganic retrosynthesis—predicting the exact set of starting compounds needed to synthesize a target crystal. Because inorganic solid-state reactions lack the neat, standardized reaction templates of organic chemistry, data-driven models typically score individual precursors independently and then stitch them together using clunky probability thresholds or guesswork.

Because you rarely know how many precursors a new material requires beforehand, independent scoring creates a fundamental task mismatch. Models routinely assemble "near-miss" sets that are missing an element, include redundant extra sources, or mix incompatible alternatives. Chemists don't test isolated ingredients; they test complete recipes.

Figure 1: Precursor predictions require unknown-size set assembly. RECIPE directly ranks complete sets, distinguishing exact recipes from incomplete, over-complete, and substituted alternatives.

Methods

The authors reformulate inorganic retrosynthesis as variable-size set-level ranking and introduce RECIPE (Reranking Exact Candidate Inorganic Precursor Entries), a two-stage framework that cleanly separates finding ingredients from combining them:

  1. Precursor Candidate Generator (High Recall): Taking only chemical formulas (element identities and stoichiometric ratios) as input, two lightweight Transformer encoders represent the target and candidate precursors. Trained via standard multi-label classification, this module grabs the Top-30 candidates, filters out precursors containing non-volatile elements absent from the target, and caps the pool at 15 precursors.
  2. Complete-Set Reranker (Precision Set Scoring): This is the core novelty. From those $\le 15$ candidates, RECIPE exhaustively enumerates all combinations of sizes 2 through 5 (at most 4,928 complete sets). Each set is represented by a rich 374-dimensional set descriptor capturing holistic chemical properties—such as target-element coverage, unwanted extra elements, stoichiometric balance, and historical co-occurrence—paired with Stage-1 probability residuals. A listwise Transformer encoder then looks across all candidate sets simultaneously, trained with a listwise ranking loss and a margin penalty designed specifically to push tricky near-miss recipes down the list.
Two-stage RECIPE architecture

Datasets

  • Retrieval-Retro ("Retro"): A cleaned, standardized benchmark with a forward-looking chronological split—24,034 training and 1,842 validation reactions (published $\le$ 2017), tested on 2,558 reactions from 2018 onward.
  • Ceder Synthesis Dataset: The larger, noisier text-mined literature corpus from which Retro was derived, evaluated under the same protocol.
  • Preliminary OOD Set: A newly curated 20-compound out-of-distribution test set spanning diverse inorganic families, expert-annotated from literature.

Key Insights and Ideas

  • Recall is already solved; assembly is the real villain: On the Retro test set, RECIPE's candidate pool contains the exact ground-truth recipe 95.74% of the time. Yet when failures happen at the #1 spot, 84.8% are ranking errors, while only 15.2% come from missing a precursor. Having the right ingredients in your pantry doesn't mean you know how to combine them.
  • Domain descriptors carry the heavy lifting: Ablating the 374-D set-level descriptors causes exact-match accuracy (Combo@1) to plummet from 71.93% to 40.96%. Conversely, feeding those exact same descriptors into simple off-the-shelf scorers like Logistic Regression or XGBoost still hits ~70–70.8% accuracy! Framing the problem around set-level features matters even more than fancy neural architectures.
  • Plug-and-play gains: Slapping RECIPE’s frozen reranker directly onto the outputs of the previous state-of-the-art model (Retrieval-Retro) immediately jumps its Top-1 exact-set accuracy from 60.40% to 68.97%.

Key Results

Evaluated on Combo@k (exact precursor set found in the top $k$ predictions) and Combo MRR (Mean Reciprocal Rank, rewarding higher placement):

  • On Retro: Compared to Retrieval-Retro, RECIPE boosts Combo@1 by +11.53 points (60.40% $\rightarrow$ 71.93%), Combo@20 by +24.50 points (69.00% $\rightarrow$ 93.50%), and Combo MRR by +15.48 points (63.29 $\rightarrow$ 78.77).
  • On Ceder: RECIPE improves Combo@1 by +6.34 points (to 64.21%) and Combo@20 by +22.35 points (to 89.60%).
  • Preliminary OOD (20 cases): Retrieval-Retro hits 35.00% Combo@1 and stalls at 40.00% Combo@20 (failing completely on 12/20 targets). RECIPE starts at 55.00% Combo@1 and climbs to 85.00% Combo@20, missing only 3 targets.

Limitations and Future Work

  • Closed-vocabulary & Stage-1 bottleneck: RECIPE can only recommend precursors seen during training, and if Stage 1 misses a required ingredient, Stage 2 cannot recover it.
  • What's left out of the "recipe": Predicting which powders to mix is just step one. RECIPE operates on single-step reactions and does not yet predict multi-step pathways, thermodynamic feasibility, or crucial reaction conditions (like firing temperatures, atmospheres, or dwell times).
  • Human-in-the-loop required: Before autonomous robotic labs start mixing these predictions, expert review and safety checks remain essential.

Summary updated

BibTeX
@inproceedings{gao2026recipe,
  author = {Jing Gao and Kaipeng Zeng and Fuyuan Xia and Jian Ma and Yufeng Li and Qifeng Li and Lin Yao and Junchi Yan},
  title = {{RECIPE: Learning to Rank Complete Precursor Sets for Inorganic Retrosynthesis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=tNsRvxgwYk},
}
Figure