RetroGEF: Dynamic Graph Edit Flow for Single-Step Retrosynthesis

Xiaozhuang Song, Xuemin Chen, Xinjian Zhao, Yaoyao Xu, Tianshu YuarXiv 2026

TL;DR

RetroGEF is a novel flow-based generative model that treats single-step retrosynthesis as a dynamic graph jump process. By coupling atom creation with initial connectivity and learning from stochastic bridges, it constructs reactants through a sequence of "complete edits" that can both grow the molecule and revise its inherited structure, achieving state-of-the-art performance on major benchmarks.

What Problem Does This Paper Address?

Retrosynthesis—the process of identifying the precursor molecules (reactants) needed to synthesize a target product—is a cornerstone of drug discovery. Computationally, this is a "graph-to-graphs" problem where a single product molecule must be transformed into a set of reactants.

The challenge lies in the fact that reactants often contain atoms and functional groups not present in the product. Traditional models often struggle with this variable-size construction. Some rely on fixed-size "canvases" that pre-allocate space for atoms, while others use rigid, predefined sequences of edits (like SMILES strings) that don't capture the underlying graph structure naturally. Furthermore, there is no "ground truth" order for how a molecule should be built, creating an ambiguity problem during training: if multiple sequences of edits lead to the same reactant set, which one should the model learn?

Methods

RetroGEF (Retrosynthetic Graph Edit Flow) introduces a continuous-time jump process to navigate the space of molecular graphs.

1. Complete Edits

Instead of treating atom addition and bond formation as separate steps, RetroGEF uses complete edits. For example, adding an atom also specifies its attachment site and its first bond simultaneously. This ensures that every new piece of the molecule is immediately anchored to the existing structure, providing context for the next move.

Figure 1: RETROGEF: product-relative complete edits, bridge supervision, and generation. Paired endpoints supervise edit rates (dashed arrows); the shared network observes (P, Xt, t). Each gener- ated edit updates the graph before the next rate prediction. States are schematic.

2. Stochastic Bridges and the Quotient Bridge

To solve the "edit order" ambiguity, the authors construct a stochastic bridge between the product and the recorded reactants. This bridge assigns rates to all eligible edits at any intermediate state. Crucially, they use a quotient bridge approach: if different internal atom mappings lead to the same observable structural update, their rates are summed. This allows the model to learn from all valid construction paths without being forced into an arbitrary sequence.

3. Architecture

The model uses a Graph Transformer to encode the current state of the evolving graph. It predicts two main components:

  • Total Intensity ($\lambda_\theta$): Determines when the next edit should occur.
  • Edit Probabilities ($\pi_\theta$): Determines what the edit should be (type, location, and attributes).
Figure 2: Edit order and complete graph updates. A: Two correction orders reach the same graph, with total bridge intensity 2 →1 →0. B: Location and attributes jointly define one update. Blue: product atoms; orange: added atoms.

Datasets

The authors evaluated RetroGEF on two standard retrosynthesis benchmarks derived from US patent records:

  • USPTO-50K: A curated dataset of ~50,000 reactions across 10 well-defined reaction classes.
  • USPTO-Full: A much larger and more diverse dataset containing ~1 million reactions, providing a more rigorous test of the model's ability to handle complex, variable-size transformations.

Key Insights and Ideas

  • Coupling Growth and Revision: By allowing the model to alternate between adding new atoms and revising the inherited product scaffold (e.g., changing bond orders or removing bonds), RetroGEF can handle complex rearrangements that "one-shot" or rigid sequence models miss.
  • Order Agnosticism: The bridge formulation means the model doesn't need a "manual" for the order of operations. It learns the underlying distribution of edits that reduce the discrepancy between the current graph and the target reactants.
  • Dynamic Canvas: Unlike diffusion models that often operate on a fixed number of nodes, RetroGEF's graph grows and shrinks dynamically, making it much more efficient for reactions that involve large changes in molecular size.

Key Results

RetroGEF achieved state-of-the-art (SOTA) Top-k accuracy on both benchmarks.

  • USPTO-Full: Under the "Predicted Center" condition (where the model must identify the reaction site itself), RetroGEF reached a Top-1 accuracy of 54.3%, a significant jump over the previous SOTA, RetroDiT (51.3%).
  • USPTO-50K: It achieved a Top-1 accuracy of 62.4% (Pred.) and 72.3% (Oracle).
  • Complexity Handling: The model showed particularly strong gains in reactions requiring many changes (more than 20 graph edits) and those requiring the addition of many new atoms (11-20 atoms).
Figure 4: Accuracy across all ten USPTO-50K reaction classes. Shared nonuniform radial scale (%), labeled in the first panel. FG: functional group.

Qualitative analysis showed the model successfully reconstructing complex reagents like triphosgene and protected precursors that other models failed to generate correctly.

Limitations and Future Work

  • Single-Step Focus: The current work focuses on single-step retrosynthesis. Integrating this into a multi-step planning framework (where the value of a reactant depends on its own synthetic accessibility) is a natural next step.
  • Chemical Domain Diversity: While patent data is a standard benchmark, testing on more diverse chemical spaces (like natural products or specialized materials) would further validate the model's construction strategies.
  • Condition Awareness: Future iterations could incorporate reaction conditions (temperature, solvents, catalysts) as additional conditioning variables to refine the predicted reactant sets.

Summary updated

BibTeX
@misc{song2026retrogef,
  author = {Xiaozhuang Song and Xuemin Chen and Xinjian Zhao and Yaoyao Xu and Tianshu Yu},
  title = {{RetroGEF: Dynamic Graph Edit Flow for Single-Step Retrosynthesis}},
  year = {2026},
  eprint = {2609.38484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38484},
}
Figure