Skip to main content
QUICK REVIEW

[Paper Review] RetCL: A Selection-based Approach for Retrosynthesis via Contrastive Learning

Hankook Lee, Sung Soo Ahn|arXiv (Cornell University)|May 3, 2021
Machine Learning in Materials ScienceMaterials Science36 references7 citations
TL;DR

This paper proposes RetCL, a selection-based retrosynthesis framework that formulates retrosynthesis as selecting commercially available reactants from a large candidate set using graph neural networks and contrastive learning with hard negative mining. RetCL achieves 71.3% top-1 exact match accuracy on USPTO-50k, significantly outperforming prior methods, and generalizes effectively to unseen reaction templates.

ABSTRACT

Retrosynthesis, of which the goal is to find a set of reactants for synthesizing a target product, is an emerging research area of deep learning. While the existing approaches have shown promising results, they currently lack the ability to consider availability (e.g., stability or purchasability) of the reactants or generalize to unseen reaction templates (i.e., chemical reaction rules). In this paper, we propose a new approach that mitigates the issues by reformulating retrosynthesis into a selection problem of reactants from a candidate set of commercially available molecules. To this end, we design an efficient reactant selection framework, named RetCL (retrosynthesis via contrastive learning), for enumerating all of the candidate molecules based on selection scores computed by graph neural networks. For learning the score functions, we also propose a novel contrastive training scheme with hard negative mining. Extensive experiments demonstrate the benefits of the proposed selection-based approach. For example, when all 671k reactants in the USPTO {database} are given as candidates, our RetCL achieves top-1 exact match accuracy of $71.3\%$ for the USPTO-50k benchmark, while a recent transformer-based approach achieves $59.6\%$. We also demonstrate that RetCL generalizes well to unseen templates in various settings in contrast to template-based approaches.

Motivation & Objective

  • Address the limitations of existing retrosynthesis models in considering reactant availability and generalizing to unseen reaction templates.
  • Reformulate retrosynthesis as a selection problem from a predefined set of commercially available molecules to ensure practical feasibility.
  • Develop a scalable and generalizable framework that improves performance and robustness over template-based and template-free baselines.
  • Enable effective integration into multi-step retrosynthetic planning by recommending viable, available reactants at each step.
  • Overcome scalability issues in contrastive learning for large candidate sets through a novel hard negative mining strategy.

Proposed method

  • Reformulate retrosynthesis as a selection task: given a target molecule, select reactants from a fixed, large candidate set of commercially available molecules.
  • Use graph neural networks (GNNs) to compute molecular embeddings for both products and candidate reactants.
  • Compute selection scores via cosine similarity between product and reactant embeddings to rank candidates.
  • Train the score function using a contrastive learning objective that pulls positive (correct) reactant-product pairs closer and pushes negative pairs apart.
  • Incorporate hard negative mining to improve training efficiency and model discrimination by focusing on difficult negative examples.
  • Design a scalable training pipeline that handles up to 671k candidate reactants efficiently, enabling deployment on large-scale datasets like USPTO.

Experimental results

Research questions

  • RQ1Can a selection-based retrosynthesis approach improve accuracy and practicality by ensuring reactant availability?
  • RQ2How does contrastive learning with hard negative mining enhance the generalization of retrosynthesis models to unseen reaction templates?
  • RQ3To what extent can a model trained on a subset of candidate reactants generalize to a much larger test candidate set?
  • RQ4Can the proposed framework improve multi-step retrosynthetic planning when combined with a template-free generation model?
  • RQ5How does RetCL compare in performance and inference speed to existing selection-based and generation-based approaches?

Key findings

  • RetCL achieves a top-1 exact match accuracy of 71.3% on the USPTO-50k benchmark, outperforming a recent transformer-based method (59.6%) and a strong baseline (Chen et al., 2019) by 11.7%.
  • The model generalizes well to unseen reaction templates, achieving 39.9% accuracy on the USPTO-full dataset—significantly higher than the state-of-the-art template-based method (26.7%).
  • Even when trained on a small candidate set (91,297 molecules from USPTO-50k), RetCL generalizes effectively to a much larger test candidate set of 671,518 molecules, demonstrating robustness to distribution shift.
  • In multi-step retrosynthesis, RetCL enhances a template-free Transformer model, increasing the success rate from 91.05% to 96.84% by providing high-quality, available reactants at each step.
  • RetCL achieves its results in under one second per inference, vastly outpacing Bayesian-Retro, which requires ~6 hours (6×10⁵ forward evaluations) for a single prediction.
  • The ablation study confirms that the contrastive learning with hard negative mining is critical for performance, especially in large-scale candidate settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.