arXiv · 2026

ReTRACE: Feedback-Guided LLM Agent in a Chemistry Harness for Retrosynthesis Planning

An LLM coordinator that plans whole synthetic routes with chemistry tools, learns from evaluator feedback during search and leaves experimental judgement to chemists

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.

Jinxiang Xie1,†, Yijian Zhang1,†, Qingyuan Yi2, Jianyi Wang2,*, Hao Dong1,*
1Nanjing University  ·  2School of Medicine, Guangxi University  ·  †Equal contribution  ·  *Corresponding authors
ReTRACE harness, two decision instances from real search trajectories and the response to score feedback within a run
The ReTRACE harness. a, An LLM coordinator works inside a harness of heterogeneous chemistry tools, deterministic gates that check every tool call, tool result and saved route, and a route memory that carries partial routes, past decisions and abandoned branches into the next round. Route scores return to the coordinator as feedback; ranked routes are judged by Audit@k, and selected routes go to chemist review and wet-lab synthesis. b, Adjudicating conflicting single-step suggestions. c, Diagnosis and backtracking after a lower-scoring route. d, In 670 completed Retro*-190 runs, the best score so far and the chance that at least one route passes the audit rise and level off after about eight scored routes.

ReTRACE Assistant

Enter or draw a target molecule. ReTRACE plans candidate routes, scores each one and shows which tools support every step.

ReTRACE Route planner
Model ReTRACE-27B
Search effort

Ranked routes for your target appear here.

Planning quota used up

今日额度不足,请明天再试

Today's planning quota is used up. Please try again tomorrow.

Routes are computational proposals for expert review, not experimentally validated procedures. Structure editor: JSME (BSD licence).

Abstract
Computer-aided retrosynthesis has advanced through single-step prediction, tree search and route scoring, but complex targets still require judgement over the whole route, where stereochemistry, functional-group compatibility, cost and greenness interact. Here we present ReTRACE (REtrosynthesis with Tool-orchestrated Reasoning And Context-aware Evidence), an agent that places a large language model (LLM) in a chemistry harness that integrates molecular tools, complementary single-step prediction engines, a purchasable starting-material library, a route memory and a multi-criterion route evaluator. Routes are judged by a new metric that combines programmatic checks with adversarial LLM review, and its verdicts are compared with a synthetic chemist's. The agent learns continually from evaluator feedback during search, diagnosing weak routes and backtracking to revise them. With Claude Opus 4.8, at least one of the top 10 routes proposed by ReTRACE passed the audit for 87.4%, 95.0% and 86.7% of targets on the three benchmarks. Two prospective wet-lab syntheses show that ReTRACE route proposals can be converted into executable procedures after expert revision.

Contributions

  1. 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.

  2. 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.

  3. 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.

  4. 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.

87.4%Audit@10 on Retro*-190
Claude Opus 4.8
95.0%Audit@10 on JMC2025
Claude Opus 4.8
96.6%Route-level agreement with a
synthetic chemist (κ = 0.93)
Retro*-190 (N = 190)JMC2025 (N = 141)FDA30 (N = 30)
Controller / baselineRun@1@10Run@1@10Run@1@10
ReTRACE · Claude Opus 4.897.970.087.499.382.395.093.370.086.7
ReTRACE · GPT-5.6 Sol standard100.065.882.6100.075.992.2100.076.790.0
ReTRACE · Qwen3.6-35B-A3B91.623.734.792.224.843.3100.030.063.3
Retro*85.873.773.795.080.980.986.753.353.3
Codex (GPT-5.6 Sol standard)98.932.132.1100.040.440.4100.030.030.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

Validity, reference recovery and complementarity of ten single-step engines, and engine agreement in planned routes
Ten single-step engines on 50,000 USPTO-50K reactions. a, Share of reactions with output, with a rank-1 prediction that passes RDKit screening, with a rank-1 prediction that passes the LLM audit, and with an exact top-1 reference match. b, Reactions recovered within the top 10 by that engine alone. c, Share of the row engine's top-10 misses that the column engine recovers. d, Route steps in the Retro*-190 runs that passed or failed the audit, by the number of runtime engines that proposed the step. The top-10 union of all ten engines recovers the reference precursors for 98.6% of reactions. ChemBART ranks fourth on top-10 recovery but accounts for most of the reactions that no other engine hits.

Route-Level Control

Conventional tree-search control and ReTRACE route-level control, with one real decision trajectory
a, Conventional MCTS or Retro* controllers repeatedly select, expand, evaluate and backpropagate within a fixed candidate space. ReTRACE instead runs an agent loop that diagnoses weak steps, introduces alternative precursors and restructures a route before saving it. b, Five routes saved for one representative target. Routes 2 and 3 only reorder the steps of Route 1, Route 4 uses a Boc-last assembly, and Route 5 changes the disconnection class and reaches the highest score (0.8316) after its unpurchasable BPin–aryl ether leaf is disconnected further.

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.

Initial ReTRACE routes and chemist-revised experimental routes for compounds C1 and C2
Each panel compares the initial ReTRACE route with the chemist-revised experimental route. a, Compound C1 required a revised protection strategy and an earlier Suzuki coupling; the final click step gave C1 in 67% yield. b, Compound C2 retained the core sequence, with localized substrate and condition changes. Full procedures, characterization data and spectra are in the paper's appendix.

Where Routes Fail

Chemical failure modes identified by the route-level adversarial audit
Of the 1,250 routes returned by GPT-5.6 Sol (standard) on Retro*-190, 497 (39.8%) failed the audit, mostly on chemical contradictions within the route rather than formatting. a, Failed routes grouped by the first fatal family: (A) skeletal carbons appear or vanish, (B) wrong connectivity, regiochemistry or ring size, (C) the reagent cannot effect the change, (D) no known mechanism. b, A Knoevenagel condensation that loses a carbon. c, An oxa-Michael addition drawn at the wrong carbon, giving the wrong ring size. d, A one-step δ-carboline construction in which the nitrogen count falls without a nitrogen-containing leaving group.

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.

Citation

@misc{xie2026retrace, title={ReTRACE: Feedback-Guided LLM Agent in a Chemistry Harness for Retrosynthesis Planning}, author={Jinxiang Xie and Yijian Zhang and Qingyuan Yi and Jianyi Wang and Hao Dong}, year={2026}, eprint={2610.24744}, archivePrefix={arXiv}, primaryClass={cs.AI}, url={https://arxiv.org/abs/2610.24744}, }