RetroEnv: HillClimbing Models to Synthesize Molecules with AutoResearch as Optimizee

LiteFold Research, Adithya S K (🤗 Hugging Face) ·

AutoResearch can tune a reward without hacking it.

We are releasing RetroEnv, a reinforcement learning environment for retrosynthesis, built from published chemical routes. A model is given a target molecule and works backwards with tools, and a verifier grades every step of the route it submits against a frozen library of recorded reactions and a frozen inventory of building blocks. There is no answer key to match, so any route the chemistry supports counts, even one that nobody has published.

We first ran 13 models on it, and then trained an open one, Qwen3.8-27B, with reinforcement learning. We call the result LiteRetro-27B. On 150 test tasks it went from solving 11.8% before training to 33.8% at its best checkpoint, and on the 30 tasks we share with the board it solved 14, close to the 12 of Claude Sonnet 5.5. Along the way we found that our initial reward could be gamed, and we show how a shaped reward fixes it. The tasks and a hand-play Space are public.

Tasks Solved

RetroEnv is open. The tasks, the inventory and the reaction library are on Hugging Face as RetroEnv and RetroEnv-Curated, and the environment runs as a Space with a hand-play interface. The code is in an open pull request of the FineEnvs repository.

Introduction

Retrosynthesis is the process of proposing synthesizable routes for a target molecule. Ideally, the shorter the route, the more efficient it is, because there are fewer reactions to run, and each one costs time, reagents and some of the product.

You are provided with an inventory, which is a set of building blocks that you are allowed to start from, or to bring in at some intermediate step. You are expected to come up with a directed acyclic graph that ends up being a valid route. Each step in the graph is a reaction, and every leaf of the graph is something from the inventory.

Consider the graph below. We gave a model a target molecule, and it proposed two ways to make it. The first route (colored in orange) takes two reactions: it first cuts the target at an ester hydrolysis, and then joins an indole and a quinoline with an SNAr reaction.

The second route (colored in navy blue) skips the ester and does that same joining directly, in a single reaction. Both routes are valid, because every branch of each one ends on a building block from the inventory, and the two routes even use the same quinoline building block. Since the second route gets there with one reaction instead of two, it is also the more efficient of the two.

Figure: A route is a graph. The target sits at the top, each reaction splits a molecule into simpler precursors, and every branch has to end on a building block from the inventory.

However, a graph alone is not enough, because we need some grounding for how it was generated. Anyone can draw reactions between molecules, and without grounding there is no way to differentiate that from a hallucination. That's why we ask for reasoning-grounded DAGs, where every node and edge is explainable. The language model writes the reasoning behind each step of the route, so a reader can follow why it made that move.

Figure: The same route with its reasoning. For every reaction, the model names the reaction class and explains why the step makes sense. Select a reaction to read it.

That's why, today, we are excited to release RetroEnv: a reinforcement learning environment for retrosynthesis, built from published chemical routes. A model is given a target and works backwards with tools, and a verifier grades the routes it submits, step by step, against a frozen library of recorded reactions and a frozen inventory of building blocks.

The part we find most interesting is how we designed our reward. We built a simple auto-research loop1 that runs many experiments to find a reward function made of several smaller rewards, and tunes the weight of each one.

$ R = \alpha_1 r_1 + \alpha_2 r_2 + \cdots + \alpha_n r_n $

where $R$ is the composite reward, $r_i$ are the individual reward components, and $\alpha_i$ are their weights.

At first, the reward and the evaluation did not agree, which is how a reward gets hacked.2 A submission that failed the evaluation could get the same reward as one that passed it: in our data, 26% of the failed submissions scored higher than the worst solved one. The loop, with a human keeping watch over it, is what got the two to agree.

Our key contributions are the environment with its tools and inventory, a benchmark of 13 models, a study of how the reward can be gamed together with a shaped reward that fixes it, and a series of training runs that took an open 27B model from solving 11.8% of the test tasks, with thinking on, to solving 33.8% at its best checkpoint, which we call LiteRetro-27B.

