In Preparation · 2026

ReTRACE: Chemically Auditable Large Language Model Agent for Multi-Step Retrosynthesis Planning

A frozen LLM orchestrating heterogeneous chemistry engines with auditable route evaluation

Single-step retrosynthesis models have high coverage but uneven validity, and classic tree search couples the planner to one engine and one reward. ReTRACE lets a frozen LLM plan at the route level — proposing, verifying, and restructuring whole synthetic routes with auditable, multi-dimensional feedback.

Jinxiang Xie, Yijian Zhang, Hao Dong
Nanjing University
ReTRACE system architecture and decision instances
System architecture with two decision instances from real search trajectories. An LLM coordination layer runs a Reason–Act–Observe loop over a chemistry tool layer (molecular operations, template-based and template-free single-step engines, building-block buyability lookup, and 3-dimensional route scoring). Every model–tool interaction passes deterministic guarantee gates; a route memory outside the loop preserves partial routes, past disconnection decisions, and abandoned branches as prior context. The lower panels show the agent adjudicating conflicting single-step suggestions and diagnosing a failed route before backtracking.
Overview
Computer-aided synthesis planning is dominated by two paradigms: score-guided tree search (MCTS, Retro*) that expands one disconnection at a time under a fixed value function, and RL-trained policies bound to a single prediction engine. Both make locally optimal choices that chemists cannot easily audit.

ReTRACE takes a different route: a frozen large language model — no task-specific training — acts as a strategic orchestrator over a harness of chemistry tools: multiple complementary single-step engines, precedent retrieval over literature routes, and a multi-dimensional route evaluator covering feasibility, cost, and greenness. The agent reasons over whole candidate routes, keeps every intermediate decision in an auditable trace, and terminates only when all leaf molecules pass a frozen buyability check against a commercial stock catalog.

Key Ideas

01

Route-Level Reasoning

Instead of scoring one bond disconnection at a time, the agent proposes, critiques, and restructures entire routes — it can reject a strategy, switch disconnection classes, and repair non-purchasable leaves.

02

Frozen Orchestrator

The planner is a frozen LLM — no fine-tuning on reaction data. Chemistry knowledge enters through the tool harness: heterogeneous single-step engines with complementary coverage, plus retrieval over literature precedent routes.

03

Auditable Evaluation

Every route is scored on feasibility, cost, and greenness, and every accepted route must ground each step in model or precedent evidence. Chemists can inspect why a route was chosen, not just the final answer.

04

Strict Termination

A route only counts as solved when every leaf is purchasable under a frozen stock catalog — preventing the silent "unsolved leaf" failure mode that inflates success rates in synthesis planning.

Agent Search vs. Classical Tree Search

Tree search vs agent-guided route search
Both paradigms iterate — the difference is the decision granularity inside each iteration. Score-guided tree search (left) selects and expands nodes within a fixed action space under a scalar value estimate. The agent-guided loop (right) abstracts the target's strategic challenges, proposes routes via retrosynthesis tools, critiques mechanisms and feasibility, and restructures routes before committing a forward synthesis plan.

Why Multiple Engines: Validity ≠ Coverage ≠ Exact Match

Single-step engine pool audit on USPTO-50K
Auditing nine single-step engines on 50,000 USPTO-50K reactions. (a) Whether a candidate is generated, whether it is structurally valid, whether it passes chemical-plausibility audit, and whether it exactly reproduces the reference precursors are four different questions — a single top-k accuracy cannot capture a tool's value for route planning. (b) A multi-engine top-10 union outperforms any single engine's top-100 in reference-precursor coverage. (c) After structural filtering, each engine retains unique exact hits — the engines are genuinely complementary.

Route-Level Performance

ReTRACE route-level performance
(a) Pass@k of two frozen backbones (GPT-5.5 and Qwen3.6-35B-A3B) on Retro*-190, FDA30, and JMC2025, under the same ReTRACE tool stack and a fixed independent LLM audit protocol. (b) Audited Pass@1 on Retro*-190 alongside values reported by prior work (cross-protocol literature numbers, shown for context rather than as a same-protocol ranking). (c) Length distribution of the first passing route relative to the stock-truncated reference route — first passing routes are frequently shorter.

Route-Level Iterative Search

ReTRACE route-level iterative search
Route-level iterative search on a real target. The agent proposes and verifies an initial route (Route 1), saves it and explores reordered variants (Routes 2–3), then escapes the local optimum by switching to new disconnection classes (Routes 4–5). Route 5 — a Suzuki / oxa-Michael strategy with a repaired purchasable leaf — scores highest and is selected. The agent optimizes for route quality, not just route length.

Wet-Lab Validation

ReTRACE-proposed routes for two target compounds were taken into the lab. The predicted retrosynthetic framework provided the core disconnection strategy and initial plan; bench chemists refined conditions where the prediction had limitations (e.g., a phosphorylation step with a competing free-carboxyl side reaction, and a late-stage Suzuki coupling on a hindered substrate), substantially shortening route exploration.

Compound C1: predicted vs experimental synthesis route
Compound C1. (a) ReTRACE-predicted synthetic route with predicted conditions and theoretical yields; (b) the experimentally optimized route based on the prediction, with actual conditions and isolated yields.
Compound C2: predicted vs experimental synthesis route
Compound C2. (a) Predicted synthetic route with predicted conditions and theoretical yields; (b) the experimentally optimized route, with actual conditions and isolated yields (three-step yield 51%).

Status

Manuscript in preparation. The system is evaluated on Retro*-190, FDA30, and JMC2025 with a fixed independent audit protocol, complemented by wet-lab validation of predicted routes and proof-of-concept demonstrations of natural-language steerability (cost-first / green-chemistry-first planning, chemist-feedback revision, and pluggable enzymatic-tool extension).