A graph-convolutional neural network model for the prediction of chemical reactivity — TEI-tagged view

Connor W. Coley, Wengong Jin, Luke Rogers, Timothy F. Jamison, Tommi S. Jaakkola, William H. Green, Regina Barzilay, Klavs F. Jensen · 2019 · computer-science · doi:10.1039/c8sc04228d · TEI xml · tagged edition · index · concepts · authors
Where this record's text came from. 2026-09-28 schema-0.3 pass: every quote ON THIS RECORD verified as an exact substring of the staged text and anchored, at the merge dated above; concept terms verified present; every edge endpoint an existing node.
Other fields define these differently the same word, defined another way in another discipline
interpretability 3 fields · Machine learning models 2 fields
Tags on this paper every tag the record carries, whether or not the words occur in the text below — a number is how many papers in the corpus carry that tag; a tag with no number is unique to this paper
WLN Weisfeiler-Lehman Network graph convolutional neural network CAMEO2 Computer Assisted Mechanistic Evaluation of Organic Reactions USPTO United States Patent and Trademark Office WLDN Weisfeiler-Lehman Difference Network Machine learning models2 humans2 reaction computational-model96

Colour legend

Chemical Science<title level="j">A work — the journal / venue title.
2019<date>A year or date.

Connor W. ColeypersName, Wengong JinpersName, Luke RogerspersName, Timothy F. JamisonpersName, Tommi S. JaakkolapersName, William H. GreenpersName, Regina BarzilaypersName, Klavs F. JensenpersName (2019date). “A graph-convolutional neural network model for the prediction of chemical reactivity.” Chemical Sciencetitle·j.

Object of study — a graph-convolutional model that predicts the products of organic reactionsterm·dom

Research question — how to predict the major products of organic reactionsterm·dom from reactants, reagents and solvents

Contribution — a model exceeding the state of the art by 5.3% and matching humanterm·dom experts in reaction predictionterm·key

