Chemist-aligned retrosynthesis by ensembling diverse inductive bias models

Krzysztof Maziarz, Guoqing Liu, Hubert Misztela, Austin Tripp, Junren Li, Aleksei Kornev, Piotr Gaiński, Holger Hoefling, Mike Fortunato, Rishi Gupta, Marwin Segler

TL;DR

RetroChimera is a new retrosynthesis framework that achieves state-of-the-art performance by ensembling two models with fundamentally different "inductive biases": a graph-based template model and a sequence-based transformer. Beyond just higher accuracy, the model excels at predicting rare reactions and—most impressively—produces synthetic routes that expert organic chemists actually prefer over the original literature "ground truth."

What Problem Does This Paper Address?

Retrosynthesis—the process of working backward from a target molecule to identify simpler starting materials—is the cornerstone of drug discovery and chemical manufacturing. While AI models have made strides, they face three major hurdles:

  1. The "Rare Reaction" Problem: Models struggle with chemical transformations that appear infrequently in training data but are strategically vital for complex syntheses.
  2. Hallucinations: Generative models often propose "chemically impossible" molecules that look plausible but violate the laws of bonding.
  3. Chemist Misalignment: Standard metrics (like top-k accuracy) often reward models for mimicking noisy or suboptimal literature data rather than proposing the most elegant or robust synthetic route.

Methods

The authors introduce RetroChimera, which uses a novel learning-to-rank ensembling strategy to fuse predictions from multiple sources (Figure 1).

Figure 1: Our framework for ensemble-based retrosynthesis with learned reranking which underpins RetroChimera. The ensemble receives a target molecule as the input, which is then processed by the constituent models. The model outputs are then aggregated using a learning-to-rank strategy. While in this work we only investigate deep learning models as prediction sources (solid boxes), it is possible to add additional sources, for example calls to reaction databases or human-in-the-loop queries, which will be addressed in future work (dashed box).

The framework relies on two new constituent models:

  • NeuralLoc (The "Editor"): A graph-based model that selects a reaction template and then uses a "localization" head to pinpoint exactly where that template applies to the molecule. This solves a common problem where symmetric molecules confuse standard template-matching algorithms (Figure 2).
  • R-SMILES 2 (The "Creator"): A de-novo Transformer model that generates reactant strings from scratch. It incorporates modern architectural improvements from the Large Language Model (LLM) world, such as Group-Query Attention (GQA) and SwiGLU activations, to improve both speed and accuracy.

The "magic sauce" is the learned reranking. Instead of simple averaging, the system learns a weighting function ($\theta$) that accounts for the relative strengths of each model at different ranks.

Datasets

The researchers benchmarked their system across several datasets:

  • USPTO-50K & USPTO-FULL: The standard public benchmarks for retrosynthesis.
  • Pistachio: A massive, high-quality proprietary dataset (3.5x larger than USPTO-FULL). The authors created a new "time-split" test set from 2024 data to ensure no temporal leakage.
  • Novartis Internal Data: Used for a zero-shot transfer experiment to see how well the model generalizes to real-world medicinal chemistry without any additional training.
  • SimpRetro: A dataset specifically for testing multi-step synthesis search.

Key Insights and Ideas

  • Diversity Trumps Raw Power: The ensemble performs best when the constituent models are different. Combining two Transformers yields diminishing returns, but combining a GNN-based "editor" with a Transformer-based "creator" allows the system to cover each other's blind spots.
  • The Denoising Effect: Chemical literature is messy; patents and papers often contain errors in stereochemistry or missing reagents. Because RetroChimera learns the underlying "logic" of chemistry from millions of examples, it can effectively "denoise" the data, proposing a correct reaction even when the ground truth in the test set is flawed (Figure 6).
  • Soft Reaction Database: For well-known reactions, the model achieves nearly 100% recall, essentially acting as an intelligent, searchable database of all known organic chemistry.
Figure 6: Examples of RetroChimera "denoising" literature data.

Key Results

  • New State-of-the-Art: RetroChimera outperformed all major existing models on USPTO benchmarks, particularly in top-10 and top-50 accuracy.
  • Chemist Preference: In double-blind AB tests, PhD-level organic chemists preferred RetroChimera’s top predictions over the actual literature ground truth ~64% of the time (Figure 3e). This is a landmark result, suggesting AI is beginning to surpass the quality of its own training data.
  • Robust Generalization: The model showed strong performance on the Novartis internal dataset in a zero-shot setting, proving it isn't just memorizing its training set but has learned generalizable chemical principles.

Limitations and Future Work

While RetroChimera significantly reduces hallucinations, it doesn't eliminate them entirely, especially when pushed far outside its training distribution. The authors also note that systematic errors in the underlying training data (like poorly curated reaction conditions) still pose a challenge.

Future work aims to expand the ensemble to include non-ML sources, such as direct lookups in reaction databases or even "human-in-the-loop" queries, to create an even more robust synthesis planning assistant.

Summary updated

Abstract

Chemical synthesis remains a critical bottleneck in the discovery and manufacture of functional small molecules. AI-based synthesis planning models could be a potential remedy to find effective syntheses, and have made progress in recent years. However, they still struggle with less frequent, yet critical reactions for synthetic strategy, as well as hallucinated, incorrect predictions. This hampers multi-step search algorithms that rely on models, and leads to misalignment with chemists' expectations. Here we propose RetroChimera: a frontier retrosynthesis model, built upon two newly developed components with complementary inductive biases, which we fuse together using a new framework for integrating predictions from multiple sources via a learning-based ensembling strategy. Through experiments across several orders of magnitude in data scale and splitting strategy, we show RetroChimera outperforms all major models by a large margin, demonstrating robustness outside the training data, as well as for the first time the ability to learn from even a very small number of examples per reaction class. Moreover, industrial organic chemists prefer predictions from RetroChimera over the reactions it was trained on in terms of quality, revealing high levels of alignment. Finally, we demonstrate zero-shot transfer to an internal dataset from a major pharmaceutical company, showing robust generalization under distribution shift. With the new dimension that our ensembling framework unlocks, we anticipate further acceleration in the development of even more accurate models.
BibTeX
@inproceedings{maziarz2025chemist,
  author = {Krzysztof Maziarz and Guoqing Liu and Hubert Misztela and Austin Tripp and Junren Li and Aleksei Kornev and Piotr Gaiński and Holger Hoefling and Mike Fortunato and Rishi Gupta and Marwin Segler},
  title = {{Chemist-aligned retrosynthesis by ensembling diverse inductive bias models}},
  booktitle = {SIMBIOCHEM @ EurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=FrCL5fDLJl},
}
Figure