To evaluate RetroEnv, we first ran 13 models on 30 tasks, where GPT-6.1 Sol and GPT-6 Astra solved 17, Claude Opus 5.5 solved 15, Claude Sonnet 5.5 solved 12, and Qwen3.8-27B solved 3. We then trained Qwen3.8-27B with reinforcement learning on the environment, and call the result LiteRetro-27B. On 150 test tasks it solved 11.8% before training, with thinking on, and 33.8% at its best checkpoint, and on the hard third of the tasks it went from 3.5% to 12.5%. On the 30 board tasks, that checkpoint solved 14, close to the 12 of Claude Sonnet 5.5.

RetroEnv

We used the published PaRoutes3 as the raw data source to build RetroEnv. From it we built 78,505 tasks, and we cut 13,800 of them into the curated sets that we train and evaluate on. A task is one target molecule, the maximum number of steps a route may take, and how many different routes we want back.

For some tasks, we add an additional constraint, such as a reaction class that may not be used or building blocks that have been taken off the shelf. We further split the tasks into easy, medium and hard by route length and chemical complexity. We also make sure the test set is a proper held-out set and does not leak anything into the training data. A test task shares no patent, route molecule, reaction, scaffold group or near-duplicate with any training task.

The Environment Setup

We start with a frozen inventory, which consists of 102,915 building blocks. Any route that the agent suggests has to end on these building blocks. A list of 100K+ molecule names is too long to keep inside the prompt, so the inventory is not part of it.

We designed a simple search for the inventory, where the agent looks for the molecule it needs. It can look for a molecule by its exact structure, by chemical class, by substructure or by similarity, with at most 20 results per query. The chemical classes come from our own ontology of ten common functional groups, such as alcohols, amines and aryl halides.

However, structuring the inventory like this lets the agent understand the molecule, look in the right place and decide whether what it finds is a useful starting point.

The agent reaches the inventory, and the rest of the environment, through nine tools. Eight of them let it look around, and the last one is the only way to finish.

Tool What it does
inspect_molecule RDKit formula, scaffold, rings, charge and stereo
pubchem_lookup Canonicalizes a SMILES locally; names and CAS numbers need a frozen cache
stock_retrieve The only access to the inventory: exact, InChIKey, class, SMARTS or similarity search, capped at 20 results
reaction_precedent_search Capped analogues from the reactions visible from the training split
validate_disconnection Checks a cut that the agent proposes against the reactions and templates it can see, without returning a route
reaction_class_lookup The class of a proposed cut, from the same labeller the verifier uses, or other
reaction_conditions_search Frozen reagents and conditions from similar reactions
search_literature Frozen patent references of similar reactions
emit_routes The only terminal action: parses, verifies and scores the submitted routes

We specifically did not give the agent a web search, because it could look the answer up instead of working it out. Everything the agent can see is frozen, no tool can read the known routes of a task, and the reactions of a training task are hidden from the search tools, so a rollout cannot look up its own answer.

Figure: An episode of Claude Opus 5.5 on one easy test task, from the prompt it was given to the grade the verifier gave its routes. For each call, you can see what the model asked and what the environment returned.

Once the agent is done with its reasoning and search, it submits one or more routes, including the reasoning behind each of them. A route represents how a possible reaction pathway could look to get to a target molecule. The submission is graded once, and the episode ends.

Here is the Hugging Face Space, where you can see all the agent trajectories in much more detail.

Evaluations

We evaluated 13 models on 30 tasks from the test split. They consist of 10 easy, 10 medium and 10 hard problems. Every model gets the same prompt, with a budget of 16 turns and 32 tool calls. We did this with thinking turned off, except for the models that cannot turn it off, which ran at their lowest effort.

