Skip to main content
QUICK REVIEW

[Paper Review] Energy-based View of Retrosynthesis

Ruoxi Sun, Hanjun Dai|arXiv (Cornell University)|Jul 14, 2020
Machine Learning in Materials ScienceMaterials Science30 references15 citations
TL;DR

This paper proposes a unified energy-based model (EBM) framework that integrates sequence- and graph-based retrosynthesis models, enabling systematic comparison and improved understanding of model design. It introduces a novel dual EBM variant trained consistently on both forward and backward prediction directions, achieving state-of-the-art performance in template-free retrosynthesis with a 4.3% improvement over prior methods.

ABSTRACT

Retrosynthesis -- the process of identifying a set of reactants to synthesize a target molecule -- is of vital importance to material design and drug discovery. Existing machine learning approaches based on language models and graph neural networks have achieved encouraging results. In this paper, we propose a framework that unifies sequence- and graph-based methods as energy-based models (EBMs) with different energy functions. This unified perspective provides critical insights about EBM variants through a comprehensive assessment of performance. Additionally, we present a novel dual variant within the framework that performs consistent training over Bayesian forward- and backward-prediction by constraining the agreement between the two directions. This model improves state-of-the-art performance by 9.6% for template-free approaches where the reaction type is unknown.

Motivation & Objective

  • To unify sequence- and graph-based retrosynthesis models under a single energy-based model (EBM) framework for better theoretical understanding and comparison.
  • To provide a rigorous, comprehensive evaluation of different EBM variants to guide future model design in retrosynthesis.
  • To develop a novel generalized dual EBM variant that enforces consistency between forward (reaction outcome) and backward (reactant prediction) predictions.
  • To improve state-of-the-art performance in template-free retrosynthesis without relying on ground-truth reaction centers during training.

Proposed method

  • Formulate retrosynthesis as a conditional probability problem using an energy function Eθ(X, y), where X is the reactants and y is the product, with pθ(X|y) ∝ exp(−Eθ(X, y)).
  • Design multiple EBM variants by instantiating the energy function Eθ with different architectures: sequence-based (e.g., transformers), graph-based (e.g., GNNs), or hybrid forms.
  • Implement a dual loss function that jointly optimizes forward prediction (pα(y|X)) and backward prediction (pη(X|y)), with a consistency constraint to align both directions.
  • Use a proposal mechanism (e.g., template-based or sequence translation) to generate candidate reactants during inference, then rank them by energy score Eθ*(X, y).
  • Train the model using maximum likelihood estimation and pseudo-likelihood, with normalization handled via the partition function Z(θ).
  • Apply randomization of SMILES strings during training to inject order invariance, enhancing generalization in graph-agnostic models.

Experimental results

Research questions

  • RQ1How can sequence-based and graph-based retrosynthesis models be formally unified under a single theoretical framework?
  • RQ2What are the key differences and trade-offs between various EBM variants in terms of expressiveness, training, and inference complexity?
  • RQ3Can consistent training across forward and backward prediction directions improve model performance in template-free retrosynthesis?
  • RQ4To what extent does the dual EBM variant outperform existing state-of-the-art methods in both template-based and template-free settings?

Key findings

  • The proposed generalized dual EBM variant achieves a top-1 accuracy of 65.7% on the augmented USPTO dataset when reaction type is known, outperforming the previous SOTA (RetroXpert) by 4.3%.
  • The dual model improves top-1 accuracy by 1.6% over the best semi-template method (G2Gs) even without requiring ground-truth reaction centers during training.
  • Ablation studies confirm that each component of the dual loss—forward prediction, backward prediction, and prior—contributes positively to performance, with the consistency constraint providing additional gains in high-accuracy regimes.
  • Dual re-ranking significantly improves candidate ranking: in one example, the ground truth reactant moves from 3rd to 1st place compared to standard translation-based proposals.
  • The unified EBM framework enables systematic comparison of model variants, revealing that graph-based models inherently benefit from order invariance, while sequence-based models require data augmentation (e.g., SMILES shuffling) for similar robustness.
  • The framework demonstrates that consistent training across prediction directions leads to more reliable and accurate retrosynthesis predictions, especially in complex or high-accuracy regions.

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.