ReTRACE: Feedback-Guided LLM Agent in a Chemistry Harness for Retrosynthesis Planning
Complex targets need judgement over the whole route, where stereochemistry, functional-group compatibility, cost and greenness interact. ReTRACE gives a large language model a harness of molecular tools, complementary single-step engines, a purchasable starting-material library, a route memory and a multi-criterion route evaluator, then checks every proposed route with an independent audit.
ReTRACE Assistant
Enter or draw a target molecule. ReTRACE plans candidate routes, scores each one and shows which tools support every step.
Ranked routes for your target appear here.
Routes are computational proposals for expert review, not experimentally validated procedures. Structure editor: JSME (BSD licence).
Contributions
-
01
Single-step engines are complementary
A large-scale audit of ten single-step engines on 50,000 USPTO-50K reactions shows that they contribute complementary candidates. This motivates a harness that keeps heterogeneous evidence and lets the LLM weigh it at route level.
-
02
A harness and a route-level metric
We build the harness and compare ReTRACE with classical and LLM controllers on three route-level benchmarks under Audit@k, a new metric whose verdicts we check against a synthetic chemist.
-
03
Learning from evaluator feedback
We examine how the agent learns from feedback within a run, through decision trajectories and a tool ablation, and across runs, through a first attempt to train the model on harness trajectories.
-
04
Prospective wet-lab validation
Two prospective syntheses test whether ReTRACE routes can be turned into executable procedures after expert revision.
Route-Level Results
Audit@k is the share of all targets with at least one audit-passing route among the top k candidates. Failed runs and targets without output count as failures. Every method goes through the same frozen two-stage audit: programmatic checks and a step-by-step LLM review, then an independent defence of every route flagged as fatal.
Claude Opus 4.8
Claude Opus 4.8
synthetic chemist (κ = 0.93)
| Retro*-190 (N = 190) | JMC2025 (N = 141) | FDA30 (N = 30) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Controller / baseline | Run | @1 | @10 | Run | @1 | @10 | Run | @1 | @10 |
| ReTRACE · Claude Opus 4.8 | 97.9 | 70.0 | 87.4 | 99.3 | 82.3 | 95.0 | 93.3 | 70.0 | 86.7 |
| ReTRACE · GPT-5.6 Sol standard | 100.0 | 65.8 | 82.6 | 100.0 | 75.9 | 92.2 | 100.0 | 76.7 | 90.0 |
| ReTRACE · Qwen3.6-35B-A3B | 91.6 | 23.7 | 34.7 | 92.2 | 24.8 | 43.3 | 100.0 | 30.0 | 63.3 |
| Retro* | 85.8 | 73.7 | 73.7 | 95.0 | 80.9 | 80.9 | 86.7 | 53.3 | 53.3 |
| Codex (GPT-5.6 Sol standard) | 98.9 | 32.1 | 32.1 | 100.0 | 40.4 | 40.4 | 100.0 | 30.0 | 30.0 |
Percentages. Run = run success, the share of targets whose run completed and returned at least one route. Bold marks the highest Audit@k in each dataset. External baselines share the target sets, the stock-termination criterion and the frozen audit but keep their native controllers and budgets, so the comparison is outcome-level, not compute-matched. Retro* returns one route per target. The fast and thorough GPT-5.6 Sol presets and the tool-group ablations are in Table 1 of the paper.
To check the audit against human judgement, a researcher with a background in synthetic chemistry reviewed 59 candidate routes (274 reaction steps) for the first six Retro*-190 targets. Agreement with the automatic audit was 96.6% at route level (57/59; Cohen's κ = 0.93), 95.8% for rank-1 routes (23/24; κ = 0.91) and 97.4% at step level (267/274; κ = 0.89). In the tool ablation with Claude Opus 4.8, removing single-step prediction lowered Audit@1 from 70.4% to 42.3% on the 189 comparable targets.
Complementary Single-Step Engines
Route-Level Control
Prospective Wet-Lab Validation
A computational audit can exclude detectable structural and mechanistic contradictions, but it cannot show that a route runs as proposed. For two targets outside every benchmark set, ReTRACE generated routes before any wet-lab work. Synthetic chemists then reviewed and revised them and ran the syntheses. A synthesis counted as successful only when the target was isolated and its structure confirmed.
Where Routes Fail
Scope
- Decision support, not certification. ReTRACE proposes and ranks routes, and chemists decide what to run. Passing the audit means no detectable structural or mechanistic contradiction. It does not mean the route is optimized or executable as written.
- Human in the loop. Route memory persists on disk, so a session can be resumed, chemists can add feedback or constraints, and the agent continues planning from the saved state.
- Extensible harness. New expert tools, such as enzymatic single-step predictors, can be added without changing the coordinator. Preference steering, chemist feedback and a chemo-enzymatic case are reported in the paper's appendix.
- Post-training is still open. SFT and GRPO on harness trajectories did not exceed their base models, and on-policy self-distillation passed fewer rank-1 routes than its base (9 versus 16 of 40). We leave harness-informed post-training to future work.