Learning Condensed Graph via Differentiable Atom Mapping for Reaction Yield Prediction

Ankit Ghosh, Gargee Kashyap, Sarthak Mittal, Nupur Jain, Raghavan B Sunoj, Abir DeICML 2025

TL;DR

YieldNet is a novel neural network designed to predict chemical reaction yields by automatically learning how atoms move and rearrange between reactants and products. By creating a "Condensed Graph of Reaction" (CGR) as a surrogate for the elusive transition state, it outperforms existing models using only final yield values for training—requiring no manual atom-mapping annotations.

The Challenge of Predicting Chemical Yield

In chemistry, the "yield" of a reaction—how much product you actually obtain versus the theoretical maximum—is the holy grail of process optimization. Predicting yield computationally is notoriously difficult because it heavily depends on the activation energy: the energy "hill" a reaction must climb to reach a temporary, unstable middle ground known as the transition state.

Reaction Energy Profile

To accurately model this transition state, one must know exactly which atom in the reactant becomes which atom in the product. This process is called atom mapping. Unfortunately, most chemical datasets lack these maps because they are incredibly tedious to produce manually, and solving for them computationally is an NP-hard problem. Consequently, most current AI models skip this physics-informed step entirely. They rely instead on molecular fingerprints or simple graph embeddings that treat reactants and products as separate, disconnected entities rather than a continuous transformation.

Methods: How YieldNet Works

The authors introduce YieldNet, an end-to-end architecture that learns to "connect the dots" between reactants and products through several novel stages:

YieldNet Architecture
  1. Differentiable Atom Mapping: Instead of relying on hard-coded rules or external mapping tools, YieldNet uses a node alignment network based on the Gumbel-Sinkhorn iterative procedure. This allows the model to propose a "soft" mapping (a probability matrix) of how atoms correspond across the reaction.
  2. The Condensed Graph of Reaction (CGR): Using the learned mapping, the model constructs a CGR—a supergraph that overlays the reactant and product structures. This CGR acts as a structural surrogate for the transition state, explicitly capturing which bonds are breaking and which are forming.
  3. Input-Differentiable GNN: Standard Graph Neural Networks (GNNs) assume a fixed, discrete graph structure. The authors designed a custom GNN that allows gradients to flow back through the structure of the CGR itself, making the entire mapping and graph-generation process end-to-end trainable.
  4. Transformer-Guided Path Encoder: For complex, multi-step reactions, the model uses a Transformer to process the sequence of CGRs, ensuring the chronological order of chemical steps is respected.
  5. Distant Supervision: Crucially, the model is trained only on the final yield values. It learns the internal atom mapping "on the fly" because finding better structural mappings naturally leads to more accurate yield predictions.

Key Insights and Results

YieldNet was evaluated across eight diverse datasets, ranging from gas-phase isomerizations to complex Suzuki couplings and large-scale USPTO patent data.

  • The "Physics" Inductive Bias: By forcing the model to construct a CGR, the authors bake chemical logic directly into the architecture. The model isn't just looking at "before" and "after" pictures; it is forced to represent the "during."
  • Mapping without Labels: One of the most impressive findings is that the model learns accurate atom mappings without ever being shown a ground-truth map during training. It achieved a Frobenius norm error of 3.708 compared to 5.096 for standard attention mechanisms.
  • State-of-the-Art Accuracy: YieldNet consistently outperformed state-of-the-art baselines like YieldBERT and DeepReac+. It achieved the lowest Mean Absolute Error (MAE) in 7 out of 8 datasets. For example, on the GP dataset, it reached an MAE of 23.15, significantly better than the next best baseline (DeepReac+) at 27.83.
  • Efficiency: Despite its architectural complexity, YieldNet's inference time remains comparable to other GNN-based models and is significantly faster than transformer-heavy models like YieldBERT.

Limitations and Future Work

While YieldNet represents a significant step forward, the authors identify a few areas for future improvement:

  • Scalability: The Sinkhorn mapping process has a computational complexity of $O(N^2)$, which currently limits the model to reactions with roughly 200–250 atoms.
  • 3D Geometry: The current model relies on 2D molecular graphs. Incorporating 3D spatial coordinates and stereochemistry could further improve predictions for complex chiral molecules.
  • Reaction Conditions: While the model can handle catalysts and solvents as part of the graph, it does not yet fully integrate continuous external factors like temperature or pressure, which are critical for real-world laboratory applications.

Paper Citation: Ankit Ghosh et al. "Learning Condensed Graph via Differentiable Atom Mapping for Reaction Yield Prediction." Proceedings of the 42nd International Conference on Machine Learning (ICML), 2025.

Summary updated

BibTeX
@inproceedings{ghosh2025learning,
  author = {Ankit Ghosh and Gargee Kashyap and Sarthak Mittal and Nupur Jain and Raghavan B Sunoj and Abir De},
  title = {{Learning Condensed Graph via Differentiable Atom Mapping for Reaction Yield Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=sqjQ6p56GR},
}
Figure