Cross-disciplinary analysis
content-tags & facets: phenomenon · claim-type · cross-domain-transfer · mechanism · claim-relation · replication-status · limitation — grounded in the full text
phenomenonchemical reactivity perceived as graph edits of bond order — “We describe a reaction as a set of changes in bond order in a collection of reactant molecules”
claim-typemethod — “A quantitative analysis of model performance shows an accuracy of over 85.6%, 5.3% higher than the previous state-of-the-art, and performance on par with human experts for this complex prediction task.”
method — evidence — “We present a supervised learning approach to predict the products of organic reactions given their reactants, reagents, and solvent(s).”
object of study — evidence — “We present a supervised learning approach to predict the products of organic reactions given their reactants, reagents, and solvent(s).”
research question — evidence — “As a significant step toward this ultimate goal of reaction evaluation, we address the task of predicting the major products of organic reactions based on the reactant, reagent, and solvent species.”
contribution — evidence — “A quantitative analysis of model performance shows an accuracy of over 85.6%, 5.3% higher than the previous state-of-the-art, and performance on par with human experts for this complex prediction task.”
mechanismglobal attention Every atom attends to all others, letting distant reagents inform the predicted reactivity at a site. — “a global attention mechanism is used whereby all atoms in the reactant graph attend to (“look at”) all other atoms”mechanisms[0]
senseinterpretability - seeing which atoms the model attends to when it judges a site reactive — “a global attention mechanism is used whereby all atoms in the reactant graph attend to (“look at”) all other atoms”senses[0]
relationWLN —same-as→ Weisfeiler-Lehman Network — ( ) — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph” — “We train a Weisfeiler-Lehman Network (WLN)”concept_edges[0]
weightWLN —same-as→ Weisfeiler-Lehman Network — 0.95 — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph”concept_edges[0]
relationWeisfeiler-Lehman Network —is-a→ graph convolutional neural network — a type of — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph” — “Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network”concept_edges[1]
weightWeisfeiler-Lehman Network —is-a→ graph convolutional neural network — 0.9 — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph”concept_edges[1]
relationCAMEO —same-as→ Computer Assisted Mechanistic Evaluation of Organic Reactions — ( ) — “In 1980, Jorgensen and coworkers introduced Computer Assisted Mechanistic Evaluation of Organic Reactions (CAMEO).” — “Computer Assisted Mechanistic Evaluation of Organic Reactions (CAMEO)”concept_edges[2]
weightCAMEO —same-as→ Computer Assisted Mechanistic Evaluation of Organic Reactions — 0.95 — “In 1980, Jorgensen and coworkers introduced Computer Assisted Mechanistic Evaluation of Organic Reactions (CAMEO).”concept_edges[2]
relationUSPTO —same-as→ United States Patent and Trademark Office — ( ) — “Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactions from the United States Patent and Trademark Office (USPTO) 33 used previously” — “United States Patent and Trademark Office (USPTO)”concept_edges[3]
weightUSPTO —same-as→ United States Patent and Trademark Office — 0.95 — “Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactions from the United States Patent and Trademark Office (USPTO) 33 used previously”concept_edges[3]
relationWLDN —same-as→ Weisfeiler-Lehman Difference Network — ( ) — “The Weisfeiler-Lehman Difference Network (WLDN) used for ranking refinement is conceptually similar to the WLN” — “The Weisfeiler-Lehman Difference Network (WLDN)”concept_edges[4]
weightWLDN —same-as→ Weisfeiler-Lehman Difference Network — 0.95 — “The Weisfeiler-Lehman Difference Network (WLDN) used for ranking refinement is conceptually similar to the WLN”concept_edges[4]
relationMachine learning models —contrasted-with→ humans — whereas — “Machine learning models are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humans may only be able to recall the most common reaction types and general reactivity trends.” — “Machine learning models are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humans”concept_edges[5]
weightMachine learning models —contrasted-with→ humans — 0.8 — “Machine learning models are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humans may only be able to recall the most common reaction types and general reactivity trends.”concept_edges[5]
replicationoriginal
limitationThe human benchmarking is a small-scale qualitative comparison. — “Though we present the quantitative results of the benchmarking study, this is a small-scale qualitative comparison and should be treated as such.”limitations[0]
limitationThe reaction data often omit catalysts used in the experiments. — “as the reaction database often does not include catalysts even when employed in the actual experiments, the model does not rely on”limitations[1]
Content tags
content-observations: finding · quantity · variable · definition · key-term — grounded in the full text
findingRare reaction types are still predicted with over 60% top-1 accuracy. — “Reactions for which the corresponding template has fewer than 5 precedents (or none at all) are still predicted with >60% top-1 accuracy by the graph-based model, demonstrating its ability to generalize to previously unseen structural transformations.”content_tags.findings[0]
findingMore common chemistries are easier to predict. — “More common chemistries are empirically easier to predict, as one would expect from a data-driven approach to model reactivity.”content_tags.findings[1]
quantity85.6% — — “A quantitative analysis of model performance shows an accuracy of over 85.6%, 5.3% higher than the previous state-of-the-art, and performance on par with human experts for this complex prediction task.”content_tags.quantities[0]
quantityca. 410k, 30k, and 40k reactions — — “Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactions from the United States Patent and Trademark Office (USPTO) 33 used previously”content_tags.quantities[1]
variabletop-1 accuracy — “Reactions for which the corresponding template has fewer than 5 precedents (or none at all) are still predicted with >60% top-1 accuracy by the graph-based model, demonstrating its ability to generalize to previously unseen structural transformations.”content_tags.variables[0]
definitionreaction — “We describe a reaction as a set of changes in bond order in a collection of reactant molecules”content_tags.definitions[0]
key-termsreaction prediction, graph convolutional neural network, Weisfeiler-Lehman Network, global attention, reaction templates, bond changes, candidate enumeration, USPTO, interpretability, human benchmarking
Concepts
terms this paper carries, each with the sentence it was cut from — the layer that joins one paper to another. Terms with no quote yet are on CONCEPTS.html.
conceptWLN — Weisfeiler-Lehman Network — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph”concepts[0]
conceptWeisfeiler-Lehman Network — a type of graph convolutional neural network — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph”concepts[1]
conceptgraph convolutional neural network — not defined in this paper's own words; a neural network that updates node features from neighbouring nodes — “We train a Weisfeiler-Lehman Network (WLN), 32 a type of graph convolutional neural network, to analyze the reactant graph”concepts[2]
conceptCAMEO — Computer Assisted Mechanistic Evaluation of Organic Reactions — “In 1980, Jorgensen and coworkers introduced Computer Assisted Mechanistic Evaluation of Organic Reactions (CAMEO).”concepts[3]
conceptComputer Assisted Mechanistic Evaluation of Organic Reactions — not defined in this paper's own words; an early expert-heuristic reaction prediction program — “In 1980, Jorgensen and coworkers introduced Computer Assisted Mechanistic Evaluation of Organic Reactions (CAMEO).”concepts[4]
conceptUSPTO — United States Patent and Trademark Office — “Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactions from the United States Patent and Trademark Office (USPTO) 33 used previously”concepts[5]
conceptUnited States Patent and Trademark Office — not defined in this paper's own words; the source of the patent reaction data set — “Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactions from the United States Patent and Trademark Office (USPTO) 33 used previously”concepts[6]
conceptWLDN — Weisfeiler-Lehman Difference Network — “The Weisfeiler-Lehman Difference Network (WLDN) used for ranking refinement is conceptually similar to the WLN”concepts[7]
conceptWeisfeiler-Lehman Difference Network — not defined in this paper's own words; the network that re-ranks candidate products — “The Weisfeiler-Lehman Difference Network (WLDN) used for ranking refinement is conceptually similar to the WLN”concepts[8]
conceptMachine learning models — not defined in this paper's own words; data-trained predictive models — “Machine learning models are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humans may only be able to recall the most common reaction types and general reactivity trends.”concepts[9]
concepthumans — not defined in this paper's own words; human chemists — “Machine learning models are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humans may only be able to recall the most common reaction types and general reactivity trends.”concepts[10]
conceptreaction — a set of changes in bond order in a collection of reactant molecules — “We describe a reaction as a set of changes in bond order in a collection of reactant molecules”concepts[11]

