ReTRACE: Feedback-Guided LLM Agent in a Chemistry Harness for Retrosynthesis Planning
Abstract
Computer-aided retrosynthesis has progressed through single-step prediction, tree search and route scoring, yet complex targets still require route-level judgement where stereochemistry, functional-group compatibility, cost and greenness interact.
Here we present \textbf{\mbox{ReTRACE}} (\textbf{RE}trosynthesis with \textbf{T}ool-orchestrated \textbf{R}easoning \textbf{A}nd \textbf{C}ontext-aware \textbf{E}vidence), an agent that places a large language model (LLM) inside a deterministic chemistry harness integrating molecular tools, heterogeneous single-step prediction engines, purchasable building-block libraries, an external route memory and a multi-criterion evaluator.
To assess chemical validity beyond stock termination, we introduce Audit@k, a two-stage metric combining programmatic structural checks with adversarial LLM review that closely tracks expert judgement.
ReTRACE learns from harness feedback on two timescales: within a run, it diagnoses weak sub-scores and backtracks to revise disconnections; across runs, trajectories and audit verdicts are distilled through a three-stage post-training pipeline into an open-weight coordinator, ReTRACE-27B, which completes routes for all 40 evaluation targets and raises Audit@1 from 11/40 (27.5\%) to 23/40 (57.5\%).
Across Retro*-190, JMC2025 and FDA30, ReTRACE with GPT-6.2 Astra achieves Audit@1 of 97.9\%, 99.3\% and 96.7\%, and Audit@10 of 99.5\%, 100.0\% and 100.0\%, respectively.
Two prospective wet-lab syntheses demonstrate that ReTRACE proposals translate into executable procedures after expert revision.