Reproducing Reaction Mechanisms with Machine‐Learning Models Trained on a Large‐Scale Mechanistic Dataset

Joonyoung F. Joung, Mun Hong Fong, Jihye Roh, Zhengkai Tu, John Bradshaw, Connor W. Coley

TL;DR

This paper tackles the challenge of predicting chemical reaction mechanisms, not just the final products, by creating a massive dataset of elementary reaction steps. They then train machine learning models on this dataset, showing promising results in understanding reaction pathways, identifying impurities, and even predicting the roles of catalysts and reagents.

What Problem Does This Paper Address?

Predicting the final products of chemical reactions is a well-studied problem in machine learning. However, understanding how those products are formed – the reaction mechanism – is crucial for reaction development, optimization, and discovering new chemistry. This has been a major hurdle due to the lack of large, comprehensive datasets detailing these step-by-step reaction pathways. Existing methods often rely on computationally expensive quantum chemistry or simplified heuristics, limiting their scope and interpretability.

Methods

The core innovation here is the creation of a large-scale mechanistic dataset. The authors used expert-curated reaction templates to "impute" (fill in) the intermediate steps for millions of experimentally reported reactions. They then trained three types of machine learning models on this dataset:

  • Weisfeiler-Lehman Difference Network (WLDN): A graph-based model that predicts changes to a molecular graph.
  • Transformer: A sequence-to-sequence model that translates reactant SMILES strings into product SMILES strings.
  • Graph2SMILES: A hybrid model using a graph encoder for reactants and a sequence decoder for products.

These models were trained to predict the next intermediate or product in a mechanistic pathway, rather than just the final outcome.

Datasets

The primary dataset used was Pistachio, a large collection of experimentally reported reactions. From this, they curated a subset focusing on the 86 most popular reaction classes, resulting in approximately 1.6 million reactions. By applying their expert templates, they generated a novel mechanistic dataset containing 5.8 million elementary reactions. This dataset is now available for public use.

Key Insights and Ideas

  • Mechanistic models offer interpretability: Unlike "black box" product prediction models, mechanistic models can reveal why a reaction proceeds the way it does, including the roles of catalysts and reagents.
  • Predicting impurities is possible: By understanding reaction pathways, these models can identify byproducts and impurities that are often overlooked by conventional methods.
  • Catalyst roles can be elucidated: The models can predict the regeneration of catalysts, a crucial aspect often missed by models focused solely on reactant-to-product transformations.
  • Generalizability is a challenge: While promising, the models struggle with new reaction types not well-represented in the training data, highlighting the need for more diverse datasets.

Key Results

  • The trained models achieved competitive accuracy in predicting individual elementary reaction steps, with top-1 accuracies in the 80-90% range, comparable to product prediction models.
  • The Graph2SMILES model showed the best performance in predicting the entire reaction sequence, while the Transformer model demonstrated significant improvements in top-k predictions for sequences.
  • The WLDN model successfully predicted complex multi-step mechanisms for various reaction types, including nucleophilic aromatic substitution, Suzuki coupling, Wittig reaction, and Darzens chlorination.
  • The models demonstrated the ability to predict byproducts like triphenylphosphine oxide in Wittig reactions and boric acid in Suzuki reactions.
  • However, the models showed limited generalizability to unseen reaction classes, with mechanistic models only outperforming global models for reactions involving carboxylic acids (which were frequent in the training set).

Limitations and Future Work

The authors acknowledge several limitations:

  • Dataset diversity: The training set, while large, was based on a limited number of reaction classes, impacting generalizability.
  • Missing reagents and stoichiometry: The dataset generation process sometimes lacked crucial reagents or precise stoichiometric information, hindering model performance on certain reactions.
  • Consecutive predictions: Errors can accumulate across multiple elementary steps, impacting the accuracy of the overall mechanism prediction.
  • Atom conservation violations: Language-based models (Transformer, Graph2SMILES) sometimes violate atom conservation, leading to chemically implausible predictions.

Future work should focus on curating more diverse mechanistic datasets, improving consecutive prediction accuracy, and enhancing the models' ability to conserve mass and charge. Further investigation into the generalizability of mechanistic models to new reaction types is also warranted.

Summary updated

BibTeX
@inproceedings{joung2024reproducing,
  author = {Joonyoung F. Joung and Mun Hong Fong and Jihye Roh and Zhengkai Tu and John Bradshaw and Connor W. Coley},
  title = {{Reproducing Reaction Mechanisms with Machine‐Learning Models Trained on a Large‐Scale Mechanistic Dataset}},
  booktitle = {Angewandte},
  year = {2024},
  doi = {10.1002/ange.202411296},
}
Figure