Full text — tagged

A graph-convolutional neural network model for the prediction of chemical reactivity Abstract We present a supervised learning approach to predict the products of organic reactionsterm·dom given their reactants, reagents, and solvent(s).

Introduction The prediction of reactionterm·dom outcomes is a fundamental exercise in chemistry. The ability to anticipate reactionterm·dom products correctly enables chemists to realize more quickly the chemical compounds that they desire and that form the basis of pharmaceutical, electronic, optical, and mechanical applications. A successful computational approach to this as-yet manual task could confirm chemist intuition about different modes of reactivity, enumerate potential side products preceding structural elucidation of a complex mixture, and validate retrosynthetic suggestions from a computer-aided synthesis planning program to increase the confidence of experimental success.

As a significant step toward this ultimate goal of reactionterm·dom evaluation, we address the task of predicting the major products of organic reactionsterm·dom based on the reactant, reagent, and solvent species. The methodology we describe below is directly applicable to the automated identification of not just major products, but all species in a mixture of products. This fulfills an additional need for impurity identification and quantification during process development, particularly in the context of drug substance manufacturing where it is essential to understand the exact composition of crude product mixtures. Reactionterm·dom evaluation also play central role in the hypothesize-make-measure iterative cycle underlying small molecule discovery. Small-scale high throughput experimentation has tremendously accelerated chemical synthesis, 1 , 2 but analysis and interpretation of results has lagged behind. A recent Merck study 3 employed MALDI-TOF MS for rapid online analysis or 1536 well plates in just 10 minutes. Yet with these high throughput analyses, one must specify which masses to quantify or inspect results manually – in the case of the Merck study, there were “nearly 400” distinct mass peaks to extract.

There is a rich history of computer-assistance in chemical synthesis 4 – 6 including this task of reaction predictionterm·key. In 1980, Jorgensen and coworkers introduced Computer Assisted Mechanistic Evaluation of Organic Reactionsterm·mth (CAMEOterm·mth). 7 This and other early approaches, including EROS, 8 IGOR, 9 SOPHIA, 10 and Robia 11 use expert heuristics to define possible mechanistic reactionsterm·dom. What most of these approaches have in common, advocated particularly strongly by Ugi, 9 is the desire to enable predictions of novel chemistry, i.e. , reactionsterm·dom that do not correspond to a previously known, codifiable reaction templateterm·key. However, none achieved broad use within the chemistry community.

