NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Matching-while-Decoding: Enhancing Template-Free Retrosynthesis via Explicit Structural Alignment

Kaipeng Zeng, Jiarui Shen, Yi Jiang, Shiyue Wang, Lin Yao, Tong Zhu, Junchi Yan

NeurIPS page · Open on the map

Category: AI for Molecules, Materials & Genomics › Chemical Reaction Modeling · Type: new method · Keywords: retrosynthesis prediction, graph-to-sequence, structural alignment, single-step retrosynthesis, USPTO benchmarks

Summary

Matching-while-Decoding introduces a graph-to-sequence architecture that directly aligns generated reactant tokens to the input product graph during decoding, achieving state-of-the-art retrosynthesis accuracy and robustness across benchmarks.

Explained to a 5-year-old

The paper helps computers figure out what chemicals you need to make a target molecule, like a recipe for a cake. It does this by directly matching parts of the target to the pieces that become the reactants, which makes the predictions more reliable. The method uses a step-by-step generation that looks at the whole molecule at once, so it can handle complex changes. When tested on many examples, it gives better and more consistent results than older methods. This can make planning chemical reactions easier and safer for designing new medicines.

Explained to a 5-year-old, longer

Computers can try to guess what chemicals you need to make a specific molecule, which is useful for creating new medicines. Usually, they look at the molecule as a sequence of letters, but this can miss the shape of the molecule. The paper says that chemical reactions usually keep most of the original shape, like a puzzle piece staying the same. Existing methods try to match the pieces indirectly, but they can be wrong if the matching is off. The new idea is to match the pieces directly while generating the answer, so the shape is kept correctly. It uses a kind of step-by-step writing that looks at the whole molecule at the same time. This helps the computer understand how each part of the target relates to the parts that will become the reactants. The approach also uses a special mask to make the training faster and more efficient. When the method is tested on many known reactions, it performs better than older methods. It works especially well when the computer tries different ways to guess the answer. The result is a more reliable tool for planning chemical syntheses, which can speed up drug discovery. Overall, it gives chemists a more trustworthy assistant for figuring out how to build complex molecules.

For a technical reader

The paper introduces a new paradigm called Matching-while-Decoding that directly aligns generated reactant tokens to the input product graph during decoding, improving structural preservation in retrosynthesis predictions. It builds a graph-to-sequence model with a hierarchical autoregressive formulation and a custom causal attention mask, enabling efficient single-pass parallel training. Experiments on the USPTO-50K, USPTO-MIT, and USPTO-FULL benchmarks show that the approach achieves competitive accuracy and scales well with test-time augmentation, setting new state-of-the-art results on USPTO-MIT and augmented USPTO-FULL. By providing direct structural supervision instead of indirect sequence alignment, the method reduces sensitivity to traversal heuristics and offers more robust predictions. This makes the system a reliable foundation for automated synthesis planning in pharmaceutical design, where dependable single-step retrosynthesis is crucial.

Problem

Predicting single-step retrosynthetic reactions without predefined templates is challenging because models must preserve molecular scaffolds, yet current approaches rely on indirect sequence alignment that is fragile to traversal errors.

Method

The approach uses a graph-to-sequence model that maps generated reactant tokens back to the input product graph during decoding, providing direct structural supervision instead of indirect sequence alignment. It employs a hierarchical autoregressive formulation with a custom causal attention mask for efficient single-pass parallel training.

Results

The approach achieves highly competitive canonical accuracy and scales well with test-time augmentation, setting new state-of-the-art results on USPTO-MIT and augmented USPTO-FULL.

Contributions

It introduces the Matching-while-Decoding paradigm that provides direct structural supervision for retrosynthesis, along with a hierarchical autoregressive formulation and efficient training mask, delivering improved accuracy and robustness across benchmarks.

Practical relevance

It provides a reliable foundation for automated synthesis planning in pharmaceutical design, enabling more dependable retrosynthetic predictions.

Research questions this paper is counted under

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