Learning Chemical Reaction Representation with Reactant-Product Alignment

Kaipeng Zeng, Xianbin Liu, Yu Zhang, Xiaokang Yang, Yaohui Jin, Yanyan XuarXiv 2024 · DOI

Introduction

Predicting chemical reaction outcomes—such as yield, selectivity, and optimal experimental conditions—remains a cornerstone challenge in organic synthesis. While traditional machine learning relied on hand-crafted molecular fingerprints, modern deep learning has shifted toward treating reactions as sequences (SMILES) or graphs. However, these approaches often fail to capture the underlying chemical transformation: the specific breaking and forming of bonds. The RAlign framework addresses this by explicitly aligning atoms between reactants and products, focusing the model's attention on the reaction center.

The RAlign Framework

RAlign utilizes an encoder-decoder architecture designed to mirror chemical intuition by focusing on the transformation process rather than just the molecular states.

The RAlign architecture consists of an Atom Aligned Encoder, a Condition Incorporating Adapter, and a Reaction-Center-Aware Decoder.

Atom Aligned Encoder

Standard graph neural networks process molecules in isolation. RAlign's encoder uses atom-mapping to identify corresponding atoms in reactants and products. An Information Fusion Layer then merges these features, allowing the model to explicitly represent how an atom's local environment evolves during the reaction.

Reaction-Center-Aware (RC-aware) Decoder

Chemical transformations are localized at the reaction center. To prevent the model from being overwhelmed by non-reactive molecular regions, the RC-aware decoder employs a specialized attention mechanism. Half of the attention heads are constrained to focus on atoms directly involved in bond changes, ensuring the model prioritizes the most chemically relevant information.

Condition Incorporating Adapter

Experimental conditions such as temperature and solvent are crucial but often difficult to integrate into graph-based models. RAlign uses a modular adapter—inspired by "ControlNet" in computer vision—to assimilate these external variables without altering the core architecture. This modularity allows the framework to adapt to diverse datasets with varying condition formats.

Experimental Evaluation

The model was benchmarked against several large-scale datasets to test its versatility:

  • USPTO_CONDITION & USPTO_500MT: Large-scale datasets used for predicting catalysts, solvents, and reagents.
  • Buchwald-Hartwig: A gold-standard experimental dataset for yield prediction.
  • C-H Functionalization & Thiol Addition: Specialized datasets used to test the model's ability to predict regio- and enantio-selectivity.

Key Results

RAlign established new state-of-the-art (SOTA) benchmarks across all evaluated tasks. On the USPTO_CONDITION dataset, it achieved a top-1 accuracy of 34.30%, representing a 25% relative improvement over previous leaders like Parrot-LM-E.

Comparison of Top-k accuracy on the USPTO_CONDITION dataset. RAlign significantly outperforms existing models across all k values.

In yield prediction, RAlign achieved an $R^2$ score of 0.898 on the Buchwald-Hartwig dataset, significantly outperforming T5Chem. Furthermore, its performance on selectivity tasks ($R^2 = 0.9875$ for C-H functionalization) demonstrates its ability to distinguish between subtle differences in potential reaction sites.

Conclusion

By integrating atom alignment and focusing on the reaction center, RAlign provides a more physically grounded representation of chemical reactions. Its modular design and robustness to mapping noise make it a versatile tool for synthetic chemistry. Future work will explore large-scale pretraining to develop a foundation model capable of generalizing across even broader chemical spaces.

Summary updated

BibTeX
@misc{zeng2024learning,
  author = {Kaipeng Zeng and Xianbin Liu and Yu Zhang and Xiaokang Yang and Yaohui Jin and Yanyan Xu},
  title = {{Learning Chemical Reaction Representation with Reactant-Product Alignment}},
  year = {2024},
  eprint = {2411.17629},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.17629},
}
Figure