A submission is graded on whether the model gives a valid route, which means the answer comes with a valid JSON structure. We also observe whether every step of the route is supported by the library and whether every starting molecule is in the inventory. Matching a known patent route only adds a small bonus, because there is no answer key to match. During evaluations, we do not do any repair of the JSON. Hence a broken JSON scores zero, and we count a refusal as a failure. The overall evaluations cost us 100 USD (yes, 100).

  • Claude: Claude Opus 5.5 solved 15 of the 30 tasks and Claude Sonnet 5.5 solved 12. Opus declined 6 of the 30 tasks, and it cannot turn thinking off either, so it ran at its lowest effort. Claude Haiku 5.5 solved 2.
  • GPT: GPT-6.1 Sol and GPT-6 Astra solved 17 each, the best on the board. Neither can turn thinking off, so both ran at their lowest effort.
  • DeepSeek: DeepSeek-V4.1-Flash solved 9 and DeepSeek-V4-Pro solved 4, so the Flash model did better than the Pro model.
  • Open models: Qwen3.8-27B, the model that we train later, solved 3. Gemma-4-31B solved none.

Figure: The tasks solved out of 30 by each of the 13 models, split by difficulty. Only the two GPT models and Claude Opus 5.5 solved as many as four of the 10 hard tasks.

We show the whole board with its intervals further down, where our own model joins it.

In our second attempt of evaluation, we looked closer at what the models do. We ran six models on 30 easy test tasks: Claude Opus 5.5, Claude Sonnet 5.5, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna and Qwen3.8-27B. Each had one attempt, a budget of 24 turns and 48 tool calls, and its default thinking setting. So this run is not the board above, and the GPT-5.6 models here are not the GPT-6 models of the board. We scored them on five metrics:

  1. Pass@1: the fraction of tasks where the model submitted enough valid routes.
  2. Mean reward: the average reward of the attempt, a weighted blend of everything the verifier checks. This is the signal for RL, and not a pass or fail.
  3. Steps: the fraction of proposed reactions that the library supports.
  4. Stock: the fraction of submitted leaves that are in the inventory.
  5. Exact route: the fraction of tasks where a valid submitted route matches a known patent route, step for step.

Figure: The five metrics for six models on 30 easy test tasks, one attempt each, graded as sent.

Figure: The same six models in more detail. Select a column to sort, or select a model for its counts and interval.

Finding leaves in the inventory is the easy part. Almost every leaf that a model picked was in the inventory. For every model it was at least 90%, and for Claude Opus 5.5, Claude Sonnet 5.5 and GPT-5.6 Sol it was all of them.

The hard part is the reactions. Every step of a route has to be a reaction that the library has on record. Claude Opus 5.5 got 97% of its proposed steps right. GPT-5.6 Sol got 88%, GPT-5.6 Luna 70% and Qwen3.8-27B 57%. These numbers only count the answers that we could read.

The exact route is the hardest metric. Even the best model matched a known patent route on only 11 of the 30 tasks, but it solved 24. So at least 13 of the tasks that it solved used a different route. This is why the verifier checks the steps and the leaves, and does not compare with an answer key. An answer key would have marked all of those routes wrong.

How the answers are graded matters too. Seven of Claude Sonnet 5.5's answers came back as unreadable JSON and scored zero. If the same answers are repaired before they are graded, Sonnet solves 25 of the 30 and Opus 24, and their order flips. We grade as sent on the boards, so that a score is what the model wrote. In training, a broken submission is handed back up to twice, with the place where it broke, and only the last one is graded as sent.

Designing the Reward

The verifier checks each proposed reaction against a frozen library of 343,665 recorded reactions and 28,619 reaction templates.4 It also checks whether every leaf is actually in the inventory. A route is considered valid if it starts at the target, its depth is within the limit, every step is supported by the library, every leaf is in the inventory, and the constraints of the task hold. A task is considered solved when the model submits enough valid routes with different first disconnections. Matching a known patent route is not required to solve a task. It only adds a bonus to the reward.