Major developments in machine learning and data availability have enabled new approaches to this problem. 12 For specific reactionterm·dom families with sufficiently detailed reactionterm·dom condition data, machine learning can be applied to the quantitative prediction of yield. 13 Ideally, however, models could be trained on historical reactionterm·dom data to predict a broad range of reactionterm·dom families. One way to do so is by combining the traditional use of reaction templatesterm·key in cheminformatics with machine learning, either by learning to select relevant reactionterm·dom rules from a template library 14 , 15 or by learning to rank template-generated products. 16 Reaction templatesterm·key are the classic approach to codifying the “rules” of chemistry, 17 – 20 whose use dates back to Corey's synthesis planning program Logic and Heuristics Applied to Synthetic Analysis (LHASA). 21 Presently, decades later, reaction templateterm·key approaches continue to find extensive applications in computer-aided synthesis planning. 12 , 20 , 22 However, while reactionterm·dom rules are suitable for interpolating known chemistry to novel substrates, they leave no opportunity to describe reactionsterm·dom with even minor structural differences at the reactionterm·dom center. Other approaches have involved learning to propose mechanistic or pseudo-mechanistic reactionterm·dom steps, 23 – 26 but these require humanterm·dom annotations or heuristically-generated mechanisms in addition to published experimental results. At the other extreme, one can neglect all chemical domain knowledge and use off-the-shelf machine translation models to generate products directly from reactants. 27 , 28 Here, we describe a chemically-informed model that incorporates domain expertise through its architecture.

Our overall model structure ( Fig. 1 ) is designed to reflect how expert chemists approach the same task. First, we learn to identify reactive sites that are most likely to undergo a change in connectivity – this parallels the identification of reactive functional groups and consideration of how they might react, but without codifying rigid rules about functional group decomposition ( Fig. 1 : arrow 2). Next, we perform a focused enumeration of products that could result from those interactions subject to chemical valence rules ( Fig. 1 : arrow 3). We learn to rank those candidates – determining what modes of reactivity are most likely, as would a chemist – to produce the final prediction of major products ( Fig. 1 : arrow 4). By dividing the prediction task into these two stages of reactivity perception and outcome scoring, we can gain insight into the neural model's suggestions and find qualitative alignment with how chemists analyze organic reactivity. The key to the success of our approach is learning a representation of molecules that captures properties relevant to reactivity. We use a graph-based representation of reactant species to propose changes in bond order, introduced in a recent conference publication. 29 Graphs provide a natural way of describing molecular structure; nodes correspond to atoms, and edges to bonds. Indeed, graph theoretical approaches have been used to analyze various aspects of chemical systems 30 and even for the representation of reactionsterm·dom themselves. 31 As we show below, the formalization of predicting reactionterm·dom outcomes as predicting graph edits – which bonds are broken, which are formed – enables the design and application of graph convolutional models that can begin to understand chemical reactivity.

Schematic of the approach to predicting reactionterm·dom products. We represent the (A) pool of reactant molecules as a (B) attributed graph. A graph convolutional neural networkterm·mth learns to calculate (C) likelihood scores for each bond changeterm·key between each atom pair. The most likely changes are used to perform a focused, ranked enumeration of (D) candidate products, which are filtered by chemical valence rules. These candidates are then rescored by another graph convolutional network to yield (E) a probability distribution over predicted product species.

A quantitative analysis of model performance shows an accuracy of over 85.6%, 5.3% higher than the previous state-of-the-art, and performance on par with humanterm·dom experts for this complex prediction task. Predictions are made on the order of 100 ms per example on a single consumer GPU, enabling its application to virtual screening pipelines and computer-assisted retrosynthesis workflows. More importantly however, the model provides the capacity for collaborative interaction with humanterm·dom chemists through its interpretabilityterm·key. Despite the utility of high-performing black box models, we argue that understanding predictions is equally important. Reaction predictionterm·key models that operate on the level of mechanistic steps offer a clear parallel to how humanterm·dom chemists rationalize how reactionsterm·dom proceed. 23 – 26 The Baldi group's ReactionPredictor learns mechanisms from expert-encoded rules as a supervised learning problem 24 and Bradshaw et al. 's ELECTRO model reproduces pseudo-mechanistic steps as defined by an expert-encoded heuristic function. 26 Neither of these approaches enables models to develop their own justifications for predictions, and neither demonstrates perception of reagent effects. Schwaller et al. 's translation model can illustrate which reactant tokens inform which product tokens, 28 which is useful for predicting atom-to-atom mapping, but does not reveal chemical understanding and is not aligned with how humansterm·dom describe chemical reactivity.

