LiteFold on November 25, 2026 released RetroBench, an open benchmark where language models plan how to synthesize molecules backward from purchasable building blocks. The harness is RetroEnv, an RL environment with nine chemistry tools and a verifier that accepts any valid route—not a single answer key. GRPO training on Qwen3.8-27B produced LiteRetro-27B at 33.8% pass@1 on 150 test tasks, up from 11.8% for the base model—roughly on par with Claude Haiku 5.5 in the same setup.
Why retrosynthesis is an agent problem, not a flashcard quiz
Retrosynthesis asks: given a target molecule, which sequence of reactions leads back to compounds you can buy? Medicinal chemistry teams care because shorter routes mean fewer steps, less waste, and faster iteration.
Classic benchmarks often match published routes. RetroEnv deliberately does not. A model wins if every step is supported by a frozen reaction library and every leaf sits in a 102,915-molecule inventory built from PaRoutes patent data (CC BY 4.0). Matching a known patent only adds a small bonus—so novel valid routes count.
That design fits tool-using agents more than one-shot SMILES completion:
- Agents search stock, inspect scaffolds, and validate disconnections before
emit_routes. - Failures are verifiable (unsupported reaction, false stock claim, broken JSON).
If you already run OpenAI intrinsic protein design or science agent demos, RetroEnv is the chemistry-shaped cousin: long horizons, structured tools, hard verifier.
RetroEnv tools and frozen world rules
Molecular planning metaphor for LiteRetro-27B retrosynthesis route agents
LiteFold gives agents nine tools. Eight explore; emit_routes is the only terminal action.
| Tool | Role |
|---|---|
inspect_molecule | RDKit formula, rings, stereochemistry |
pubchem_lookup | Local canonicalization; names need frozen cache |
stock_retrieve | Inventory access capped at 20 hits per query |
reaction_precedent_search | Analogues from training-split-visible reactions |
validate_disconnection | Proposed cut vs library, no answer leak |
reaction_class_lookup | Template class for a cut |
reaction_conditions_search | Frozen reagents from similar reactions |
search_literature | Frozen patent references |
emit_routes | Submit reasoning-grounded route DAGs for grading |
No live web search. LiteFold blocked open internet access so models cannot look up the answer instead of planning. Training reactions stay hidden from search tools so rollouts cannot peek at held-out tasks.
Tasks span 78,505 targets with easy / medium / hard splits by route length and complexity. The test set is leak-checked against patents, scaffolds, and near-duplicates.
Benchmark board: frontier vs open weights
LiteFold evaluated 12 models on 30 tasks (10 per difficulty, four attempts each) and 150 tasks (one attempt each).
Closed frontier (30 tasks, pass@4).
- GPT-6 Astra and GPT-6.1 Sol: 90.0% pass@4, 76.7% pass@1 each.
- Claude Sonnet 5.5: 76.7% pass@4.
Open and Chinese models (150 tasks, pass@1).
- Kimi-K2.6: 29.1% (partial run at snapshot time).
- Qwen3.8-2.4T-A95B: 23.3%.
- Base Qwen3.8-27B: 11.8%.
- Gemma-4-31B: 0% on both splits in the published table.
Harness effects matter. LiteFold notes Kimi-K2.6 burned all 20 turns without submitting when not told turn counts; GLM-5.3 hit token limits before first tool calls. Scores reflect agent discipline, not chemistry alone—similar to ShellBench real-world agents and WorldDistillation device control lessons.
Shaped reward: fixing the 26% hack rate
Shortcut reward hack blocked in shaped RetroEnv RL training
The first composite reward paid for valid JSON and supported partial steps even when no buyable leaf existed. LiteFold measured 26% of failed submissions beating the worst solved route on reward—a classic Goodhart pattern discussed in RLVR surveys.
Their shaped reward uses non-overlapping bands:
- Solved: 0.70–1.00 scaling with route quality.
- Failed: 0–0.20 based on how close precursors get to real stock.
A stop-after-one-cut submission fell from 0.603 to 0.055 reward. That alignment unlocked GRPO signal where 165 training groups previously had no within-group variance.
For RL engineers, the auto-research loop LiteFold describes—587 probes, four checks (hack margin, stop-early, rank gap, learning signal)—is reusable outside chemistry. Pair it with AWS Strands Decider when you tune agent rewards in production.
Training LiteRetro-27B: thinking on, peak then decline
Setup.
- Base: Qwen3.8-27B, LoRA, GRPO (DeepSeekMath lineage).
- Pools: 2,000 easy tasks, then 2,000 mixed (600 easy / 1,000 medium / 400 hard).
- Thinking:
--thinking --reasoning-effort lowfor training runs that mattered.
Results (150 test tasks, pass@1).
- Base: 11.8% overall; 3.5% on hard third.
- Best checkpoint (Run 4, step 525): 33.8% overall; 12.5% hard tier.
- pass@4 on 30 tasks: 56.7% vs 23.3% pre-training (~2.4×).
LiteFold compares LiteRetro-27B to Haiku 5.5 at 35.3% vs 33.8% on 150 tasks—within noise of 150-task eval.
Honest limitation. Training peaked then declined (Run 3 fell from 0.323 to 0.180 by step 775). LiteFold suspects missing KL-to-base penalty in the trainer and lists early stopping at peak as a mitigation. Merged-adapter bug before November 9 invalidates some older checkpoints—read training_config.json in their public runs bucket before citing numbers.
How to reproduce
LiteFold ships commands in the research post and FineEnvs README:
uv sync --extra dev --extra eval
python train/jobs/hf_job.py train \
--mode async --bucket <owner>/<bucket> \
--flavor h200x8 --vllm-gpus 3 \
--task-pool train/sweeps/train-easy2k.txt \
--round-tasks 4 --generations 32 --updates-per-round 4 \
--inflight 128 --reward shaped --lr 1e-4 \
--steps 200 --save-steps 25 --name <run> --submit
Eval on the 150-task core set with four attempts:
python train/jobs/hf_job.py eval \
--bucket <owner>/<bucket> --set core150 \
--harness training --attempts 4 --temperature 0.8 \
--thinking --reasoning-effort low \
--checkpoint /outputs/<run>/checkpoint-<n> \
--name <name> --submit
Artifacts.
- Weights: FineEnvs/retroenv-qwen3.8-27b-grpo (Apache 2.0).
- Data: LiteFold/RetroEnv and RetroEnv-Curated (CC BY 4.0).
- Playground: Hugging Face Space linked from the post for hand-play trajectories.
Hardware. Runs used H200 and A100 via Hugging Face Jobs; Run 4 training job ~17 hours after resume.
Where this fits your stack
Drug-discovery agents. Use RetroEnv as a gated eval before you trust open science models on synthesis planning.
General agent teams. The inventory search + validate + emit pattern mirrors computer-use benchmarks—swap RDKit for DOM APIs.
Open-model roadmaps. 27B + GRPO + shaped verifier rewards is a repeatable recipe alongside Qwen harness adapters and InclusionAI medical MoE releases.
Comparing RetroEnv to other science agent benchmarks
| Benchmark | Domain | Verifier style | Open weights |
|---|---|---|---|
| RetroEnv | Retrosynthesis | RDKit + reaction library | LiteRetro-27B |
| ProofAtlas | Mathlib problems | Proof checker | Leaderboard only |
| OpenHuman conjectures | Research proposals | Human + formal mix | Mixed |
| ShellBench | CLI tasks | Command outcome | Harness open |
RetroEnv’s niche is long-horizon tool use with a domain-specific DAG. If your team already runs Nightwatch computer-use agents, port the harness discipline—frozen tools, terminal-only actions, no web peeking—before you port the chemistry.
Limits LiteFold discloses
- Patent leakage risk: public routes may appear in pretraining corpora; LiteFold flags this openly.
- No yield or safety: supported library steps ≠ green chemistry.
- Inventory staleness: stock list reflects PaRoutes, not today’s catalog prices.
- Claude Opus 5.5 refusals: 78/120 attempts on 30 tasks declined on safety—distorts naive pass rates.
Episode anatomy: what a good rollout looks like
LiteFold’s Space trajectories show inspect → stock search → validate → emit loops. Strong GPT-6 rollouts commit early to a disconnection after validate_disconnection returns support. Weaker open-base runs spin on reaction_precedent_search without narrowing SMARTS queries.
Debugging checklist.
- Log
emit_routesJSON failures—94% of broken trees in training were bracket miscounts. - Compare
stock_retrievehit rate; sub-90% leaf validity usually means inventory search not reaction skill. - Turn on turn-count hints if you fork the harness; Kimi-style agents never submit otherwise.
- Score with
shapedreward during training butpass/failfor leaderboard comparability.
Enterprise and therapeutics positioning
LiteFold closes the post by inviting biology and chemistry teams that need custom environments. That mirrors Harvey’s legal agent benchmark—vertical verifier, public leaderboard, services upsell.
For pharma ML.
- Treat LiteRetro-27B as planning copilot, not ELN replacement.
- Keep human chemist sign-off on route safety; library does not score toxicity.
- Benchmark your internal model with
eval/run_eval.pybefore wet-lab purchase orders.
For agent platform vendors.
- RetroEnv is a template for any DAG-shaped tool env (PCB layout, CAD, supply chain).
- The shaped-reward search story is portable to delegent SLM subagents cost tuning.
Replication week-one plan
- Clone FineEnvs and run hand-play Space on one easy task.
- Eval base Qwen3.8-27B with four attempts on
core150before trusting LiteRetro weights. - Archive
training_config.jsonwhen citing 0.338—peaked checkpoints differ from final step. - Post failure traces (redacted) to internal Slack using LiteFold’s error taxonomy.
If you ship chemistry agents to customers, add RetroBench numbers to security questionnaires beside NCSC agentic offense guidance—verifiable envs reduce “trust me” demos.
Cost note. LiteFold trained on H200x8 and A100 pools via Hugging Face Jobs; reproduction is not a laptop overnight unless you subset tasks. Budget several GPU-hours even for eval-only reruns with four attempts per task. Start with eval-only on core150 to baseline your endpoint before you book GPUs. Published ~27h + ~61h + ~17h job times are author-reported for the merged LiteRetro checkpoint, useful for budget slides even if your fleet differs.