One caveat that we want to be clear about: a step being supported by the library means that a reaction like it is on record. It says nothing about yield, selectivity or safety, and none of the results here claim that a route would work in a lab. The same goes for the inventory. It is the set of starting materials used in the patent routes, and being in it does not guarantee that a supplier sells it today.

Solved or not is a hard signal to learn from. A model that never solves a task gets the same zero on it every time, and there is nothing to learn from. Our reward is a value between 0 and 1 and is a weighted sum of nine parts. Half of the weight sits on the steps being supported by the library and on the leaves being truthfully in stock, and the rest pays for a valid format, a well-formed tree, respecting the constraints, a short route, different first cuts, resemblance to a known route, and an exact match to one. A leaf that falsely claims to be in stock caps the reward at 0.40.

Figure: The nine parts of our initial reward. The second tab shows the shaped reward that we used for training, and the third tab checks how both of them score a set of test cases.

This was our initial reward, and it had a problem. It rewarded effort, not synthesis. Valid JSON, a well-formed tree and the constraints added up to 0.20. A route that did almost nothing broke no constraint, so any well-formed tree got this 0.20 for free. Supported steps were rewarded one by one, so a route with just one accepted reaction already got all of the 0.35, even if it never reached anything buyable. The parts that needed a finished route stayed at zero until the task was solved. So a model could suggest just the first cut of a known route, stop, and still get a reward of 0.603. Solving the whole task got about 0.89.

Hence, we were seeing a lot of reward hacks. The reward also did not match how well a model did in the evaluation.

To see how bad this was, we collected 889 submissions from 16 models over 79 test tasks, from a set of earlier runs using OpenAI and other models. Then we ran a bunch of ablations using an auto-research loop. The loop came up with 587 probes. A probe is a cheap submission that should never get a good reward. Some of them were:

  • An empty answer.
  • A made-up reaction between two molecules that are in the inventory.
  • A leaf that falsely says it is in stock.
  • A good route with duplicates and junk added to it.
  • A known route cut short at every depth. These should get more reward the closer they are to a finished route.

Figure: How the two rewards scored the probes. Stopping after one accepted cut got 0.603 under the initial reward and 0.055 under the shaped one. Switch to Ranking to see how they ordered six models.

From the graphs above, we can observe that the initial reward function rewarded effort more than it rewarded solving the problem with a valid route. A model that only took the first cut of a known route and stopped got 0.603. A made-up cut into two molecules from the inventory got 0.350, and a false stock claim got 0.400. Across the 889 submissions, 26% of the failures got a higher reward than the worst solve. Six OpenAI models ran the same 80 episodes, and the reward put gpt-4.1 and gpt-5-mini, which solved 2 of 80, above gpt-4o, which solved 8. On average, the reward of a model was 0.19 away from its pass rate.

We then used the same loop to fix the reward. A reward only depends on the task and the submission, and we had stored both for every episode. So the loop could score any new reward on all the stored submissions without calling a model. The chemistry checks run once for each submission, so scoring a new reward takes microseconds. For every candidate, the loop ran four checks:

  1. Hack margin: does any failed submission get a higher reward than a solved one?
  2. Stop-early score: what does the first cut of a known route, then a stop, get? It should be far below a full route.
  3. Rank gap: does the mean reward of a model follow its pass rate?
  4. Learning signal: do attempts at the same task still get different rewards? If not, there is nothing to learn from.

The loop started from the initial reward and changed one thing at a time. It removed the free parts, rewarded a step only as far as the route reaches buyable material, and capped what a failure can get. Then it tried a reward with two bands, one for solves and one for failures, and moved the knobs of the bands one by one. In all, it scored the initial reward and 26 candidates.

Figure: The 27 rewards that we scored, in the order that we tried them: the initial reward first, the one that we kept last. Each check likes a different candidate, so no single check picks the winner.