Results Perceiving likely modes of reactivity We describe a reactionterm·dom as a set of changes in bond order in a collection of reactant molecules ( Fig. 1A ). More formally, we treat these reactant molecules as a single molecular graph where nodes and edges describe atoms and bonds, respectively ( Fig. 1B ). Reactionsterm·dom are thus a set of graph edits where the edges (or lack of edges) between two or more nodes are changed. One aspect of our approach is the fact that for most organic reactionsterm·dom in this data set, the reactionterm·dom center – the set of nodes and edges undergoing a change in connectivity – consists of a relatively small number of atoms and typically only up to 5 bonds (Table S1 † ). To be able to describe certain types of reactionsterm·dom not represented in this data set ( e.g. , cascade reactionsterm·dom involving many mechanistic steps occurring at many atoms throughout the molecule), this observation would need to be revisited.

As the first step in predicting reactionterm·dom outcomes, we predict the most likely changes in connectivity: the sets of (atom, atom, new bond order) changes that describe the difference between the reactant molecules and the major product. We train a Weisfeiler-Lehman Networkterm·mth (WLNterm·mth), 32 a type of graph convolutional neural networkterm·mth, to analyze the reactant graph and predict the likelihood of each (atom, atom) pair to change to each new bond order, including a 0th order bond, i.e. , no bond ( Fig. 1C ). The WLNterm·mth workflow is depicted in Fig. 2 and is described in the following paragraph. Mathematical details can be found in the ESI. † Weisfeiler-Lehman Networkterm·mth (WLNterm·mth) model for predicting likely changes in bond order between every pair of atoms. Starting from an (A) attributed graph representation of molecules, we (B) iteratively update feature vectors describing each atom by incorporating neighboring atoms' information. After multiple iterations of this embedding, (C) a local feature vector is calculated for each atom based on its updated representation and those of its neighbors. To account for the effects of disconnected atoms such as reagents, (D) a global attentionterm·key mechanism produces a context vector for each atom as a learned, weighted combination of all other atoms' local features. Finally, (E) a combination of local features and context vectors are used to predict the likelihood of bond changesterm·key for each pair of atoms.

The WLNterm·mth starts with, as input, the reactant graph. Atoms are featurized by their atomic number, formal charge, degree of connectivity, explicit and implicit valence, and aromaticity. Bonds are featurized solely by their bond order and ring status. We forgo more complex atom- and bond-level descriptors ( e.g. , partial charge estimates, surface area contributions) because these can be learned implicitly from the molecular structure and, empirically, do not improve performance. A local embedding iteratively updates atom-level representations by incorporating information from adjacent atoms, processed by a parameterized neural network. To account for the effects of distant atoms, e.g. , activating reagents, a global attentionterm·key mechanism is used whereby all atoms in the reactant graph attend to (“look at”) all other atoms; a global context vector for each atom is based on contributions from the representations of all atoms weighted by the strength of this attention. Pairwise sums of these learned atom-level representations, both from the local atomic environment and from the influence of all other species, are used to calculate the likelihood scores. The model is trained to score the true (recorded) graph edits highly using a sigmoid cross entropy loss function.

The combinatorial nature of candidate product enumeration is drastically simplified by restricting our enumeration to only draw from the most likely K bond changesterm·key. By using up to 5 unique bond changesterm·key to generate each candidate outcome – a decision based on the empirically-low frequency of reactionsterm·dom involving more than 5 simultaneous bond changesterm·key (Table S1 † ) – the number of candidates is bounded by where is the binomial coefficient. Valence and connectivity constraints substantially reduce the number of valid candidates produced by this enumeration ( Fig. 1D ).

Fig. 3 illustrates the efficacy of this approach. Using the same preprocessed training, validation, and testing sets of ca. 410k, 30k, and 40k reactionsterm·dom from the United States Patent and Trademark Officeterm·dom (USPTOterm·dom) 33 used previously, 28 , 29 we evaluate how frequently the true (recorded) product of a reactionterm·dom is included among the enumerated candidates, approximately normalized to the number of candidates. While an exhaustive enumeration of all possible bond changesterm·key guarantees 100% coverage, the subsequent problem of selecting the most likely outcome would be intractable. In this work, the parameter K can be tuned to simultaneously increase the coverage and increase the number of candidates; similar tuning is possible for the comparative template-based 16 and graph-based 29 enumeration strategies. In a template-based approach, one generally truncates the template library by only including templates that were derived from a certain minimum number of precedent reactionsterm·dom; a higher minimum threshold produces a template set covering more common reactionterm·dom types.

