Abstract
Retrosynthetic planning often assumes deterministic reaction outcomes, leading to fragile plans that fail in the laboratory. We present retro-fallback, a search algorithm that treats reaction success as a stochastic process. By optimizing for the Successful Synthesis Probability (SSP)—the likelihood that at least one plan in a portfolio succeeds—retro-fallback identifies more robust synthesis strategies. Our experiments across standard benchmarks demonstrate that retro-fallback consistently achieves higher SSP than traditional algorithms like MCTS and retro*, without sacrificing plan quality.
Introduction
Retrosynthesis is the process of deconstructing a target molecule into simpler precursors. While AI has improved this process, a significant gap remains between computational predictions and experimental success. Current planners typically seek a single "optimal" path, ignoring the inherent uncertainty of chemical reactions. If the primary path fails, the chemist is often left without a viable alternative. This paper introduces a fundamental shift: treating retrosynthesis as a stochastic process where the goal is to find a robust portfolio of backup plans.
Methodology
Stochastic Formulation and SSP
We model reaction feasibility and material buyability as random variables rather than fixed facts. This allows us to define the Successful Synthesis Probability (SSP), which quantifies the probability that at least one synthesis plan found by an algorithm will work in the lab. Calculating the exact SSP is NP-hard, but we employ a polynomial-time approximation using recursive equations and sampling to guide the search.
The Retro-fallback Algorithm
Retro-fallback is a greedy search algorithm designed to maximize SSP. Unlike traditional algorithms that use single cost estimates, retro-fallback takes multiple samples from feasibility models and uses dynamic programming to estimate the success probability of different branches. It expands the "frontier" molecule that offers the highest expected improvement to the overall portfolio's success probability.
Experimental Results
Performance and Robustness
We evaluated retro-fallback on the USPTO, GuacaMol, and FusionRetro benchmarks. In head-to-head comparisons against popular algorithms like MCTS and retro*, retro-fallback consistently achieved significantly higher mean SSP across all tested scenarios. It found at least one working plan for a larger percentage of molecules, particularly on the challenging USPTO set.
Diversity and Quality
Traditional algorithms often find redundant plans that share the same risky bottleneck reaction. Retro-fallback naturally prefers diverse plans because a backup that fails for the same reason as the primary plan adds zero value to the SSP. Importantly, this focus on robustness does not sacrifice plan quality; the shortest plans found were comparable in length to those from algorithms specifically designed to minimize steps.
Conclusion
Retro-fallback bridges the gap between digital planning and lab execution by explicitly accounting for uncertainty. By optimizing for a portfolio of plans rather than a single path, it provides chemists with more reliable options. Future work will focus on incorporating continuous metrics like yield and purity, as well as refining the algorithm to optimize for a specific "Top-K" set of plans.
Summary updated