A search like this is cheap, so it is easy to fool yourself. So we checked the loop by hand. Here are three examples.

  • Does the loop grade like the environment does? The environment graded the 889 submissions in the first place. We scored the same submissions again with the loop and compared the grades. One check did not match. The loop dropped the stereochemistry (the 3D arrangement of the atoms) of a molecule before it applied a reaction template. That was a bug in the loop.
  • Is the best score on one check enough? No. The reward with the widest hack margin, 0.485, did not penalize repeated routes. A model could submit one solved route three times and get the same reward as submitting it once. So we judge every candidate on all four checks together.
  • How do we catch a reaction at the wrong position? A template only checks the atoms around the bond that it makes, so it can accept a reaction at the wrong position on a molecule. The library trusts a template that appears at least 5 times in our reaction data. Our review of the first reward suggested a higher limit, so we tested 25. It would have rejected 8.1% of the steps that rest only on a template, and many of them are textbook reactions that are just rare, like the Riley oxidation. So we kept 5. Instead, we added a round-trip check. We apply the template forward to the molecules that the model proposed. If the target is the only product, the step passes. A reaction at the wrong position makes several products, so it fails. For correct steps, the target comes back 99.3% of the time, so the check rarely rejects a good step. It removes 4% to 6% of model passes, the ones that relied on a doubtful step, and it does not change the known patent routes.

The candidate that we kept is the shaped reward. Its main idea is that a solve and a failure should never get the same reward. So it has two bands that never meet. A solved task gets 0.70 to 1.00, and a failed task gets 0 to 0.20. The Shaped reward tab of the Reward Design figure shows the parts of each band.

In the solved band, the reward grows with a short route, with different routes, and with a match to a known route. If a solve comes with duplicate or junk routes, the reward is scaled down.

In the failed band, the reward depends on how much of the route ends in molecules that we can buy. We measure this by walking down the tree from the target. A leaf gets 1 if it is in the inventory and 0 if it is not. A molecule whose reaction the library rejects gets 0, and so does everything below it. Any other molecule gets the average score of its precursors, weighted by their size. So a cut that the library accepts, but that never reaches anything buyable, gets exactly 0. This removes the cheap floor of the initial reward.

That leaves one problem. A long linear route reaches nothing buyable until its last step, so it would get 0 until then and have nothing to climb. To fix this, we added a small extra term. It gives credit when the hardest unfinished molecule gets closer to something in the inventory. It is at most 0.04 of the whole reward, so it cannot pay on its own.

The same stop-early submission now gets 0.055 instead of 0.603. Among the 889 stored submissions, the best failure now gets 0.194 and the worst solve gets 0.671, so no failure beats a solve, and the two are 0.477 apart. Under the initial reward, the best failure was 0.216 above the worst solve. The gap between the mean reward of a model and its pass rate also fell, from 0.19 to 0.03.

In training, the environment computes the shaped reward next to its own pass or fail grade. The model never sees it, and the evaluation stays pass or fail. The public environment still uses the initial reward.

The shaped reward is not finished. Three problems are still open.

  • Some tasks give no signal. On 6.3% of the tasks, every model gets the same reward, so there is nothing to learn from. Nobody makes progress on these tasks. More credit for structure brings back some spread, but it also raises the floor that a hack can reach. 0.15 was the best trade-off that we measured.
  • The reward does not always rise with progress. We cut 60 known routes at every depth, and the reward should go up as a route gets closer to done. It does so at every depth for 46 of them. Five are flat, and nine dip by at most 0.013.
  • Hacking was measured on stored submissions. We did not measure it on a policy that trains against the reward. A policy can find exploits that our probes miss, so we should run the probes again on the rollouts with the highest reward.

Training on RetroEnv