Performance of candidate enumerationterm·key approaches. The balance of generality and specified of can be tuned through different parameters for each method; x -axes have been scaled to approximately align the number of candidates per reactionterm·dom example. Learning likely modes of reactivity increases the likelihood of including the true major product in the set of candidates.

Evaluating candidate reactionterm·dom outcomes The set of valid product structures resulting from the focused enumeration requires additional evaluation and ranking to produce the final model prediction ( Fig. 1E ). We have previously treated the problem of ranking candidate products as an isolated task, 16 , 29 yet this fails to utilize a key aspect of the enumeration approach: candidate outcomes produced by combinations of more likely bond changesterm·key are themselves more likely to be the true outcome. The quantitative scores for each bond changeterm·key when perceiving likely modes of reactivity provides an initial ranking of candidate reactionterm·dom outcomes. The remaining evaluation task serves to refine these preliminary rankings, now taking into account the likelihood of each set of bond changesterm·key.

The Weisfeiler-Lehman Difference Networkterm·mth (WLDNterm·mth) used for ranking refinement is conceptually similar to the WLNterm·mth (details in the ESI † ). Reactants and candidate outcomes are embedded as attributed graphs to obtain local atom-level representations. For each candidate, a numerical reactionterm·dom representation is calculated based on the differences in atom representations between that candidate's atoms and the reactants' atoms. The overall candidate reactionterm·dom outcome score is produced by processing that reactionterm·dom representation through a final neural network layer and adding it to the preliminary score obtained by summing the bond changeterm·key likelihoods as perceived by the WLNterm·mth. The model is trained to score the true candidate outcome most highly using a softmax cross entropy loss function. The bond changesterm·key corresponding to the top combinations are imposed on the reactant molecules to yield the predicted product molecules, which are then canonicalized in terms of their SMILES 34 representation using RDKit. 35 Quantitative evaluation is performed on the same atom-mapped data set of 410k/30k/40k reactionsterm·dom from the USPTOterm·dom to enable comparison to 29 and 28. Statistics for this data set are shown in Fig. S5–S9. † For consistency, we explicitly exclude reactant species not contributing heavy atoms to the recorded products in the enumeration; that is, the model is made aware of which species are non-reactants. An exact match in product SMILES is required for a prediction to be considered correct. The performance comparison is shown in Table 1 .

Overall performance in reaction predictionterm·key. | θ | denotes the approximate size of the model (number of trainable parameters). Because all methods produce a ranked list of candidate outcomes, performance is reported in terms of top-1, 2, 3, and 5 accuracies The new model offers a substantial improvement in accuracy over the state of the art on this data set. In particular, the top-1, top-2, and top-3 accuracies are each over 5% higher, a significant reduction of the probability of mispredicting the major product. Comparisons to the data subset of Schwaller et al. 28 (Table S2 † ) and Bradshaw et al. 26 (Table S3 † ), can be found in the ESI. † Predictions are made in ca. 100 ms per example using a single Titan X GPU; a more detailed description of computational cost in terms of wall times for training and testing can be found in the ESI. † Fig. 4 shows model prediction performance broken down by the rarity of each reactionterm·dom in the test set as measured by the popularity of the corresponding reaction templateterm·key extracted from the training set. More common chemistries are empirically easier to predict, as one would expect from a data-driven approach to model reactivity. Reactionsterm·dom for which the corresponding template has fewer than 5 precedents (or none at all) are still predicted with >60% top-1 accuracyterm·var by the graph-based model, demonstrating its ability to generalize to previously unseen structural transformations.

Performance in reaction predictionterm·key by the model for the entire test set of 40 000 reactionsterm·dom (top) and for the human benchmarkingterm·key set of 80 reactionsterm·dom only in comparison to eleven humanterm·dom participants (bottom) as a function of reactionterm·dom rarity, where rarity refers to the popularity of the corresponding reaction templateterm·key extracted from the training set.

