The USPTO Dataset is a foundational corpus of chemical reactions algorithmically extracted from U.S. patents, typically represented as SMILES strings. It provides the large-scale, structured data required to train sequence-to-sequence models like the Molecular Transformer to learn the mapping between products and reactants without relying on hand-coded rules.
Glossary
USPTO Dataset

What is USPTO Dataset?
The USPTO Dataset is a large, publicly available chemical reaction corpus extracted from United States patent literature, serving as a standard benchmark for training and evaluating retrosynthesis and forward reaction prediction models.
Curated versions, such as the USPTO-50k subset, provide high-quality atom mapping and reaction class labels, enabling rigorous benchmarking of template-based and template-free retrosynthesis algorithms. Its public availability has made it the de facto standard for measuring round-trip accuracy and advancing data-driven synthetic planning.
Key Characteristics
The USPTO dataset is a foundational, large-scale chemical reaction corpus extracted from United States patents. It serves as the primary benchmark for training and evaluating data-driven models in retrosynthesis and forward reaction prediction.
Massive Scale and Public Access
The dataset contains millions of chemical reactions, making it one of the largest publicly available resources for reaction informatics. Its scale is critical for training deep learning models that require vast amounts of data to generalize effectively.
- Total Reactions: Over 3 million unique reactions in recent filtered versions.
- Source: Extracted from U.S. patent grants and applications from 1976 onwards.
- Accessibility: Freely available, fostering reproducible research and lowering the barrier to entry for computational chemistry.
Reaction SMILES Representation
Reactions are canonically represented as Reaction SMILES strings, a line notation that encodes reactants, agents, and products separated by the '>' symbol. This format is directly consumable by sequence-based models like the Molecular Transformer.
- Format:
reactant1.reactant2>agent1>product1 - Atom Mapping: High-quality versions include atom-to-atom mapping, which is essential for identifying the reaction center and training template-extraction algorithms.
- Utility: Enables direct translation tasks where the model learns to map a product SMILES string back to its precursor reactants.
Benchmarking and Data Splits
Standardized data splits are crucial for fair model comparison. The USPTO dataset is commonly divided into subsets to benchmark different generalization capabilities.
- USPTO-50K: A curated subset of 50,000 reactions across 10 reaction classes, widely used for single-step retrosynthesis benchmarking.
- USPTO-MIT: A popular split using 80% for training, 10% for validation, and 10% for testing, often filtered to remove duplicate and erroneous reactions.
- USPTO-Full: The complete dataset used for pre-training large models, testing scalability, and evaluating performance on rare reaction types.
Data Cleaning and Preprocessing
Raw patent data is noisy and requires rigorous preprocessing to be useful for machine learning. Key cleaning steps directly impact model performance.
- Atom Mapping: Algorithms like RXNMapper or Indigo are used to establish atom correspondence, a prerequisite for extracting reaction templates.
- Reagent Removal: Reagents and solvents are often stripped to focus the model on the core structural transformation between reactants and products.
- Canonicalization: SMILES strings are canonicalized to ensure a one-to-one representation of molecular structures, preventing data leakage from different tautomeric or stereochemical forms.
Reaction Class Classification
Reactions in the USPTO dataset can be categorized into specific types based on the structural transformation at the reaction center. This enables the development of specialized, class-conditioned models.
- Top Classes: Include heteroatom alkylation, acylation, C-C bond formation, deprotection, and functional group interconversion.
- Class Tokenization: A special token representing the reaction class is often prepended to the input sequence, conditioning the model to generate context-specific predictions.
- Imbalanced Distribution: The dataset has a highly skewed class distribution, requiring techniques like oversampling or weighted loss functions to prevent model bias towards common reactions.
Limitations and Biases
Despite its scale, the USPTO dataset has known biases that affect the real-world applicability of trained models.
- Patent Bias: Reactions are reported to demonstrate novelty, leading to an overrepresentation of complex, late-stage functionalizations and an underrepresentation of simple, robust transformations.
- Positive Result Bias: Failed reactions are rarely reported, creating a skewed view of chemical space that lacks negative examples for training classifiers.
- Yield Reporting: Reaction yields are inconsistently recorded and often omitted, making it difficult to train accurate yield prediction models directly from this source.
Frequently Asked Questions
Explore the most common questions about the USPTO chemical reaction dataset, the foundational benchmark for training and evaluating modern retrosynthesis and forward reaction prediction models.
The USPTO dataset is a large, publicly available collection of chemical reactions meticulously extracted from United States patent literature. It serves as the primary benchmark for training and evaluating deep learning models in computational chemistry, specifically for tasks like retrosynthesis planning and forward reaction prediction. Its importance stems from its scale—containing millions of expert-curated reactions—and its diversity, covering a vast swath of the chemical space actually used in industrial and medicinal chemistry. Unlike theoretical datasets, the USPTO corpus represents real-world synthetic knowledge, making it indispensable for building practical AI systems that can propose viable synthetic routes to novel drug candidates.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Understanding the USPTO dataset requires familiarity with the core retrosynthesis and reaction prediction concepts it enables. These terms form the foundation of AI-driven synthetic chemistry.
Atom Mapping
The process of establishing a one-to-one correspondence between atoms in reactants and products. The USPTO dataset's value is significantly enhanced by high-quality atom mapping, which explicitly labels the structural transformation at the reaction center.
- Essential for extracting reaction templates
- Enables precise reaction center identification
- Underpins the training of forward reaction prediction models
Template-Based Retrosynthesis
A retrosynthetic strategy that applies a pre-defined library of reaction rules or subgraph patterns extracted directly from reaction databases like USPTO. The model identifies a matching template for the target molecule and applies the corresponding disconnection.
- Relies on the diversity and coverage of the USPTO training corpus
- Produces chemically interpretable and valid precursors
- Limited by the scope of the extracted template library
Molecular Transformer
A sequence-to-sequence transformer architecture that treats reaction prediction as a SMILES-to-SMILES translation task. Trained extensively on the USPTO dataset, it learns to map reactant strings to product strings without explicit rule extraction.
- Achieved state-of-the-art top-1 accuracy on USPTO benchmarks
- Captures implicit reaction knowledge beyond hand-coded rules
- Uses self-attention to model long-range dependencies in molecular sequences
Reaction Role Labeling
The task of classifying each molecule in a reaction record as a reactant, reagent, solvent, catalyst, or product. The raw USPTO dataset often lacks this distinction, requiring preprocessing to separate molecules that actively participate in bond changes from spectators.
- Critical for training models on clean reaction data
- Prevents models from learning spurious correlations with solvents
- The Pistachio dataset is a commercially curated alternative with expert-labeled roles
Round-Trip Accuracy
A validation metric that measures the consistency of a retrosynthesis model. The predicted reactants are fed into a forward prediction model, and the output is checked against the original target molecule.
- A high score indicates that the retrosynthetic disconnection is chemically reversible
- Used as a primary benchmark for models trained on USPTO data
- Exposes models that propose invalid or unstable synthons
Forward Reaction Prediction
The computational task of predicting the major product of a chemical reaction given a set of reactants and reagents. This is the inverse of retrosynthesis and is often trained on the same USPTO data to validate retrosynthetic proposals.
- Used to filter out unfeasible retrosynthetic suggestions
- Models learn to rank product distributions for reactions with multiple outcomes
- Essential for building a complete closed-loop synthesis planning system

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us