We took Qwen3.8-27B, which initially solves 3 of the 30 tasks, and trained it with LoRA adapters5 using GRPO.6 We scored every checkpoint on 150 test tasks, 50 easy, 50 medium and 50 hard, with four attempts per task. Pass@1 is how often one attempt solves a task, averaged over the four attempts. Pass@4 is how often at least one of the four attempts solves it.

The First Training Run

Our first run did not work.7 We trained it with the initial reward.

The reward went up, but not because the model solved more tasks. It went up because the model made fewer basic mistakes. Submissions that did not start at the target fell from 28% to 4%. Broken JSON fell from 38% to 9%. Submissions that had no format mistakes but still failed kept a reward of about 0.35.

Most groups of attempts had nothing to learn from. GRPO trains a model by comparing the rewards of a group of attempts at the same task. Of 165 groups, 119 never solved a single task. With no difference inside a group, there was nothing to compare, and the model could not learn what solving looks like.

We then measured how much of the training set was learnable at all. On 250 tasks with eight attempts each, the base model reached a pass@8 of 0.31 on easy tasks, 0.11 on medium and 0.05 on hard, and only 39 of the tasks were learnable. Of all episodes, 41% ended in broken JSON, and 94% of those had miscounted the closing brackets at the end of a deep tree. The fixes were small. First, we told the agent how many tool calls it had left. Without this, 45% of the attempts never submitted an answer. Second, we changed how the trainer corrects for small differences between the model that wrote an attempt and the model that is being trained. By default, it made one correction for a whole episode. Over a long episode, this correction went far off, and the trainer dropped the whole episode. We now correct each token on its own, so long episodes count.

Learning Signal

We ran thirty overfitting experiments on a handful of fixed tasks, to find settings where the reward rises. The one that worked for a model that does not think used LoRA rank 16, four fixed tasks with 32 rollouts each, and a solve-based reward. It went from 0.27 to 0.78 in 48 updates, about 65 minutes. Training with thinking on, climbed about five times more slowly per update, and by about 0.1 at most.

With and Without Thinking

We then trained on a pool of 2,000 easy tasks, with and without thinking, both on the shaped reward from the section above. These are Run 1 and Run 2 in the figure below. Without thinking, the model climbs slowly from 0.015 to 0.200 at step 300. Turning thinking on, before any training, already gives 0.118, which is about where 200 steps of training without thinking had only just got to. With thinking, training starts from there and reaches 0.245 at step 125, with the medium tier going from 0.085 to 0.210. It held near that level until step 175 and then dropped to 0.142 at step 200, the first sign of a pattern that comes back below, so we took its best checkpoint, from step 125, forward.

Figure: The four training runs on the 150 test tasks. The first two start from the base model, and the two mixed-pool runs resume from a checkpoint of the run before, so steps are cumulative. Select a metric to compare.

The Mixed Pool Runs

Next we moved to a harder pool of 2,000 tasks for Run 3, 600 easy, 1,000 medium and 400 hard, with no overlap with the test, validation or held-out tasks or with the easy pool, and resumed from the thinking checkpoint at step 125. Pass@1 climbed to 0.323 at step 425, and then fell back to 0.180 by step 775, where we stopped it.

For Run 4, we resumed from the peak, halved the learning rate, and trained only on the 1,340 tasks of the pool that the checkpoint had never seen. The peak went up a little, to 0.338 at step 525, with a pass@4 of 0.547, and the hard tasks reached 0.125, from 0.035 for the base model. Then it declined in the same way, and we let the run stop itself at step 650, at 0.252.

Figure: Pass@1 by difficulty. The gains and the losses are spread across all three tiers, and the hard tier is the one the mixed pool was built for.

For Run 4 we changed both the learning rate and the tasks, and the peak was only slightly higher, 0.338 against 0.323, which is inside the noise of a 150-task evaluation. The shape did not change, so the decline does not look like a learning-rate artefact. We do not know yet what it is. The most plausible cause that we know of is that the trainer we used has no penalty that pulls the policy back towards the starting model.