Human benchmarkingterm·key To evaluate the difficulty of this prediction task for humanterm·dom experts, we asked eleven humanterm·dom participants to write the likely major products for 80 reactionterm·dom examples from the test set. The 80 total questions have been divided into 8 categories of 10 randomly-selected questions each based on the rarity of the reaction templateterm·key that could have been used to recover the true outcome. Among the participants were chemistry and chemical engineering graduate students, postdocs, and professors. A performance comparison is shown in Fig. 4 , illustrating that the model performs at the level of an expert chemist for this prediction task. Though we present the quantitative results of the benchmarking study, this is a small-scale qualitative comparison and should be treated as such. Details of this study can be found in the ESI. † Because we are making predictions across a wide range of reactionterm·dom types, performing well on this task necessitates an esoteric knowledge of chemical reactivity. This highlights a key reason why our model is a useful addition to the synthetic chemists toolbox. Machine learning modelsterm·mth are well-suited to aggregate massive amounts of prior knowledge and apply them to new molecules, whereas most humansterm·dom may only be able to recall the most common reactionterm·dom types and general reactivity trends.

Interpreting model understanding In many deep learning applications, improved accuracy comes at the expense of interpretabilityterm·key. Some strategies for interpretation can be applied to models as black box mathematical functions, 36 but the insight into model behavior is only indirect. Instead, the architecture of deep learning models should inherently enable some degree of interpretabilityterm·key as has been done in natural language processing. 37 The global attentionterm·key mechanism in the WLNterm·mth, in addition to improving accuracy by accounting for reagent and other long-range effects, is designed to offer interpretabilityterm·key. The predicted reactivity of each atom pair is informed by the atoms' representations, which are in turn informed by their local and global environments. For example, a phenolic oxygen may not be inherently reactive, but in the presence of a strong base is amenable to various substitution or etherification reactionsterm·dom; in this scenario, we would expect oxygen to attend to a basic reagent in addition to its reacting partner. On the other hand, a diazo compound is of sufficient inherent reactivity that the local environment is all the model requires to predict the outcome accurately, and there is little information gained by attending to the global environment.

Fig. 5 depicts a series of correct predictions from the test set selected to showcase the diversity of correctly-predicted reactionterm·dom types. The model is able to make accurate predictions for common alkylations ( Fig. 5A and B ), for cases of ambiguous regioselectivity ( Fig. 5C and D ), and for various methods of halogenation ( Fig. 5E–G ). It can distinguish between use cases of similar reagents ( e.g. , alkyl magnesium species in Fig. 5H and I ) and recognize common metal-catalyzed ( Fig. 5J–L ) or other C–C bond forming reactionsterm·dom ( Fig. 5M ). It also is able to predict complex preparations of quaternary carbon centers ( Fig. 5N ), specialized preparations of difluoromethyl ethers ( Fig. 5O ), Schmidt ring expansions ( Fig. 5P ), amine nitrosations ( Fig. 5Q ), and Wittig reactionsterm·dom ( Fig. 5R ).

Correct predictions from the test set illustrating the neural model's learned chemical intuition and ability to make accurate predictions across a wide range of reactionterm·dom families. For each example (A–R), we select one atom (greenpersName highlight) and examine to what extent every other atom contributed to the perceived reactivity at that location (blue highlight, where a darker color indicates stronger influence). Note that these model-generated structures do not follow traditional drawing standards ( e.g. , use of abbreviations) in order to illustrate quantitative attention weights for each atom individually.

With each reactionterm·dom, we are able to examine which aspects of the reactant species most influences the model's perception of reactivity at the atom highlighted in greenpersName. A darker blue color indicates a larger attention score, which in turn indicates a stronger influence on its perceived reactivity. While these do not reveal information about reactionterm·dom mechanisms directly, they are a significant step beyond a black box prediction of major products. The global attentionterm·key mechanism reveals an explanation consistent with how we might justify the prediction in most cases by identifying suitable reactionterm·dom partners and activating reagents.

For example, Fig. 5A indicates that the iodide-substituted carbon's reactivity is influenced by the presence of suitable reactionterm·dom partners, namely the three most likely reactionterm·dom sites on the purine; Fig. 5D is similar. For the Suzuki coupling in Fig. 5L , the aryl boronic acid carbon attends to both the iodo- and bromo-sites of its potential coupling partners in addition to sodium carbonate; however, as the reactionterm·dom database often does not include catalysts even when employed in the actual experiments, the model does not rely on Pd(P(Ph) 3 ) 4 as an indication of reactivity. The tertiary carbon in Fig. 5N attends to chloroiodomethane most strongly, but also attends to Cs 2 CO 3 as an activating base. In cases where reactivity can be correctly predicted based on solely local feature vectors ( Fig. 5G and Q ), attention scores are low and do not reveal additional insight.

