# 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 Yan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149027) · [OpenReview](https://openreview.net/forum?id=tNsRvxgwYk) · [Open on the map](../papers.html#p149027)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Chemical Reaction Modeling](../pgroup/378.md) · Type: new method · Keywords: inorganic retrosynthesis, set-level ranking, precursor generation, complete precursor sets, chemical synthesis planning

## Summary
RECIPE introduces a target-conditioned framework that separates precursor recall from set-level reranking to improve ranking of complete precursor sets for inorganic retrosynthesis.

## Explained to a 5-year-old
Scientists want to figure out what ingredients you need to make a chemical. Usually they guess one ingredient at a time, but that can be wrong. This paper makes a new way to guess groups of ingredients together, so they get the right set more often. It helps chemists plan making chemicals faster. The new method checks many possible groups and picks the best one.

## Explained to a 5-year-old, longer
When chemists want to make a new chemical, they need to know what smaller pieces to start with. The usual way is to look at each piece one by one and pick the most likely ones. But sometimes picking the right pieces one at a time doesn't give the exact set needed. This can lead to missing pieces or having too many extra pieces. The paper introduces a new idea that treats the whole set of pieces as one problem. First, it makes a big list of possible pieces that could work. Then it looks at many possible groups of those pieces and scores each group. The best group is chosen as the answer. This two-step process separates finding candidates from picking the best set. By focusing on the whole set, the method gets the correct pieces more often. It also reduces the need for chemists to manually check many wrong combinations. The result is a faster and more reliable way to plan chemical synthesis.

## For a technical reader
RECIPE is a target-conditioned framework that separates precursor recall from set-level reranking. It first generates a high-recall pool of candidate precursors using formula-level compatibility, then scores variable-size precursor sets directly. This decoupling allows independent optimization of recall and ranking quality. On the Retrieval-Retro benchmark, the reranker improves Combo@1, Combo@20 and Combo MRR by large margins. The approach reduces manual inspection effort in inorganic synthesis planning.

## Problem
Many data-driven retrosynthesis systems rank individual precursors and then use heuristics to assemble complete sets, which can be inaccurate when the true set size is unknown, leading to incomplete or over-complete near-miss sets. This mismatch makes it difficult to reliably recover the correct complete precursor set in a single step.

## Method
The approach reformulates the task as variable-size set-level ranking, using a precursor candidate generator that learns formula-level compatibility to create a high-recall pool, and a complete-set reranker that directly scores variable-size candidate sets. This separation allows optimizing precursor recall and final set ranking independently.

## Results
The generator improves Combo@20 from 69.00 to 72.75, and the reranker raises Combo@1 to 71.70, Combo@20 to 89.82, and Combo MRR to 77.43 on the Retrieval-Retro benchmark. An out-of-distribution evaluation also shows consistent improvements.

## Contributions
The paper reformulates retrosynthesis as set-level ranking, proposes a target-conditioned framework that decouples precursor recall from set scoring, and demonstrates substantial gains on the Retrieval-Retro benchmark. It also provides an out-of-distribution evaluation confirming the benefits of set-level optimization.

## Practical relevance
By improving the reliability of complete precursor set recovery, the work can reduce the manual inspection burden in inorganic synthesis planning, making data-driven retrosynthesis more practical.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149027)
