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 2026
Abstract. Single-step retrosynthesis prediction serves as the core operational unit for automated synthesis planning and remains a fundamental computational challenge in pharmaceutical design. While a critical prior in organic chemistry is that chemical reactions typically preserve the majority of the molecular scaffold, current template-free deep learning models struggle to effectively exploit this characteristic. Existing methods attempt to exploit this by minimizing sequence-level edit distance through carefully chosen graph traversal orders. However, this structural correspondence is only indirectly induced and remains highly sensitive to imperfect traversal heuristics, which limits its effectiveness for complex transformations. To address this limitation, we introduce the Matching-while-Decoding paradigm, replacing implicit sequence alignment with direct structural supervision. We operationalize this paradigm within a graph-to-sequence architecture that explicitly maps generated reactant tokens back to the input product graph during decoding. Furthermore, our hierarchical autoregressive formulation utilizes a custom causal attention mask to enable highly efficient, single-pass parallel training. Extensive experiments across the USPTO-50K, USPTO-MIT, and USPTO-FULL benchmarks reveal a critical accuracy and robustness trade-off in existing methodologies, where models either over-rely on augmentation or fail to leverage it. Our approach uniquely resolves this bottleneck by delivering highly competitive canonical accuracy while scaling exceptionally well with test-time augmentation, establishing new state-of-the-art records on USPTO-MIT and augmented USPTO-FULL. By providing this balanced stability across diverse inference protocols, our approach emerges as a highly promising foundation for dependable single-step retrosynthesis prediction.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper introduces MatchRetro: a single-step retrosynthesis method where implicit sequence alignment done in existing work is replace via a specialized supervision signal. Experiments show promising performance across varying scales of USPTO-derived benchmarks.
On the positive side, reviewers considered MatchRetro to be well-motivated and reasonably designed, showing good performance across several USPTO-based datasets. However, they also highlighted several concerns:
- further ablations are needed to understand how different constraints and training phases contribute to final performance; reviewers believe that, in the current form, it is hard to say how much of the accuracy gain can be attributed to headline contributions of the work, vs other details
- most improvements are in top-k accuracy for larger ks; while this does not lessen the usefulness of the contribution, some reviewers found this effect puzzling, asking for further analysis of why that is
- reviewers considered some details of the baseline comparisons as not fully clear (e.g. which results were copied vs recomputed, which baselines use TTA, how were the baselines chosen, etc); they thought this weakens the claims made by authors, especially as also some more recent baselines were not compared to
In their initial ratings, all reviewers voted to accept this work, albeit all in a borderline way. The final decision will therefore need to depend on further author-reviewer discussion, where I would encourage authors to provide a rebuttal to the reviewers' concerns, in particular the main three ones outlined above. Ideally, this would also include additional ablation results.
Final justification
During rebuttal, authors responded to most issues raised by reviewers, in particular providing useful ablations. Reviewers did not meaningfully engage back, but were generally happy with the rebuttal, which seems to have pushed things in the right direction.
Given the generally positive sentiment from the initial reviews, combined with a useful rebuttal, I recommend acceptance. I invite authors to carefully incorporate the new results into the paper.
Read meta-review
Meta-review
This paper introduces MatchRetro: a single-step retrosynthesis method where implicit sequence alignment done in existing work is replace via a specialized supervision signal. Experiments show promising performance across varying scales of USPTO-derived benchmarks.
On the positive side, reviewers considered MatchRetro to be well-motivated and reasonably designed, showing good performance across several USPTO-based datasets. However, they also highlighted several concerns:
- further ablations are needed to understand how different constraints and training phases contribute to final performance; reviewers believe that, in the current form, it is hard to say how much of the accuracy gain can be attributed to headline contributions of the work, vs other details
- most improvements are in top-k accuracy for larger ks; while this does not lessen the usefulness of the contribution, some reviewers found this effect puzzling, asking for further analysis of why that is
- reviewers considered some details of the baseline comparisons as not fully clear (e.g. which results were copied vs recomputed, which baselines use TTA, how were the baselines chosen, etc); they thought this weakens the claims made by authors, especially as also some more recent baselines were not compared to
In their initial ratings, all reviewers voted to accept this work, albeit all in a borderline way. The final decision will therefore need to depend on further author-reviewer discussion, where I would encourage authors to provide a rebuttal to the reviewers' concerns, in particular the main three ones outlined above. Ideally, this would also include additional ablation results.
Final justification
During rebuttal, authors responded to most issues raised by reviewers, in particular providing useful ablations. Reviewers did not meaningfully engage back, but were generally happy with the rebuttal, which seems to have pushed things in the right direction.
Given the generally positive sentiment from the initial reviews, combined with a useful rebuttal, I recommend acceptance. I invite authors to carefully incorporate the new results into the paper.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper addresses the single-step retrosynthesis prediction problem in chemical science. Their method MatchRetro jointly predicts during autoregressive generation reactant token and a label that map the input product graph. This is motivated by their observation that template-free sequence-based methods exploit the strong structural prior of retrosynthesis. They argue this implicit alignment is sensitive to traversal heuristics and breaks down on complex transformations. The model factorizes per-step prediction into (i) semantic token prediction, (ii) a binary leaving-group classifier, and (iii) a structural matching softmax over product nodes. Training is two-stage (pretraining on graph-to-SMILES of non-reaction molecules, then unified reaction fine-tuning). Inference adds deterministic structural constraints (node occupancy, atom-type matching) for chemical validity, plus a reranking scheme.
Strengths and weaknesses
Strengths
- The framing is a clearly articulated insight. The empirical motivation in Fig. 3 (over 30% of RSmiles-aligned reactions still have atom-map edit distance > 8, with leaving groups making it worse) substantiates the claim that traversal-based alignment leaves real residual discrepancy.
- The paper evaluates three benchmarks and explicitly separates canonical from augmented inference, which is more rigorous than the common practice of reporting only the best protocol. The observation that baselines like EditRetro, RSmiles re-rank very differently under canonical vs. TTA inference is a useful. Re-running baselines under a unified protocol is alos appreciated.
Weaknesses
Major
-
The central scientific claim is that explicit structural matching is the source of the benefit. Yet there is no experiment isolating the matching mechanism. Critical missing ablations include the same EGAT+ graph-to-sequence backbone without the matching head / provenance prediction, removing the inference-time deterministic constraints to see how much of the gain is from the learned alignment vs. the hard-coded validity masking. As written, the headline causal claim "explicit structural alignment provides a complementary inductive bias" is not substantiated by a controlled experiment.
-
The empirical SOTA claims are weaker than the abstract implies: The abstract claims "new state-of-the-art records on USPTO-MIT and augmented USPTO-FULL." On USPTO-50K canonical, NAG2G beats MatchRetro at top-1 (55.1 vs 54.0); under TTA, EditRetro dominates top-1 (60.8 vs 55.9). On USPTO-FULL canonical, UAlign leads at all k. The genuinely best results are top-k (k>=3) under specific protocols and round-trip metrics. Top-1 accuracy is the metric that matters most for synthesis planning i guess and MatchRetro is rarely the top-1 leader.
-
The NP-hardness theory is disconnected from the method and somewhat overstated as motivation. This is a reasonable formalization, but it characterizes a problem that prior methods (RSmiles/UAlign) solve heuristically and offline, not at inference, so the practical relevance to runtime is limited. MatchRetro sidesteps it, so the hardness result motivates "don't do alignment via traversal search" but does not validate that explicit per-token matching is the right alternative.
Minor
- "Doubles the effective sequence length" cost is asserted, not benchmarked against the accuracy gain.
- Case studies (Appendix F.5) looks anecdotal and cherry-picked-by-experts: They are nicely presented, but two expert-curated examples where favorable predictions appear at ranks 1-25 are illustrative at best, not evidence of multi-step planning performance.
- Fig. 1 is dense and hard to parse without heavy cross-referencing.
Questions
-
Add a controlled ablation table that isolates the matching mechanism At minimum report, on USPTO-50K canonical (and ideally USPTO-MIT) Soem of the useful ablations could be (a) the same EGAT graph-to-sequence backbone with the matching head and provenance supervision removed (b) the full model but with the inference-time deterministic constraints of Appendix E.2 disabled, to separate the learned alignment from the hard validity masking.
-
Ablate the model without DFS positional embeddings. Report top-1/top-3/top-5 exact-match and round-trip for each row. It could be intersting to see perturbation in a controlled fraction (e.g., 5/10/20%) of training-set atom maps and report degradation in top-k and round-trip vs. an alignment-free baseline.
-
If possible report multi-seed variance (>=3 seeds mean) on the headline numbers.
Limitations
The authors include an explicit Limitations subsection (Sec. 5) and a Broader Impacts appendix (Appendix H), which is appropriate. They acknowledge two real limitation (1) reduced tolerance to noisy atom-mapping annotations (a direct consequence of supervised alignment), and (2) the computational cost of doubling effective sequence length and per-step output dimension.
However, neither limitation is quantified.
Final justification
Updated contribution type.
Formatting concerns
NA
3 comments
Supplementary Ablation Study
Existing alignment-aware retrosynthesis methods primarily exploit product–reactant correspondence during target construction, while MatchRetro further introduces explicit atom-provenance prediction to model such correspondence during decoding. To disentangle the roles of implicit alignment and explicit provenance supervision, we independently enable/disable these two components.
top- Acc.
| Implicit alignment | Explicit alignment | Training aug | TTA | Top-1 | Top-3 | Top-5 | Top-10 |
|---|---|---|---|---|---|---|---|
| (53.61, 0.35) | (77.84, 0.18) | (85.06, 0.20) | (91.20, 0.26) | ||||
| (53.23, 0.21) | (77.01, 0.19) | (84.04, 0.23) | (90.18, 0.39) | ||||
| (49.06, 0.28) | (68.31, 0.72) | (73.07, 0.65) | (76.01, 0.71) | ||||
| (48.13, 0.32) | (70.15, 0.19) | (77.41, 0.27) | (83.65, 0.26) | ||||
| (45.64, 0.34) | (65.72, 0.47) | (72.31, 0.58) | (79.08, 0.57) | ||||
| (55.80, 0.22) | (79.66, 0.27) | (86.59, 0.12) | (92.60, 0.23) | ||||
| (55.06, 0.25) | (79.05, 0.28) | (86.09, 0.21) | (92.17, 0.24) | ||||
| (49.33, 0.21) | (69.97, 0.56) | (75.71, 0.73) | (79.90, 0.80) | ||||
| (44.50, 0.46) | (68.23, 0.38) | (76.17, 0.32) | (82.69, 0.29) | ||||
| (45.60, 0.30) | (66.04, 0.52) | (72.77, 0.62) | (79.45, 0.66) |
top- round trip
| Implicit alignment | Explicit alignment | Training aug | TTA | Top-1 | Top-3 | Top-5 | Top-10 |
|---|---|---|---|---|---|---|---|
| (81.84, 0.15) | (75.40, 0.31) | (70.83, 0.54) | (63.21, 0.80) | ||||
| (81.87, 0.08) | (74.89, 0.27) | (70.10, 0.37) | (62.09, 0.56) | ||||
| (77.95, 0.22) | (68.02, 0.24) | (61.92, 0.38) | (51.07, 0.75) | ||||
| (71.15, 0.45) | (58.77, 1.14) | (51.34, 1.53) | (40.81, 1.61) |
The results demonstrate the complementary roles of implicit alignment and explicit provenance modeling. Starting from the correspondence-unaware variant, introducing either alignment mechanism substantially improves performance, highlighting the importance of incorporating product–reactant correspondence into template-free retrosynthesis. For the explicit-only variant, we remove training-time SMILES augmentation because the fixed canonical target sequence otherwise introduces inconsistent correspondence supervision between randomized inputs and provenance labels. In contrast, implicit alignment naturally constructs view-consistent targets for augmented SMILES inputs, allowing the corresponding model to benefit from training augmentation.
Building upon the mature implicit-alignment pipeline, adding explicit provenance prediction further improves the final model. Compared with the implicit-only variant, explicit provenance consistently improves performance across evaluation settings, including stronger gains on canonical Top-5/Top-10 accuracy and improved early-rank retrieval under TTA. These results indicate that explicit atom-level correspondence provides additional model-level supervision beyond target-level alignment, enabling the decoder to better utilize structural correspondence during autoregressive generation.
We further observe that training augmentation interacts with explicit provenance learning. Removing augmentation improves canonical inference for the explicit-only variant because the model learns correspondence under a fixed input representation, but reduces robustness to randomized SMILES views, leading to weaker TTA performance. This observation suggests that implicit alignment plays an important role in making augmentation compatible with explicit provenance supervision by maintaining consistent input–target correspondence across different SMILES representations.
Overall, these results support our positioning that MatchRetro is a complementary extension of alignment-aware retrosynthesis: implicit alignment facilitates target construction, whereas explicit provenance modeling introduces an additional model-level correspondence signal for autoregressive generation.
Re:review
Thanks to the authors for the rebuttal. I will keep my score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this work, the authors presented a new graph-to-SMILES based single-step retrosynthesis prediction method by generating SMILES tokens and provenance (positional embedding) tokens, which indicate a given token is a leaving group, semantic token, or atoms. The authors suggested the matching-while-decoding scheme that decodes SMILES and positional tokens that match a product with a reactant simultaneously based on the input graph of a product. The basic assumption of the method is that the quality of retrosynthesis prediction will be improved by predicting if a predicted atom is preserved in the product or absent. The SMILES tokens and provenance tokens were formulated in a factorized form. The training was performed in a two-stage manner. First pretraining was performed with molecules themselves. After pre-training, fine-tuning was performed with actual reaction data. The training was performed with the standard USPTO databases and evaluted with the USPTO databases. The problem formulation has novel contribution to some extent. The comparison with existing baselines shows competitive or near best performance among the baselines. However, the comparison are not extensive and missing some important recent models, such as RSGPT, RetroExplainer, RETRO SYNFLOW , ReactSeq, Graph2Edits and so on. Without more extensive comparions, the claimed "state-of-the-art" performance in abstract is too broad and cannot be justified.
Strengths and weaknesses
Strengths:
- The concept of joint prediction of SMILES tokens and positional embedding, provenance tokens and problem formulation has novelty.
- The performance of the method is competitive and near best among the compared baseline models that were trained with the standard USPTO training set.
- Hierarchical autoregressive generation scheme may help develop other related models.
Weaknesses:
- The comparison are not extensive and missing some important recent models, such as RSGPT, RetroExplainer, RETRO SYNFLOW , ReactSeq, Graph2Edits and so on. Without
- The benchmarks are not consistent. TTA was performed only for the subset of baseline models in Table 1, but the reason is not clearly stated.
- Similarly, in Table 2 and Table 3, only the the subset of models were tested, but the reason is not clearly stated.
- Some claims are too broad. The authors claim new "state-of-the-art" for USPTO-MIT and USPTO-FULL, but the results are not always the true. For USPTO-FULL, and 50K, the performance is not SOTA for k=1. Thus, the authors claims should be significantly narrowed.
- The claim of "we introduce an explicit structural-alignment formulation for template-free retrosynthesis prediction" is also overstatement. The concept of explicit structural-alignment formulation was used in other methods such as UAlign, RSmiles, NAG2G, EditRetro and etc. Thus, the contribution claim should be narrowed down.
Questions
- Can the authors clarify which baseline numbers are copied, retrained, or re-evaluated, and provide a same-split comparison for the closest baselines on all claimed-SOTA benchmarks?
- Can authors clarify why not all methods were compared in all Tables consistently, Table 1, 2, and 3? Especially in Table 3, it only compares with a subset of the baseline methods.
- Smilar to pt. 2, why were not all methods used in the TTA setting of Table 1?
- How much using provenance tokens helped improving prediction accuracy? Is it really essential or marginal?
- What if training set augmentation and synthetic reaction data are used? would it lead to better performance?
Limitations
yes
Formatting concerns
No
3 comments
Rebuttal
In the following rebuttal, the relevant ablation experiment tables report the mean and variance across five random seeds, in the form of (mean, std).
W1:
We thank the reviewer for these suggestions. We will cite and discuss RSGPT, ReactSeq, RetroExplainer, and RetroSynFlow in the revised Introduction. However, we do not include their reported numbers in the main quantitative comparison because their training or evaluation protocols are not directly comparable to ours. RSGPT and ReactSeq rely on substantial external pretraining (approximately 10 billion samples and 15 million molecules, respectively), and their released materials do not provide benchmark-matched configurations for reproducible from-scratch training. RetroExplainer evaluates decomposed reaction actions rather than exact reconstructed reactant SMILES, with different handling of stereochemical and aromatic transformations. RetroSynFlow evaluates graph connectivity after discarding stereochemical information, which is inconsistent with our stereochemistry-aware exact precursor matching. We therefore add Graph2Edits as a quantitative baseline because it reconstructs reactant SMILES and supports comparable exact matching.
W5:
We thank the reviewer for pointing out this ambiguity. We agree that alignment information has been explored in prior works. Our claim specifically refers to introducing explicit atom-provenance prediction into stereochemistry-aware autoregressive SMILES generation. UAlign and RSMILES exploit alignment guidance to construct easier product–reactant generation targets and reduce transformation distance, which we refer to as implicit alignment in this paper. Building upon such alignment-guided target construction, MatchRetro further introduces explicit atom-provenance prediction to model the one-to-one correspondence between generated atoms and product atoms during decoding. NAG2G also models explicit atom correspondence, but its graph action representation does not directly support stereochemistry-aware SMILES generation. We will narrow the claim accordingly.
Q1:
We thank the reviewer for raising this concern. All three benchmarks follow widely adopted official splits; therefore, most results are directly reported from prior works. Re-evaluation is performed when the training setting is aligned but TTA results are unavailable or TTA augmentation protocols differ (UAlign on USPTO-50K; RSmiles, EditRetro, and UAlign on USPTO-FULL). Retraining is conducted when additional factors beyond the benchmark setting need to be removed, including external pretraining (RSmiles and EditRetro on USPTO-50K) and data filtering rules (UAlign on USPTO-MIT). Due to reproduction cost, these additional evaluations are limited to competitive baselines; details are provided in Appendix F.1.
Q2 & W2:
The inconsistent baseline coverage across tables mainly results from differences in metric availability and the reproducibility of existing methods. As summarized in Appendix Table 6, the retrosynthesis literature contains a large number of representative baselines, but exhaustive reproduction across all benchmarks is challenging, especially for large-scale datasets such as USPTO-MIT and USPTO-FULL. We therefore follow common practice by reporting published results when available and reproducing competitive recent methods when their implementations and training settings allow fair comparison. As described in Appendix F.1, we reproduce several recent strong baselines (e.g., UAlign, EditRetro, and RSmiles) under matched evaluation protocols, while retaining reported results for earlier methods whose performance differences are unlikely to affect our conclusions.
For Table 3, the limited baseline coverage is due to the additional requirement of round-trip evaluation, which requires access to the generated top-k predictions rather than only reported accuracy numbers. Since many methods do not provide such predictions or evaluation results, prior studies [1, 2, 3] typically compare round-trip accuracy on a subset of representative competitive methods. Following this practice, we build our comparison upon the UAlign evaluation protocol and further include strong recent baselines such as RSmiles and EditRetro.
Q3 & W3:
TTA refers to random-SMILES inference augmentation and prediction ensembling. It is only applicable to models whose predictions depend on SMILES enumeration; for permutation-invariant graph-based models, randomized SMILES represent the same molecular graph and therefore do not introduce additional inference diversity. We thus report TTA results only for applicable competitive baselines with available implementations or reported results. As discussed above, older baselines with large performance gaps are not exhaustively reproduced. We additionally provide NAG2G's TTA top- accuracy on USPTO-50k below, while the checkpoints of it on USPTO-MIT and USPTO-FULL are not provided.
| top-1 | top-3 | top-5 | top-10 |
|---|---|---|---|
| 56.20 | 78.27 | 85.48 | 91.65 |
Q4:
Provenance tokens are a model-level mechanism that complements implicit alignment-guided supervision by explicitly exposing atom-level correspondence during SMILES generation. Removing them eliminates explicit matching and leaving-group prediction, leading to consistent performance changes (results above). This shows that provenance modeling provides additional structural grounding beyond the standard generation framework. The ablation keeps the alignment supervision for target construction and only removes explicit provenance prediction, isolating its contribution.
| top- Acc. | 1 | 3 | 5 | 10 |
|---|---|---|---|---|
| Full | (53.61, 0.35) | (77.84, 0.18) | (85.06, 0.20) | (91.20, 0.26) |
| w/o provenance | (53.23, 0.21) | (77.01, 0.19) | (84.04, 0.23) | (90.18, 0.39) |
| Full + TTA | (55.80, 0.22) | (79.66, 0.27) | (86.59, 0.12) | (92.60, 0.23) |
| w/o provenance + TTA | (55.06, 0.25) | (79.05, 0.28) | (86.09, 0.21) | (92.17, 0.24) |
| top- round trip | 1 | 3 | 5 | 10 |
|---|---|---|---|---|
| Full + TTA | (81.84, 0.15) | (75.40, 0.31) | (70.83, 0.54) | (63.21, 0.80) |
| w/o matching + TTA | (81.87, 0.08) | (74.89, 0.27) | (70.10, 0.37) | (62.09, 0.56) |
Q5:
Training-time SMILES augmentation is already considered in our experiments; removing it decreases performance (results above), confirming its benefit. Applying TTA without augmentation-aware training does not further improve performance, likely due to the mismatch between randomized and canonical SMILES distributions. Competitive baselines (e.g., UAlign, RSMILES, EditRetro) also use augmentation, ensuring fair comparison. Synthetic reaction generation is beyond our scope, as generating reliable chemically valid reactions remains challenging.
| top- | 1 | 3 | 5 | 10 |
|---|---|---|---|---|
| w/o TTA | (50.36, 0.17) | (72.44, 0.50) | (79.62, 0.62) | (86.65, 0.61) |
| with TTA | (42.71, 0.58) | (66.87, 0.65) | (75.31, 0.35) | (82.66, 0.48) |
Reference
[1] Wan, Yue, et al. "Pushing the Limits of End-to-End Retrosynthesis Transformer." ICML 2022
[2] Zeng, Kaipeng , et al. "Ualign: pushing the limit of template-free retrosynthesis prediction with unsupervised SMILES alignment." Journal of Cheminformatics
[3] Han, Yuqiang , et al. "Retrosynthesis prediction with an iterative string editing model." Nature Communications
Supplementary Ablation Study
Existing alignment-aware retrosynthesis methods primarily exploit product–reactant correspondence during target construction, while MatchRetro further introduces explicit atom-provenance prediction to model such correspondence during decoding. To disentangle the roles of implicit alignment and explicit provenance supervision, we independently enable/disable these two components.
top- Acc.
| Implicit alignment | Explicit alignment | Training aug | TTA | Top-1 | Top-3 | Top-5 | Top-10 |
|---|---|---|---|---|---|---|---|
| (53.61, 0.35) | (77.84, 0.18) | (85.06, 0.20) | (91.20, 0.26) | ||||
| (53.23, 0.21) | (77.01, 0.19) | (84.04, 0.23) | (90.18, 0.39) | ||||
| (49.06, 0.28) | (68.31, 0.72) | (73.07, 0.65) | (76.01, 0.71) | ||||
| (48.13, 0.32) | (70.15, 0.19) | (77.41, 0.27) | (83.65, 0.26) | ||||
| (45.64, 0.34) | (65.72, 0.47) | (72.31, 0.58) | (79.08, 0.57) | ||||
| (55.80, 0.22) | (79.66, 0.27) | (86.59, 0.12) | (92.60, 0.23) | ||||
| (55.06, 0.25) | (79.05, 0.28) | (86.09, 0.21) | (92.17, 0.24) | ||||
| (49.33, 0.21) | (69.97, 0.56) | (75.71, 0.73) | (79.90, 0.80) | ||||
| (44.50, 0.46) | (68.23, 0.38) | (76.17, 0.32) | (82.69, 0.29) | ||||
| (45.60, 0.30) | (66.04, 0.52) | (72.77, 0.62) | (79.45, 0.66) |
top- round trip
| Implicit alignment | Explicit alignment | Training aug | TTA | Top-1 | Top-3 | Top-5 | Top-10 |
|---|---|---|---|---|---|---|---|
| (81.84, 0.15) | (75.40, 0.31) | (70.83, 0.54) | (63.21, 0.80) | ||||
| (81.87, 0.08) | (74.89, 0.27) | (70.10, 0.37) | (62.09, 0.56) | ||||
| (77.95, 0.22) | (68.02, 0.24) | (61.92, 0.38) | (51.07, 0.75) | ||||
| (71.15, 0.45) | (58.77, 1.14) | (51.34, 1.53) | (40.81, 1.61) |
The results demonstrate the complementary roles of implicit alignment and explicit provenance modeling. Starting from the correspondence-unaware variant, introducing either alignment mechanism substantially improves performance, highlighting the importance of incorporating product–reactant correspondence into template-free retrosynthesis. For the explicit-only variant, we remove training-time SMILES augmentation because the fixed canonical target sequence otherwise introduces inconsistent correspondence supervision between randomized inputs and provenance labels. In contrast, implicit alignment naturally constructs view-consistent targets for augmented SMILES inputs, allowing the corresponding model to benefit from training augmentation.
Building upon the mature implicit-alignment pipeline, adding explicit provenance prediction further improves the final model. Compared with the implicit-only variant, explicit provenance consistently improves performance across evaluation settings, including stronger gains on canonical Top-5/Top-10 accuracy and improved early-rank retrieval under TTA. These results indicate that explicit atom-level correspondence provides additional model-level supervision beyond target-level alignment, enabling the decoder to better utilize structural correspondence during autoregressive generation.
We further observe that training augmentation interacts with explicit provenance learning. Removing augmentation improves canonical inference for the explicit-only variant because the model learns correspondence under a fixed input representation, but reduces robustness to randomized SMILES views, leading to weaker TTA performance. This observation suggests that implicit alignment plays an important role in making augmentation compatible with explicit provenance supervision by maintaining consistent input–target correspondence across different SMILES representations.
Overall, these results support our positioning that MatchRetro is a complementary extension of alignment-aware retrosynthesis: implicit alignment facilitates target construction, whereas explicit provenance modeling introduces an additional model-level correspondence signal for autoregressive generation.
Authors address all my concerns
The authors addressed all my concerns and I will keep my rating.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes MatchRetro, a template-free retrosynthesis method that replaces implicit SMILES alignment with explicit structural supervision. The method maps generated reactant tokens back onto the input product graph during decoding, so the model directly reuses preserved fragments instead of relying on traversal orders that minimize edit distance. It operationalizes this in a graph-to-sequence architecture with a hierarchical autoregressive design and a custom causal attention mask, which enables efficient parallel training. The paper demonstrates strong performance that also scales well with test-time augmentation across multiple benchmarks.
Strengths and weaknesses
Strengths:
- The presentation is clear and well illustrated, with Figure 1 rendering the structural alignment, causal mask, and inference pipeline in one overview.
- The contribution is well motivated, arguing why implicit SMILES alignment is fragile and showing how explicit provenance labels turn a soft traversal heuristic into direct supervision, so preserved product fragments are reused instead of regenerated.
- The custom causal mask is a sensible design that lets the two-stage cascade train in a single parallel pass without label leakage.
- The results are strong and consistent, with thorough coverage across USPTO-50K, USPTO-MIT, and USPTO-FULL under both canonical and augmented settings.
Weaknesses: See Questions
Questions
- How much of the final accuracy comes from the learned matching network versus the deterministic node-occupancy and element-matching constraints in E.2? An ablation that removes these inference-time masks would clarify whether the gains stem from the explicit-alignment idea or from the hard chemical constraints layered on top.
- How much do the graph-to-SMILES pre-training phase and the unified reaction fine-tuning phase each contribute to final accuracy and structural grounding?
- Canonical top-1 trails the leaders on all three datasets, while the wins concentrate at deeper k and under augmentation. Does explicit matching mainly improve recall rather than precision, and what limits the top-1 gain?
- Robustness to atom-mapping noise is flagged as a limitation but never reported. Can the authors provide some examples and discuss how accuracy is affected?
Limitations
N/A
Final justification
I will maintain my score.
Formatting concerns
- Missing space in "MatchRetrois" on Line 123
- Missing period or colon in Figure 1 caption "Overview of MatchRetro a) Example..."
- Missing space after "hyperparameters." on Line 224
- Should be "guarantee" on Line 717
- Inconsistent use of name "USPTO-50k" on Line 800 and 801
- Typo of "Multi-step" on Line 865
1 comment
Rebuttal
We summarize additional results here to save space, reported as (mean, std) over five random seeds.
| top-$k$ Acc. | 1 | 3 | 5 | 10 |
|---|---|---|---|---|
| Full | (53.61, 0.35) | (77.84, 0.18) | (85.06, 0.20) | (91.20, 0.26) |
| w/o mask | (53.64, 0.35) | (77.78, 0.24) | (84.83, 0.46) | (90.95, 0.48) |
| w/o stageI | (53.76, 0.36) | (77.49, 0.10) | (84.27, 0.16) | (90.22, 0.27) |
| 10% noisy data | (52.83, 0.26) | (77.52, 0.48) | (84.68, 0.50) | (90.72, 0.52) |
| 20% noisy data | (52.77, 0.44) | (77.40, 0.20) | (84.73, 0.30) | (90.78, 0.49) |
| + TTA below | ||||
| Full | (55.80, 0.22) | (79.66, 0.27) | (86.59, 0.12) | (92.60, 0.23) |
| w/o mask | (56.03, 0.17) | (79.49, 0.19) | (86.49, 0.48) | (92.50, 0.38) |
| w/o stageI | (55.40, 0.31) | (79.14, 0.06) | (86.07, 0.15) | (91.83, 0.28) |
| 10% noisy data | (55.30, 0.20) | (79.23, 0.13) | (86.69, 0.16) | (92.43, 0.46) |
| 20% noisy data | (54.79, 0.23) | (79.45, 0.26) | (86.59, 0.26) | (92.30, 0.28) |
Q1.
We thank the reviewer for raising this question. We clarify that the element-consistency constraint is not an inference-only mask; it is also applied during training when computing the matching objective. Since atom identities are preserved during reactions, product atoms with different elements are chemically invalid matching candidates and are excluded. We additionally perform the requested ablation by removing the deterministic masks. The limited performance change indicates that the improvement mainly comes from the learned matching network rather than the hard constraints. The role of the masks is instead to guarantee physically valid one-to-one assignments in ambiguous cases. For equivalent atoms (e.g., the two O atoms in O=C=O), deterministic tie-breaking may repeatedly select the same node. Beam search mitigates this by retaining alternative matching combinations and pruning invalid many-to-one hypotheses, explaining the small ablation gap. The mask in fact should be considered as a necessary guarantee for greedy decoding where no alternative assignment is preserved.
Q2.
Stage I is a same-molecule graph-to-SMILES cross-modal translation task and does not directly optimize retrosynthesis. Its role is to provide structure-aware molecular representations, which complement Stage II reaction fine-tuning. As shown above, removing Stage I mainly affects top-k candidate retrieval, indicating that pretraining improves structural grounding and candidate coverage. Stage II remains essential for learning reaction transformations and retrosynthetic generation.
Q3.
The lower canonical top-1 accuracy does not necessarily indicate weaker retrosynthetic prediction. Retrosynthesis is inherently a non-unique solution problem, where multiple reactant sets can lead to the same product. However, exact top-1 evaluation only rewards the single reactant set recorded in the dataset and penalizes chemically valid alternatives. Therefore, a model may generate a valid alternative at the top rank while still providing useful candidates within top-k, which is not reflected by top-1 accuracy. This is supported by our stronger top-k and round-trip results, where MatchRetro provides more chemically valid candidates despite lower top-1 exact matching.
The stronger gains under TTA further demonstrate the benefit of explicit matching. Randomized SMILES introduce more challenging input variations: following the edit-distance definition in Appendix B, we find that the average distance increases from 4.539 for canonical SMILES to 5.852 for non-canonical SMILES (without leaving groups), even after applying implicit alignment. This indicates that implicit alignment reduces the generation difficulty but still leaves a larger residual transformation gap under representation variations. Explicit atom-provenance modeling complements these strategies by further introducing model-level correspondence between product atoms and generated reactants, improving robustness to non-canonical inputs and leading to stronger candidate retrieval under augmented inference.
Q4.
We thank the reviewer for raising this point. We evaluate mapping-noise sensitivity by randomly selecting 20% atoms and swapping their mappings with same-element atoms, then training models with 10% and 20% corrupted training reactions. The injected mapping noise affects model performance, with the degradation mainly observed in lower-k exact-match accuracy, indicating that accurate atom correspondence benefits our explicit provenance modeling. Meanwhile, the impact is not catastrophic, likely because the perturbation is restricted to same-element swaps and surrounding molecular structures can still provide partial correspondence signals. We note that this controlled perturbation does not fully represent errors from practical atom-mapping pipelines [2]; our limitation refers to such automatically generated mapping errors. Nevertheless, our model still achieves strong performance on USPTO-FULL, whose atom mappings are generated automatically[1], suggesting that current mapping pipelines provide sufficiently reliable correspondence for practical use.
Reference
[1] Lowe, Daniel Mark. "Extraction of chemical structures and reactions from the literature." Diss. 2012.
[2] Schwaller, Philippe , et al. "Extraction of organic chemistry grammar from unsupervised learning of chemical reactions." Science Advances
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
In the following rebuttal, the experiment tables report the mean and variance across five random seeds, in the form of (mean, std).
W2.
We thank the reviewer for this comment. We agree that top-1 accuracy is an important metric and will narrow the abstract claim accordingly. However, top-1 is not the only measure of practical utility for single-step retrosynthesis models. In multi-step synthesis planning systems, single-step retrosynthesis models primarily serve as candidate generators rather than final decision makers[1, 2]. The downstream search and ranking procedures select synthesis trajectories based on global objectives, such as route feasibility and efficiency[4]. Therefore, the ability to retrieve chemically valid candidates within a practical candidate budget is critical, as missing a viable precursor set during single-step generation cannot be recovered by subsequent planning. Top-k accuracy thus provides complementary information to top-1 accuracy by measuring candidate-generation coverage.
W3.
We thank the reviewer for this comment. The NP-hardness discussion was intended as a conceptual motivation for explicitly modeling atom correspondence, rather than as a runtime analysis of prior alignment methods or a claim that explicit matching replaces existing solutions. Existing methods such as RSMILES/UAlign exploit offline alignment procedures to construct more favorable product–reactant generation targets, while MatchRetro further complements this alignment-based target construction by introducing atom-level provenance prediction as an explicit model-level signal. We agree that the original wording overstated the practical implication and will revise it accordingly.
Q1 & W1.
We thank the reviewer for this suggestion. We summaize the results for Q1 below, five random seeds are used, in form of (mean, std)
Q2.
We thank the reviewer for this suggestion. We clarify that DFS positional encoding is not an independent module. It enables alignment-aware target construction and introduces sequence-order sensitivity, which is required for both SMILES augmentation during training and TTA during inference. Removing DFS positional embeddings therefore produces a permutation-invariant alignment-free variant rather than a simple component ablation. The substantial performance gap between this variant and MatchRetro reflects the importance of alignment-aware generation, while the provenance ablation further isolates the additional benefit of explicit atom-level correspondence modeling.
For atom-mapping robustness, we perturb the training data by randomly selecting 20% atoms and swapping their mappings with same-element atoms. Following the reviewer’s suggestion, we corrupt 5%, 10%, and 20% of training reactions and report the corresponding exact-match and round-trip results above. The injected mapping noise affects model performance, with degradation mainly observed in lower-k exact-match accuracy and higher-k round-trip accuracy, indicating that accurate atom correspondence is important for provenance modeling. Meanwhile, the effect is not catastrophic, likely because the perturbation is restricted to same-element swaps and surrounding structural context can still provide partial correspondence signals. We note that this controlled perturbation does not cover all possible atom-mapping failures in practical pipelines. Nevertheless, our model still achieves strong performance on USPTO-FULL, whose atom mappings are generated automatically[1], suggesting that current atom-mapping pipelines provide sufficiently reliable correspondence for applying our approach in large-scale settings.
Q3.
We provide mean and std over five seeds for USPTO‑50K. for USPTO‑FULL and USPTO‑MIT, multi‑seed results are not given owing to excessive training time.
Reference
[1] Chen, Binghong, et al. "Retro*: learning retrosynthetic planning with neural guided A* search." ICML 2020.
[2] Liu, Wei, et al. "Retro-r1: LLM-based agentic retrosynthesis." NeurIPS 2025
[3] Lowe, Daniel Mark. "Extraction of chemical structures and reactions from the literature." Diss. 2012.
[4] Hassen, Alan Kai, et al. "Mind the retrosynthesis gap: Bridging the divide between single-step and multi-step retrosynthesis prediction." NeurIPS 2022 AI for Science: Progress and Promises. 2022.