Contextual Molecule Representation Learning from Chemical Reaction Knowledge

Han Tang, Shikun Feng, Bicheng Lin, Yuyan Ni, Jingjing Liu, Wei-Ying Ma, Yanyan Lan

Abstract

In recent years, self-supervised learning has emerged as a powerful tool to harness abundant unlabelled data for representation learning and has been broadly adopted in diverse areas. However, when applied to molecular representation learning (MRL), prevailing techniques such as masked sub-unit reconstruction often fall short, due to the high degree of freedom in the possible combinations of atoms within molecules, which brings insurmountable complexity to the masking-reconstruction paradigm. To tackle this challenge, we introduce REMO, a self-supervised learning framework that takes advantage of well-defined atom-combination rules in common chemistry. Specifically, REMO pre-trains graph/Transformer encoders on 1.7 million known chemical reactions in the literature. We propose two pre-training objectives: Masked Reaction Centre Reconstruction (MRCR) and Reaction Centre Identification (RCI). REMO offers a novel solution to MRL by exploiting the underlying shared patterns in chemical reactions as context for pre-training, which effectively infers meaningful representations of common chemistry knowledge. Such contextual representations can then be utilized to support diverse downstream molecular tasks with minimum finetuning, such as affinity prediction and drug-drug interaction prediction. Extensive experimental results on MoleculeACE, ACNet, drug-drug interaction (DDI), and reaction type classification show that across all tested downstream tasks, REMO outperforms the standard baseline of single-molecule masked modeling used in current MRL. Remarkably, REMO is the pioneering deep learning model surpassing fingerprint-based methods in activity cliff benchmarks.

Introduction

In the field of drug discovery, researchers frequently encounter "activity cliffs"—pairs of molecules that are structurally nearly identical but possess vastly different biological activities. Traditional AI models for molecules often struggle with these nuances because they treat molecules as isolated entities. Most current self-supervised learning methods rely on masked modeling, similar to BERT in natural language processing, where an atom is hidden and the model attempts to predict it. However, in a vacuum, a masked spot in a molecule could be almost anything, leading to a reconstruction task with too many degrees of freedom and insufficient chemical context.

The REMO Framework

REMO (REaction-contextualized MOlecular representation learning) shifts the focus from static molecular structure to dynamic chemical behavior. By using chemical reactions as the context for pre-training, REMO captures the functional essence of molecules—the "business end" that actually reacts with other chemicals or proteins.

Comparison of single-molecule and reaction-contextual masking.

The framework introduces two novel pre-training objectives:

  1. Masked Reaction Centre Reconstruction (MRCR): Given a set of reactants, the model must reconstruct the masked "reaction center" (the specific atoms or bonds that change) of one molecule using the other reactants as context.
  2. Reaction Centre Identification (RCI): A classification task where the model identifies which atoms in a molecule are likely to be part of a reaction center given the surrounding chemical environment.

Theoretical Foundation: Entropy Reduction

The inclusion of reaction context fundamentally changes the learning task. Mathematically, adding other reactants as context reduces the information entropy of the reconstruction. Instead of guessing from a vast array of possibilities, the model uses chemical logic to narrow down the search space. This forces the encoder to learn meaningful chemical semantics rather than just memorizing local structural patterns.

Results: Breaking the Activity Cliff Barrier

REMO's effectiveness is most evident in its performance on activity cliff benchmarks. For years, simple "fingerprint" methods like ECFP combined with Support Vector Machines (SVMs) outperformed deep learning models on these tasks. REMO is the first deep learning model to consistently break this streak.

Reaction context and activity cliff examples.

On the MoleculeACE benchmark, REMO achieved an RMSE of 0.647, significantly outperforming the previous gold standard (ECFP+SVM at 0.675) and other deep learning baselines. Furthermore, REMO demonstrated superior generalization across diverse tasks, including drug-drug interaction (DDI) prediction and reaction type classification, where it achieved 98.0% accuracy. Notably, REMO achieved these results despite being pre-trained on fewer distinct molecules than many competing models, suggesting that the quality of the reaction-based context is more impactful than raw data volume.

Conclusion

REMO represents a paradigm shift in molecular representation learning by moving from isolated structural modeling to contextual, reaction-aware learning. By capturing the functional essence of molecules through the lens of chemical transformations, REMO provides a robust foundation for high-precision drug discovery and chemical property prediction. Future work may involve incorporating 3D spatial information and scaling to even larger reaction databases to further enhance the model's predictive power.

Summary updated

BibTeX
@misc{tang2024contextual,
  author = {Han Tang and Shikun Feng and Bicheng Lin and Yuyan Ni and Jingjing Liu and Wei-Ying Ma and Yanyan Lan},
  title = {{Contextual Molecule Representation Learning from Chemical Reaction Knowledge}},
  year = {2024},
  eprint = {2402.13779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.13779},
}
Figure