OPRD-Imp: a dataset of experimentally observed impurities and side products in multi-step pharmaceutical syntheses

Heejeong Kim, Seonbin Kim, Jihwan Kim, Tim Pinkhassik, Magdalena Lederbauer, Suong Tran, Connor W. Coley, Juyoung Yoon, Joonyoung F. JoungarXiv 2026 · arXiv

TL;DR

OPRD-Imp is a first-of-its-kind, expert-curated dataset specifically designed to track the "messy" side of chemistry: reaction impurities and side products. By extracting 784 impurity entries from 229 multi-step pharmaceutical reactions, the authors provide a high-quality benchmark that allows machine learning models to move beyond predicting just the major product and start tackling the real-world challenges of process chemistry and regulatory compliance.

What Problem Does This Paper Address?

In the world of machine learning for chemistry, we’ve become quite good at predicting the "intended" outcome of a reaction. However, in pharmaceutical manufacturing, the "unintended" outcomes—impurities—are often more consequential. Even trace amounts of a side product can trigger regulatory delays, necessitate costly purification steps, or introduce toxicity.

The bottleneck isn't just the complexity of the chemistry; it’s a lack of data. Large-scale datasets like the USPTO or the Open Reaction Database (ORD) focus almost exclusively on major products. Impurities are rarely systematically annotated, leaving a critical blind spot for researchers trying to build models that can predict and mitigate side-product formation.

Methods

The authors turned to the journal Organic Process Research & Development (OPRD), where process chemists are professionally obligated to identify and control impurities. The construction of OPRD-Imp followed a rigorous, manual workflow:

  1. Publication Collection: Searching OPRD for papers explicitly discussing "impurity validation."
  2. Structured Extraction: Trained chemists manually reviewed PDFs and supporting information to extract reaction conditions, structures, and—crucially—direct quotes from the text as evidence for each impurity.
  3. Expert Curation: A three-round validation process by expert curators to ensure chemical plausibility and correct origin labeling.
  4. Standardized Representation: All structures were converted to canonical SMILES strings.
Overview of the dataset construction workflow

What sets this method apart is the preservation of multi-step connectivity. The dataset doesn't just treat reactions in isolation; it tracks how an impurity from step one might "carry over" or be chemically transformed in step three.

Datasets

The paper introduces OPRD-Imp, which contains:

  • 229 reactions sourced from 62 publications (2002–2026).
  • 784 impurity entries categorized by their mechanistic origin.
  • Comparison benchmarks: The authors compare the chemical classes in OPRD-Imp to the massive USPTO (~0.97M reactions) and Pistachio (~4.3M reactions) datasets to show that while major products align with standard sets, impurities represent a different, more complex chemical space.

Key Insights and Ideas

  • The "Unrecognized" Chemistry: When the authors ran impurities through standard reaction classifiers (like NameRxn), they found that 58% of genuine minor products were labeled as "Unrecognized." This suggests that impurities often involve complex rearrangements, over-reactions, or competing pathways that aren't captured by traditional "named reaction" ontologies.
  • Mechanistic Origin Labels: The dataset classifies impurities into four distinct categories:
  • minor_product: Formed during the current step.
  • SM_impure: Present in the starting material.
  • carryover: Inherited unchanged from a previous step.
  • SM_impure_carryover: A starting material impurity that gets chemically transformed.
  • Impurity Propagation: By linking sequential steps, the dataset allows researchers to model the "provenance" of an impurity, tracing it back to its original source across a synthetic route.
Representative multi-step synthetic route illustrating impurity origin classification and cross-step propagation

Key Results

  • Density of Data: The dataset reveals a median of three impurity entries per reaction, with some complex process development scenarios reporting ten or more.
  • Route Lengths: Most synthetic routes in the dataset consist of 2 to 5 steps, providing a realistic window into pharmaceutical intermediate synthesis.
  • Classification Divergence: While the major products in OPRD-Imp are "almost indistinguishable" from those in USPTO/Pistachio, the impurities are significantly enriched in "Resolution" (unreacted precursors) and "Unrecognized" classes, highlighting the unique challenge of impurity prediction.
Figure 3. Statistical overview of the dataset. (a) Distribution of the 62 source publications by publication year. (b) Distribution of the number of impurity entries per reaction. (c) Number of major products (229) and of impurity entries in each origin category (784 in total). (d) Distribution of synthetic route lengths, i.e., the number of reaction steps recorded per publication.

Limitations and Future Work

  • Scale vs. Quality: With only 229 reactions, OPRD-Imp is small compared to modern ML datasets. The authors explicitly prioritized "annotation reliability over scale," intending it as a high-quality benchmark rather than a massive training set.
  • Quantification: While the authors captured quantitative data (like HPLC area percentages) during extraction, it is not yet included in the released JSON schema due to inconsistent reporting styles across different papers. Normalizing this data is a goal for future versions.
  • Negative Examples: An empty impurity list in the dataset doesn't necessarily mean no impurities were formed; it simply means none were reported. The authors caution that these should be treated as "unannotated" rather than "negative examples" for model training.

Summary updated

Abstract

Predicting reaction impurities is a critical yet persistently data-limited challenge in pharmaceutical process chemistry. While machine learning models for reaction outcome prediction have advanced rapidly, benchmarking their ability to predict impurities remains impractical due to the absence of curated, publicly accessible datasets. We present OPRD-Imp, a dataset of 229 organic reactions drawn from 62 publications in Organic Process Research & Development, each annotated with experimentally observed impurities and their mechanistic origins. A total of 784 impurity entries is provided, classified into four origin categories. Reactions are represented as reaction SMILES and impurities as individual SMILES strings, with multi-step synthetic route connectivity preserved. All data were manually extracted from the source publications by trained chemists following a standardized extraction protocol, with expert chemical validation and manual structure drawing. OPRD-Imp is intended to serve as a benchmark resource for evaluating models that predict reaction impurities, providing experimentally reported impurity annotations and mechanistic origin labels that are not systematically represented in conventional reaction datasets.
BibTeX
@misc{kim2026oprd,
  author = {Heejeong Kim and Seonbin Kim and Jihwan Kim and Tim Pinkhassik and Magdalena Lederbauer and Suong Tran and Connor W. Coley and Juyoung Yoon and Joonyoung F. Joung},
  title = {{OPRD-Imp: a dataset of experimentally observed impurities and side products in multi-step pharmaceutical syntheses}},
  year = {2026},
  eprint = {2611.07488},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07488},
}
Figure