Comparison with Frontier Models

To compare with the models on the board, we kept only the 30 board tasks, which are a subset of the 150, and looked at the first attempt of every checkpoint. The best checkpoint, LiteRetro-27B, solved 14 of the 30. Qwen3.8-27B before training solved 4, which agrees with the board's 3 within one task, and Claude Sonnet 5.5 solved 12. That puts LiteRetro-27B in Sonnet's neighbourhood, below Opus 5.5 with 15 and the two GPT models with 17.

Model Comparison

The board and our runs use different harnesses, so the comparison is close, not exact. Qwen3.8-27B scored 0.100 on the board and 0.133 in ours, about one task apart.

The table below lists every checkpoint that we scored, and step 525 of Run 4 is the best row, and it is LiteRetro-27B.

Figure: Every scored checkpoint of the four runs. The best one is highlighted. Two scores are missing, because their evaluations did not finish.

Conclusion and Next Steps

RetroEnv gives a model a molecule and an inventory, grades every route it submits against frozen chemistry, and returns a reward that a model can climb. In our runs, an open 27B model went from 0.118 to 0.338 on 150 test tasks, with the gains spread across easy, medium and hard tasks. The result, LiteRetro-27B, is on par with Claude Sonnet 5.5 on the 30 tasks.

These results have limits. The training runs peak and then decline, and we do not know why. The known routes are public, so a model may have seen some of them. The next iterations will cover the following improvements. The first is a penalty that pulls the policy back towards the starting model, to see if it stops the decline. If it does not, the options are fewer updates per task, or stopping at the peak. The second is moving the shaped reward into the public environment. Training already uses it, but the public environment still has the initial reward.

We are just getting started. If you need environments and evaluations for different tasks in biology and chemistry, especially in therapeutics, please reach out to us.

Footnotes

  1. Loops of this kind were popularised by Karpathy's autoresearch (2026), where an agent edits code, runs a fixed-budget experiment and keeps the change only if the metric improves. Using a model to write reward functions has an earlier precedent in Ma et al., “Eureka: Human-Level Reward Design via Coding Large Language Models” (2023): arXiv:2310.12931. ↩

  2. Optimising a proxy until it stops tracking the intended goal is reward hacking, or Goodhart's law: Skalse et al., “Defining and Characterizing Reward Hacking” (2022), arXiv:2209.13085, and Gao, Schulman and Hilton, “Scaling Laws for Reward Model Overoptimization” (2022), arXiv:2210.10760. For hacking in current LLM post-training, see the survey by Wang et al., “Reward Hacking in the Era of Large Models: Mechanisms, Emergent Misalignment, Challenges” (2026), arXiv:2604.13602, and MacDiarmid et al., “Natural Emergent Misalignment from Reward Hacking in Production RL” (2025), arXiv:2511.18397. ↩

  3. Genheden and Bjerrum, “PaRoutes: towards a framework for benchmarking retrosynthesis route predictions” (2022), Digital Discovery. The routes and stock sets are archived on Zenodo, and the code is at github.com/MolecularAI/PaRoutes. ↩

  4. Reactions are checked with RDKit, and the templates are applied with RDChiral: Coley, Green, and Jensen, “RDChiral: An RDKit wrapper for handling stereochemistry in retrosynthetic template extraction and application” (2019), Journal of Chemical Information and Modeling. Only templates seen at least five times are kept. ↩

  5. Hu et al., “LoRA: Low-Rank Adaptation of Large Language Models” (2021): arXiv:2106.09685. ↩

  6. GRPO was introduced in Shao et al., “DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models” (2024): arXiv:2402.03300. ↩

  7. We could not trust the evaluation of that run's checkpoint. We later found that the step that merges an adapter into the model weights had been writing the base weights for the upper layers, so every merged-checkpoint evaluation from before 9 November is suspect, this one included. The training statistics above do not depend on it. ↩