TLDR: RetroTrim is a new retrosynthesis system that uses an ensemble of three diverse reaction scoring strategies (Reaction Prior, Reaction Graph Plausibility, and Reaction Retrieval Score) to effectively filter out chemically unsound or “hallucinated” reactions. Evaluated by expert chemists on challenging drug-like targets, RetroTrim successfully eliminated all hallucinated pathways and found the highest number of high-quality synthetic routes, significantly improving the trustworthiness of automated retrosynthesis.
In the world of chemistry, designing new molecules, especially for drugs, often involves a complex process called retrosynthesis. This is like working backward from a desired final product to figure out the simpler starting materials and the sequence of chemical reactions needed to create it. With the rise of artificial intelligence and generative models, retrosynthesis has seen significant advancements. However, these powerful AI tools sometimes produce “hallucinations” – chemically unsound or nonsensical reactions that are impossible or highly impractical to perform in a lab. These errors can be very costly and time-consuming to identify and correct.
A new research paper, titled “Trustworthy Retrosynthesis: Eliminating Hallucinations with a Diverse Ensemble of Reaction Scorers,” introduces a novel system called RetroTrim. Developed by researchers at Molecule.one, RetroTrim aims to solve the critical problem of hallucinations in retrosynthesis, making the process more reliable and efficient for drug discovery and other chemical applications. You can find the full research paper here: Trustworthy Retrosynthesis Paper.
The Challenge of Hallucinations
Generative AI models are excellent at proposing many possible reaction pathways. However, without proper validation, many of these proposed reactions might not be chemically feasible. Identifying these “hallucinated” reactions is a major bottleneck. Current methods for evaluating retrosynthesis often rely on metrics that don’t fully capture chemical plausibility, and human expert review is time-consuming and expensive.
Introducing RetroTrim: A Multi-Scorer Approach
RetroTrim tackles this challenge by combining a high-performing reaction generator with an ensemble of diverse reaction scoring strategies. Think of it as having multiple expert chemists review each proposed reaction from different angles. This ensemble approach, known as a “meta-scorer,” acts as a powerful filter, pruning out unreliable reactions before they lead to dead ends in the synthesis plan.
RetroTrim employs three main scoring components:
-
Reaction Prior (RP): This scorer is inspired by how experienced chemists think about reactions. It uses a sophisticated machine learning model to assess the overall feasibility, the specific reactive sites, and the selectivity of a proposed reaction, essentially mimicking a chemist’s intuition.
-
Reaction Graph Plausibility (RGP): This component uses a graph neural network to distinguish between valid and implausible reactions. It’s trained on a mix of real reactions and artificially generated incorrect ones, helping it learn to spot various types of chemical incompatibilities.
-
Reaction Retrieval Score (RRS): This scorer checks if a proposed reaction has any known experimental precedents in existing chemical databases. If a reaction is similar to something already documented, it’s more likely to be plausible. This helps catch grossly incorrect reactions that have no chemical history.
The Meta-Scorer then intelligently combines the insights from these three individual scorers. By leveraging their distinct strengths and error patterns, it provides a more robust and accurate assessment of reaction correctness, effectively filtering out hallucinations and undesirable reactions.
Rigorous Human Evaluation
To truly measure the effectiveness of RetroTrim, the researchers developed a novel and rigorous evaluation protocol. PhD-level chemists meticulously reviewed over 4,500 generated reactions, categorizing them based on seven types of issues (e.g., Magic, Selectivity, Unstable) and three levels of severity (Nonsense, Rather Not, Worthwhile, and Safe Bet). “Nonsense” reactions are considered hallucinations, while “Safe Bet” reactions are fully reliable.
RetroTrim was tested on 32 challenging, novel drug-like targets, specifically curated to avoid data leakage and reflect modern drug structures. This ensured a fair and representative evaluation of the system’s performance.
Also Read:
- DemoDiff: A Foundation Model for In-Context Molecular Design
- DualResearch: Enhancing AI Scientific Reasoning with Dual-Graph Information Fusion
Key Achievements of RetroTrim
The results are impressive. RetroTrim was the only system among those compared that successfully eliminated all hallucinated reactions (“Nonsense” pathways) for the challenging set of targets. Furthermore, it achieved this while also finding the highest number of high-quality, flawless synthetic routes. The study demonstrated that each individual scorer has unique strengths in identifying different types of issues, and their combination in the Meta-Scorer leads to superior overall performance.
This work represents a significant step forward in making automated retrosynthesis more trustworthy and practical for real-world applications, particularly in the demanding field of medicinal chemistry. By providing a robust method to filter out chemically unsound predictions, RetroTrim promises to accelerate the design and synthesis of new molecules.