Although only the correct rank-1 products are shown above, the model always predicts a probability distribution over multiple product species. An example of impurity prediction showing the top six predictions can be found in Fig. S1. † Several examples where the model predicts the recorded outcome as the second-most likely (rank-2) are shown in Fig. S2 and S3. † These “near-misses” are primarily cases where the model predicts an intermediate or a plausible side product, discussed in the ESI. † Fig. S4 † shows additional examples where the recorded outcome is not predicted in the model's top-10 suggestions. The full set of predictions for all 40 000 test reactionterm·dom examples is available online in addition to the original code and data.

Conclusion By designing a neural model to be aligned with how domain experts (chemists) might analyze a problem, we exceed state-of-the-art accuracy in reactionterm·dom outcome prediction while simultaneously understanding how the model perceives chemical reactivity. Neural networks are therefore not resigned to be used as black box tools, nor are applications of machine learning techniques in chemistry restricted to off-the-shelf models. Model rationales provide insight to humanterm·dom experts and may support new human-machine collaborations for mechanism discovery. In predicting reactionterm·dom outcomes, the model considers variables in a manner qualitatively similar to that of a humanterm·dom, namely the presence of suitable reactionterm·dom partners and the effects of reagents and catalysts. The data set covers a broad range of common reactionterm·dom types that would be found in medicinal and process chemistry settings. We believe that predictive models will have a large role to play in the future of automated experimentation, both to effectively use reactionterm·dom data and to assist in the interpretation thereof.

Funding This work was supported by the DARPA Make-It program under contract ARO W911NF-16-2-0023 and the Machine Learning for Pharmaceutical Discovery and Synthesis Consortium; CWC received additional funding from the NSF GRFP under Grant No. 1122374.

Conflicts of interest Authors declare no competing interests.

Supplementary Material Click here for additional data file.

Click here for additional data file.

Click here for additional data file.

Acknowledgments We thank members of the MIT Department of Chemistry and Department of Chemical Engineering who participated in the human benchmarkingterm·key study.

Footnotes References Associated Data Supplementary Materials Click here for additional data file.

Click here for additional data file.

Click here for additional data file.

Interpretive notes.
• Highlighted spans are tagged entities: persName (author), title (venue), placeName (place), date (year), and term (a key concept: domain / ai / method).
• Eponymous or retrospective terms (e.g. “Nash equilibrium”, “segregation”) do not appear in the original source and so are not highlighted — a deliberate choice (see Report 4).
• Some entries begin with a word in capitals. EVIDENCE CORRECTED means the finding still stands and it was our quotation that was wrong — it has been replaced. RETRACTED means the entry itself was wrong; it stays on the page, marked, with its reason, rather than being deleted. WITHDRAWN AND REPLACED means a corrected version of it appears in the entries below. Each mark carries its own reason, because the reasons differ from one entry to the next. An entry we have WITHDRAWN is removed from this page and kept in the record, with its reason. A line reading Audit and a date is a later re-reading of the entry against its whole sentence: DOUBTFUL means it was kept, and the reason says what is loose about it.
• Quotation marks inside the tagger's sentence. Where a tag is the tagger's own sentence, a phrase in quotation marks inside it is borrowed from the paper — the tagger's wording around it is not. The paper's own sentence is the evidence quote shown on the same row, so the borrowing can be checked against the thing borrowed from without leaving this page. Nothing inside quotation marks anywhere on this page is ours: if it is quoted, it is the paper's. Whose words a concept carries. A concept entry records a term the paper itself uses, so the term, the sense given for it, and its evidence are the paper's own words, quoted where the paper fixes them. This is the opposite of a sense entry in the tag table, which is the tagger's sentence about how the paper uses a term. Where a concept entry could not be grounded in the paper's words, the entry says so on its own row.
• Counts: 1 work · 1 date.
Meta-Tagging Project · record coley2019-graph-convolutional-chemical-reactivity.
© 2026 Shir Sivroni