Manuscript Offprint
arXiv:2610.38439Predict the Reward, Not the World: World Reward Models for ML Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Search-based machine-learning (ML) agents improve a solution by writing candidate programs, executing them, and keeping the best. Execution gives the search reliable feedback, but a single run can take hours, and most runs end in programs the agent discards. Recent agents try to save these runs by letting a large language model act as a world model that predicts how each program would perform. However, a wrong prediction feeds the search false information. We argue that an agent does not need to predict the outcome of execution, only the decision that execution would support. We propose World Reward Models (WRMs), which learn from real execution results to choose directly which candidate will perform better, without predicting any intermediate outcome. We prove that a selector which predicts execution from the same inputs cannot outperform the best direct selector, that predicted outcomes add an error which can make a likelihood-trained world model prefer the worse program on every instance, and that cross-entropy on executed winners drives a WRM toward the optimum. Our WRM, ForeCritic, adapts a 9B typed decision model to 5k executed program pairs. On 12,438 held-out pairs from 26 ML tasks, it picks the better program 79.4% of the time, while general-purpose LLM judges reach 53–62%, and its probabilities are calibrated. Inside AIDE, ML-Master, and ForeAgent, it cuts mean task time by 4.4–7.5× while keeping their mean scores within 0.01 or raising them.
1. Introduction
Machine-learning (ML) engineering agents treat a task as a search over programs. AIDE (Jiang et al., 2025) and
*Equal contribution ¹The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China. Correspondence to: Hao Liu liuh@ust.hk.
Preprint.

Figure 1. Three ways to choose which program to keep. (a) Executing every candidate gives real scores but costs hours per program. (b) A world model predicts execution instead; its predictions are right on about 60% of program pairs, and a wrong one misleads the search. (c) A World Reward Model learns from real executions to decide directly which program will score higher, and the agent runs only the program it keeps.
ML-Master (Liu et al., 2025), for example, draft candidate solutions, execute each one to measure its validation score, and use the scores to decide what to refine next. Real execution makes this search reliable, because the scores come from the data rather than from the agent's own opinion. It also makes the search slow. A single run can take hours on MLE-bench tasks (Chan et al., 2025), and most runs end in programs the agent discards (Figure 1a).
A natural way to save these runs is to predict them. Model-based reinforcement learning plans with learned models of the environment (Sutton, 1991; Schrittwieser et al., 2020; Hafner et al., 2023), and recent LLM agents use a language model as a world model that anticipates the result of an action (Hao et al., 2023; Gu et al., 2024; Chae et al., 2025). ForeAgent (Zheng et al., 2026) brings this idea to ML engineering. An LLM reads the task, a data report, and two programs, reasons about how each would train, and predicts the winner. Only that program is then executed (Figure 1b).
These predictions are weak, and weak predictions do harm. With reasoning enabled, DeepSeek-V3.2 and GPT-5.1 pick the better of two programs 61.5% and 58.8% of the time, and accuracy stops improving beyond 30B parameters within one model family (Zheng et al., 2026). Inside a search, a predicted outcome is treated like a measurement, so an error promotes a worse program, prunes a better one, and stays uncorrected until something is executed. In our experiments, a fast selector that is right on 56% of pairs lowers the final score of all three agents we test (Section 5.5).
This paper starts from a simple observation. To choose which program to keep, an agent does not need to know how a program will run; it needs to know which program will score higher. Only real execution adds information about that question. A world model's prediction is computed from the task and code the agent already has, so it can approach, but never exceed, the best decision these inputs support, and its errors can pull the decision below it. We therefore spend real executions on learning the decision itself. A World Reward Model (WRM) reads the task and the candidate programs and returns the probability that each would win if executed, without predicting any part of the execution. It is trained on the outcomes of real runs, and during search it takes the place of most of them (Figure 1c).
Section 3 makes this argument precise. A selector that first predicts execution and then decides is a garbling of its inputs, so on the same inputs it cannot beat the Bayes-optimal WRM, however long it reasons (Theorem 3.1). Predicting the run also adds an error that grows with its length (Theorem 3.5), and a predictor fit by likelihood to whole execution logs can prefer the worse program on every instance (Proposition 3.6). A WRM is trained on the decision instead, and its accuracy gap is at most the square root of twice its excess cross-entropy on executed winners (Proposition 3.4).
We build ForeCritic, a WRM for ML programs, by adapting an open typed decision model (Palmer, 2026) to 5,000 program pairs labeled by their executed test scores (Section 4). On 12,438 held-out pairs from 26 tasks, ForeCritic picks the better program 79.4% of the time, compared with 54.5% before training and 53–62% for general-purpose LLM judges (Figure 4), and it reaches 71.5% on pairs in which neither program was seen during training. Its probabilities are also calibrated, and the 38% of pairs it is most sure about are 95.2% correct. In AIDE and ML-Master, ForeCritic takes the place of execution during search, and in ForeAgent it takes the place of the LLM judge (Section 4.3). Mean task time drops by 4.4–7.5×, ForeAgent's mean score rises from
0.527 to 0.607, and AIDE and ML-Master stay within 0.01 of their original scores (Table 2).
-
A recipe for training a WRM on executed program pairs and plugging it into search-based ML agents.
-
ForeCritic, which is more accurate than general-purpose LLM judges, is calibrated, and makes three agents 4.4–7.5× faster at similar or better scores.
2. Choosing Before Executing
An agent that has proposed several candidate programs must decide which of them to execute. This section sets up that decision and the two kinds of selectors we compare.
Selection before execution. A decision instance consists of a context and candidates , drawn from a distribution that includes the agent's proposal policy. In ML engineering, contains the task description and a data report, and each is a complete program. Executing the candidates would produce outcomes , such as training logs, and rewards , such as normalized test scores. We write for the candidate that actually wins, with ties broken uniformly at random. Before anything runs, a candidate is described by its probability of winning and by its expected reward,
Accuracy depends on the first and value on the second, and the two can disagree. If candidate 1 always scores 0.6 while candidate 2 scores 0.61 with probability 0.51 and 0 otherwise, candidate 2 wins more often, but candidate 1 has the higher expected reward.
Definition 2.1 (Selector). A selector is a possibly randomized map from to an index in that executes no candidate. Its value, accuracy, and regret are
Predicting execution. A world model decides in two steps. It first predicts what executing the candidates would produce, and then judges the prediction.
Definition 2.2 (World-model selector). A world-model selector consists of a prediction kernel over a space of predicted traces and a decision rule from to ; it selects with . Its decision distribution is .
The definition covers simulate-then-evaluate planning, which samples and selects (Sutton, 1991; Ha & Schmidhuber, 2018). It also covers an LLM that reasons about two programs before stating a preference (Zheng et al., 2026), whose reasoning trace plays the role of . What these selectors share is that they consult nothing beyond .
Assumption 2.3 (No new evidence). Given , the predicted trace and the decision rule's internal randomness are independent of the real outcomes and of the tie-breaking in .
The assumption holds for any model size and any amount of reasoning. It fails only when the procedure gathers new evidence, for instance by training a candidate on a subsample of the data or by querying the environment, and such steps are executions.
Deciding directly. A WRM skips the prediction and outputs the decision.
Definition 2.4 (World Reward Model). A World Reward Model is a selector that maps directly, without generating any intermediate outcome, to either a distribution in the probability simplex over the candidates (a preference WRM, an estimate of ) or a score vector (a value WRM, an estimate of ), and selects the argmax. A preference WRM is calibrated if for all and .
The Bayes preference WRM maximizes accuracy, and the Bayes value WRM maximizes value. The definition constrains what is predicted, not the output layer, so a generative judge fine-tuned to answer without intermediate text is also a WRM. Unlike a reward model for text, whose labels come from human preferences, a WRM learns from the rewards the world returns when actions are executed. Our experiments train a preference WRM for .
3. What Predicting Execution Can and Cannot Add
We now ask what a world model's prediction can contribute to the decision (Figure 2). The arguments rely on standard tools (garbling, Gibbs' and Pinsker's inequalities, the simulation lemma), and Appendix A gives the full proofs.
3.1. A prediction carries no new evidence
Whatever a world model predicts is a function of what it was given, so its decision can at best reproduce the best decision that the inputs support.
Theorem 3.1 (Fixed-information ceiling). Under Assumption 2.3, every world-model selector () with decision
distribution satisfies
(3)
The right-hand sides are attained by the Bayes preference WRM and the Bayes value WRM . Each gap equals the -weighted shortfall, e.g. for value, and vanishes if and only if puts all its mass on maximizers for -almost every .
Given , the decision is independent of the realized rewards. Its expected reward is therefore a -weighted average of the , and its chance of being right is a -weighted average of the (Section A.1). In the terms of Blackwell (1953), a predicted trace is a garbling of the inputs.
Corollary 3.2 (No prediction budget crosses the ceiling). For any sequence of world-model selectors satisfying Assumption 2.3, indexed by any measure of effort (rollouts, reasoning tokens, parameters), accuracy and value stay below the bounds in Equation (3).
What the ceiling does not say. Theorem 3.1 compares decision rules that see the same information, not networks of the same size. For a finite selector, the distance to the ceiling is an approximation error. Reasoning spends inference-time computation on it, which can help (Chae et al., 2025), while a WRM spends real executions on it at training time, and Proposition 3.4 ties that effort to accuracy. Which route gets closer for ML programs is an empirical question (Section 5).
3.2. Same decisions, different targets
Proposition 3.3 (Behavioral equivalence and distillation). (i) For every world-model selector, the preference WRM , sampled, reproduces its decision distribution on every instance, with equal accuracy and value. (ii) Conversely, every preference WRM is reproduced by the world-model selector that draws and outputs . (iii) Over all preference WRMs, minimizes the distillation loss .
World-model selectors and WRMs can thus express the same decision rules. They differ in how a rule is computed and in what it is trained to match. The equivalence concerns which rules exist, not what they cost; it does not imply that a network of a given size computes in one pass, and part (i) matches by sampling, whereas a deployed selector takes the argmax. Distilling a world model copies its , mistakes included. The cross-entropy on executed winners targets instead, and this target controls accuracy.
(a) A prediction carries no new evidence

(b) Same decisions, different target
(c) Where predicting the run costs accuracy
Figure 2. Predicting execution adds no information about the winner. (a) The predicted trace is computed from , so no world-model selector exceeds (Theorem 3.1). (b) A world model's decisions are those of a WRM with ; distilling it copies its accuracy, while training on executed outcomes targets the ceiling (Propositions 3.3 and 3.4). (c) For value scores, predicting the run adds an error term that grows with the horizon (Theorem 3.5).
Proposition 3.4 (Cross-entropy controls selection accuracy). Let be a preference WRM with excess cross-entropy . Then
The proof applies Pinsker's inequality to (Section A.3). The bound holds at the population level and makes no claim about sample size, but it shows that driving the training objective of Section 4 to zero drives the selector to the ceiling of Theorem 3.1.
3.3. Where predicting the run costs accuracy
Executing a program unfolds in stages, such as preprocessing, training epochs, and evaluation. Let the real outcome end an -stage chain , , . A world model imitates the chain with kernels and scores the predicted end state with an evaluator , giving . Let , where is the total-variation distance, and .
Theorem 3.5 (Error decomposition for value scores). For every , . For value scores with on an instance, loses at most in value there, and nothing when the gap between the two best values exceeds . Hence a simulate-then-evaluate selector has , and a direct value WRM with -error has .
The simulation term is the one-step form of the compounding error of model-based reinforcement learning (Kearns & Singh, 2002; Janner et al., 2019). The next result shows that
the gap is real and that a wrong prediction can mislead the decision systematically rather than at random.
Proposition 3.6 (Objective mismatch in a restricted family). Let the outcome be a reward bit followed by decision-irrelevant bits , with and , and let the model family tie all bits of a candidate to one rate . The maximum-likelihood world model in this family, with an exact evaluator, selects the lower-value candidate on every instance whenever , whereas the same family fitted to the reward bit alone selects the higher-value candidate.
With , , and , the likelihood fit gives , so the world model picks the worse candidate every time, at a regret of 0.5 (Section A.5). The construction mirrors an execution log, in which a few tokens report the metric and many more report progress; a model fit to the whole log learns what makes the log probable rather than what makes the score high (Lambert et al., 2020). In WMA, likewise, predicting the full next observation lowers success below that obtained with no prediction at all (Chae et al., 2025).
Screening more candidates does not make up for such errors. In an idealized Gaussian model (Appendix B), a judge with pairwise accuracy 0.615 needs 907 candidates to match a judge with accuracy 0.794 that sees 8.
4. Building and Using a World Reward Model
We now build a pairwise WRM for ML programs, train it toward with the cross-entropy of Proposition 3.4, and plug it into search-based agents (Figure 3).
(a) One forward pass, typed output

(b) Labels come from executions

(c) The WRM chooses, execution verifies
Figure 3. A World Reward Model is a typed decision model trained on what the world returns. (a) Task, data report, and both programs form a shared state; a pointer head scores two short options against a decision token in one forward pass, with no generated token. (b) Program pairs labeled by their executed test scores train the WRM with cross-entropy. (c) Inside an agent, the WRM settles comparisons, dropping a loser only when confident; execution verifies the chosen program, and its score returns to the search tree.
4.1. A WRM as a typed decision model
A selector inside an agent has to read long programs, compare them, and return a probability that the agent can threshold. Typed decision models (Almeida, 2026; Palmer, 2026) offer this interface, and we adopt the open Kev architecture (Palmer, 2026). A request is serialized as one token sequence. It begins with a state holding the task name, the task description, the data report of Zheng et al. (2026), and both complete programs, followed by a question asking which program will perform better, two short options, solution_0 and solution_1, and a decision token. A frozen decoder backbone with LoRA adapters reads the sequence once. Let be the last-layer state at the decision token and the state at the closing token of option . A pointer head computes
(5)
where the affine projections map to d = 256 dimensions and the temperature T is fitted after training. Because the decision token attends to both programs, the judgment is comparative. Every output is a valid choice with a probability, and a decision costs one forward pass over the input with no decoding.
4.2. Training on what the world returns
Data. We use a frozen copy of the Predict-Before-Execute corpus (Zheng et al., 2026), which contains 18,438 pairs of complete programs written by ML agents for 26 MLE-bench tasks. Each pair is labeled by which program achieved the better test score when executed, using the corpus's metric directions and its filtering of near-ties. We split the source pairs into 5,000 for training, 250 for development, 250
for calibration, 500 for an internal test, and 12,438 for the final test, and we keep identical program pairs within one partition. All 26 tasks appear in training, and a program can recur across pairs.
Objective and recipe. The WRM minimizes the cross-entropy of the executed winner,
whose population minimizer is . ForeCritic starts from the released Kev-9B, a frozen Qwen3.5-9B-Base backbone with a LoRA adapter and a pointer head trained for general typed decisions, and updates only the adapter and the head. Each epoch shows every pair in one of six variants (three input formats, two candidate orders). Four epochs, or 628 updates, take 4.2 hours on eight A800 GPUs. We select the checkpoint by development accuracy and fit by NLL on the calibration partition, which gives (Guo et al., 2017). Final-test labels are used for neither step (Appendix C).
4.3. Plugging a WRM into search-based agents
How search-based agents work. Most ML-engineering agents organize their work as a tree whose nodes are candidate programs (Jiang et al., 2025; Liu et al., 2025; Toledo et al., 2025). In each step a selection policy picks a node, an LLM writes a child program by improving the selected one, fixing a bug, or drafting anew, and the child is executed to obtain its validation score. The score serves two purposes. It tells the agent whether the child beats the best program so far, and it steers the policy toward promising parts of the tree. When the budget runs out, the agent submits the best program it has found.
Algorithm 1 Tree search with a WRM. Colored lines replace the execution of each new candidate.
Require: task context , WRM , budget
1: initial drafts; a draft
2: for do
3: {greedy or UCT}
4: improves, debugs, or redrafts
5: {was: execute }
6: UPDATE() {node score or reward}
7: highest-scoring node of
8: end for
9: execute , repair it if needed, and submit
Where the WRM enters. A WRM takes over the scoring role of execution and leaves the rest of the agent untouched. Instead of running a new child, the agent asks the WRM how likely the child is to beat the incumbent and uses this probability where it used the score (Algorithm 1). Only the submitted program is executed, with repairs if that run fails.
Two examples. AIDE (Jiang et al., 2025) runs a greedy tree search. It drafts several initial solutions, repeatedly improves the best node or debugs a failed one, and keeps the node with the highest validation score. With a WRM, each new node is compared with the incumbent, and the log-odds of winning are added to the node scores that the greedy policy reads. ML-Master (Liu et al., 2025) runs a search in the style of Monte Carlo tree search, which chooses nodes by an upper confidence bound and backs rewards up the tree. With a WRM, the reward of a new node is its probability of beating the best solution so far, and this probability is backed up in place of the executed score. In both agents the search then executes no candidate before the final submission. ForeAgent (Zheng et al., 2026) already avoids most executions. An LLM judges a batch of proposals in a pairwise tournament, and only the top-ranked program runs. There ForeCritic takes the place of the LLM judge and eliminates a loser only when the winner's probability reaches (Algorithm 2).
5. Experiments
We evaluate ForeCritic with four questions. Q1: Does learning from real execution make a selector accurate, including on programs it has never seen (Section 5.2)? Q2: How does it compare with general-purpose LLM judges (Section 5.3)? Q3: Are its probabilities reliable enough to act on (Section 5.4)? Q4: Does it make ML agents faster without hurting their results (Section 5.5)?
Table 1. Training on execution outcomes lifts a typed selector by about 24 points, including on unseen programs. Pairwise accuracy (%) of the released Kev-9B and of ForeCritic, its trained version, under identical inputs and labels; “unseen” programs are absent from training. : paired difference, significant in every row under a paired bootstrap (over tasks for the macro row).
| Subset (pairs) | Kev-9B | ForeCritic | |
|---|---|---|---|
| Final test (12,438) | 54.53 | 79.44 | +24.91 |
| no data report | 54.46 | 78.55 | +24.09 |
| unseen (5,996) | 54.10 | 77.18 | +23.08 |
| 2 unseen (501) | 48.10 | 71.46 | +23.35 |
| Internal test (500) | 52.60 | 78.20 | +25.60 |
| Task macro (26) | 54.60 | 72.69 | +18.10 |
5.1. Setup
Data and baselines. Unless stated otherwise, results are on the final test, 12,438 program pairs held out from training. The main comparison sets ForeCritic against its own initialization, the released Kev-9B, with the same inputs, labels, and architecture, so that the difference isolates what learning from execution adds. The general-purpose judges are Qwen3.5-9B with and without reasoning (1,024-token budget), evaluated on 9,879 final-test pairs, the typed decision model Jev (Almeida, 2026), evaluated on the full final test, and DeepSeek-V3.2 and GPT-5.1, whose accuracies Zheng et al. (2026) report on the full corpus, of which our final test makes up two thirds.
Metrics. We report pairwise accuracy, task-macro accuracy, negative log-likelihood (NLL), the Brier score summed over both classes, and the expected calibration error (ECE) over ten equal-width bins. We call a difference significant when a paired bootstrap, over pairs or over tasks where stated, rejects zero at the 5% level. Since every program belongs to a single task, resampling whole tasks also accounts for pairs that share a program, which makes it the conservative choice.
5.2. Q1: Learning from execution makes the selector accurate
Training on execution outcomes raises accuracy on the final test from 54.53% to 79.44%, a paired gain of 24.91 points (Table 1). With every task weighted equally, the gain is 18.10 points, and it stays significant when whole tasks are resampled, so a few large tasks do not carry it.
Programs can appear in several pairs, so the final test mixes new pairs of known programs with pairs of new programs. On the 501 pairs in which neither program was seen during training, ForeCritic reaches 71.46%. This is 8 points below its overall accuracy, but Kev-9B, which was trained on none of these programs, drops by 6.4 points on the same pairs, and the gain stays at 23.35 points. These pairs are harder for

Figure 4. A WRM trained on real executions outperforms general-purpose judges. (a) Held-out program pairs. ForeCritic, Jev, and Kev-9B on the final test; Qwen3.5-9B on its 9,879-pair subset, where ForeCritic scores 79.9%. Hollow markers are reported by Zheng et al. (2026) on the full corpus, including how often the executed validation score picks the test-score winner. (b) 182 judgments of fresh programs that an agent wrote on ten MLE-Dojo tasks.
both models, and the benefit of training does not depend on having seen the programs. Removing the data report at test time costs 0.89 points while shortening the input by 63.9%.
5.3. Q2: Comparison with general-purpose LLMs
Large reasoning models reach 61.5% (DeepSeek-V3.2) and 58.8% (GPT-5.1) on the full corpus (Zheng et al., 2026), general typed decision models stay close to chance (Jev 56.0%, Kev-9B 54.5%), and the same-size Qwen3.5-9B reaches 53.1% with reasoning and 52.8% without (Figure 4a). On the 9,879 pairs shared with the Qwen evaluation, ForeCritic is right 79.9% of the time, a significant gap of 26.8 points. Within one model, reasoning moves the generative judge by 0.3 points, whereas training on executions moves the typed judge by 25.3 points. This is the pattern Corollary 3.2 predicts, since thinking harder about the run does not supply the missing evidence and real runs do.
Execution itself is a useful reference. Ranking two executed programs by their validation scores picks the test-score winner on 72.2% of the corpus's pairs (Zheng et al., 2026), and ForeCritic, which learns from test outcomes, does better without running either program, on an overlapping set of pairs.
The advantage carries over to programs from another source. On 91 pairs of programs that ForeAgent executed on ten MLE-Dojo tasks (Qiang et al., 2025), each judged in both orders, ForeCritic is right on 70.3% of judgments and DeepSeek-V4.1-Flash on 63.7% (Figure 4b), a difference this small sample does not make significant (Section D.3).

Figure 5. ForeCritic knows when it is right. Final test, 12,438 pairs. (a) Mean chosen probability against accuracy per bin; Kev-9B as one point (mean confidence, accuracy). (b) Accuracy of the decisions kept at threshold against the fraction kept.
Table 2. An accurate WRM keeps or raises agent scores at a fraction of the time; a near-chance one lowers them. Mean native score and mean task time over ten MLE-Dojo tasks with each agent's original selector, with Jev, and with ForeCritic, under the same agent configuration; one scored run per task, timed from start to submission. Native metrics differ in scale and direction (7 of 10 are higher-is-better; Figure 11).
| Agent | Native score | Task time (s) ↓ | ||||
|---|---|---|---|---|---|---|
| Orig. | Jev | ForeCritic | Orig. | Jev | ForeCritic | |
| AIDE | 0.600 | 0.499 | 0.599 | 3,164 | 738 | 725 |
| ML-Master | 0.616 | 0.484 | 0.609 | 3,711 | 839 | 497 |
| ForeAgent | 0.527 | 0.472 | 0.607 | 4,111 | 2,094 | 884 |
DeepSeek also read 1.44M input tokens and wrote 2,987, while ForeCritic generates none.
5.4. Q3: The probabilities are calibrated and informative
An agent can act on a probability only if it means what it says. Before any rescaling, ForeCritic's ECE is 0.025, while Kev-9B reports an average confidence of 0.89 at 54.5% accuracy, an ECE of 0.345 (Figure 5a). Temperature scaling lowers ForeCritic's NLL from 0.4364 to 0.4332 and its ECE to 0.016 without changing any decision. It also repairs Kev-9B's ECE, but not its accuracy (Figure 9). The probabilities rank decisions as well (Figure 5b). Keeping only decisions above 0.7 retains 72.2% of pairs at 86.8% accuracy, and a threshold of 0.9 retains 38.3% at 95.2%, whereas Kev-9B's most confident 22.7% are 63.5% correct.
5.5. Q4: The WRM inside three ML agents
Table 2 compares each agent with its original selector, with Jev, and with ForeCritic under the same configuration. In AIDE and ML-Master, ForeCritic takes the place of execution during search, so only the final program and its repairs run. Mean task time falls from 3,164 to 725 seconds in AIDE (4.4×) and from 3,711 to 497 seconds in ML-Master (7.5×), and the mean scores stay within 0.01 of the original ones. In ForeAgent, ForeCritic takes the place of the LLM judge, mean task time falls from 4,111 to 884 seconds (4.7×), and the mean score rises from 0.527 to 0.607. ForeCritic's 446 comparisons take under 3% of the task time, and training it once took 33 A800 GPU-hours (Appendix E).
Accuracy is what makes these savings safe. Jev is also a fast typed selector, but it is right on only 56.0% of pairs, and with Jev all three agents end with lower scores (0.499, 0.484, and 0.472). A selector that is often wrong misleads the search, as Section 3.3 describes for wrong predictions. Each entry averages one run per task, so we read these comparisons as descriptive (per-task results in Figure 11).
6. Related Work
World models for planning and for LLM agents. Planning with a learned model of the environment goes back to Dyna (Sutton, 1991) and continues through World Models (Ha & Schmidhuber, 2018), MuZero (Schrittwieser et al., 2020), and Dreamer (Hafner et al., 2023); Ding et al. (2024) survey the area. LLMs now act as world models for reasoning (Hao et al., 2023), web navigation (Gu et al., 2024; Chae et al., 2025), text games (Wang et al., 2024), code execution (Li et al., 2025; FAIR CodeGen team et al., 2025), and ML engineering (Zheng et al., 2026), whose problem and corpus we adopt. We show what such predictions cannot add and train the judge on real executions instead.
Learning values instead of models. Q-learning (Watkins & Dayan, 1992) learns action values without a model. Value-aware model learning (Farahmand et al., 2017) and value equivalence (Grimm et al., 2020) ask a model to be accurate only where values depend on it, and Lambert et al. (2020) show that models trained by likelihood can hurt control. We carry these ideas to one-step selection among programs.
Reward models, verifiers, and judges. Reward models score outputs by human preference (Christiano et al., 2017; Ouyang et al., 2022), verifiers check solutions (Cobbe et al., 2021; Lightman et al., 2024), LLM judges reason in text (Zheng et al., 2023; Zhang et al., 2025), and best-of-N selection with such scorers is a common use of test-time compute (Brown et al., 2024; Snell et al., 2025). A WRM instead predicts, before an action runs, the reward the world will return, and learns it from executed outcomes.
Predicting program performance. NAS performance predictors (White et al., 2021), learning-curve extrapolation (Domhan et al., 2015), and regression language models for code (Akhauri et al., 2026) estimate quality without full
training, usually for one program at a time; a WRM compares free-form programs for the same task, inside agents that iterate with execution feedback (Jiang et al., 2025; Liu et al., 2025; Ou et al., 2025; Yang et al., 2025; Toledo et al., 2025). Typed decision models (Almeida, 2026; Palmer, 2026) provide its interface but, as Table 1 shows, need training on execution to work for ML programs.
7. Limitations
World Reward Models invite a larger agenda than one paper can complete. The selector here learns from executions on a family of ML tasks and settles one comparison at a time. The general WRM we have in mind would carry over to new tasks and domains, rank many candidates in one pass, and keep learning from its agent's executions, so that every run both uses and improves it. We would also have liked to compare training signals and decision interfaces at matched scale, to extend the theory from Bayes-optimal decisions to finite models and data, and to judge selectors by final reward under a fixed budget across many agents, with value WRMs that predict how much a candidate will score. The same recipe applies wherever actions are expensive to try and their outcomes can be recorded, from experimental design to compiler tuning and robotics, and we leave these domains to future work.
8. Conclusion
ML agents search by executing programs, and execution is both their most reliable signal and their main cost. Predicting execution saves runs but adds no evidence about which program wins, and its errors mislead the search. A World Reward Model instead learns from real executions the probability that one program beats another and leaves execution to verify the program the agent keeps. ForeCritic picks the better of two ML programs 79.4% of the time, well above general-purpose LLM judges, and makes three agents 4.4–7.5× faster at similar or better scores.
Impact Statement
This paper studies how agents choose which actions to execute. World Reward Models make that choice cheaper, which can lower the compute and energy spent on executing poor candidates in ML-engineering agents. The same efficiency makes autonomous agents cheaper to run in other settings, including ones where actions have consequences outside a sandbox; a confidently wrong selector can steer an agent toward a harmful action without the friction that execution feedback provides. We recommend keeping execution as verification and using a selector's calibrated probabilities to route uncertain decisions to execution or to a human.
References
Akhauri, Y., Song, X., Wongpanich, A., Lewandowski, B., and Abdelfattah, M. S. Regression language models for code. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pp. 1578–1601. PMLR, 2026.
Almeida, D. Introducing system one models & Jev. TypeSafe AI blog, https://typesafe.ai/blog/introducing-system-one-models-and-jev, 2026. Published September 15, 2026.
Blackwell, D. Equivalent comparisons of experiments. The Annals of Mathematical Statistics, 24(2):265–272, 1953.
Brown, B., Juravsky, J., Ehrlich, R., Clark, R., Le, Q. V., Ré, C., and Mirhoseini, A. Large language monkeys: Scaling inference compute with repeated sampling. arXiv preprint arXiv:2407.21787, 2024.
Chae, H., Kim, N., Ong, K. T.-i., Gwak, M., Song, G., et al. Web agents with world models: Learning and leveraging environment dynamics in web navigation. In International Conference on Learning Representations (ICLR), 2025.
Chan, J. S., Chowdhury, N., Jaffe, O., Aung, J., Sherburn, D., Mays, E., Starace, G., Liu, K., Maksin, L., Patwardhan, T., Weng, L., and Madry, A. MLE-bench: Evaluating machine learning agents on machine learning engineering. In International Conference on Learning Representations (ICLR), 2025.
Christiano, P. F., Leike, J., Brown, T., Martic, M., Legg, S., and Amodei, D. Deep reinforcement learning from human preferences. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., Hesse, C., and Schulman, J. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
Ding, J., Zhang, Y., Shang, Y., Feng, J., Zhang, Y., Zong, Z., Yuan, Y., Su, H., Li, N., Piao, J., Deng, Y., Sukiennik, N., Gao, C., Xu, F., and Li, Y. Understanding world or predicting future? a comprehensive survey of world models. arXiv preprint arXiv:2411.14499, 2024.
Domhan, T., Springerberg, J. T., and Hutter, F. Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves. In International Joint Conference on Artificial Intelligence (IJCAI), 2015.
FAIR CodeGen team, Copet, J., Carbonneaux, Q., et al. CWM: An open-weights LLM for research on code generation with world models. arXiv preprint arXiv:2510.02387, 2025.
Falconer, D. S. and Mackay, T. F. C. Introduction to Quantitative Genetics. Longman, 4 edition, 1996.
Farahmand, A.-m., Barreto, A., and Nikovski, D. Value-aware loss function for model-based reinforcement learning. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pp. 1486–1494. PMLR, 2017.
Grimm, C., Barreto, A., Singh, S., and Silver, D. The value equivalence principle for model-based reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Gu, Y., Zhang, K., Ning, Y., Zheng, B., Gou, B., et al. Is your LLM secretly a world model of the internet? model-based planning for web agents. arXiv preprint arXiv:2411.06559, 2024.
Guo, C., Pleiss, G., Sun, Y., and Weinberger, K. Q. On calibration of modern neural networks. In International Conference on Machine Learning (ICML), 2017.
Ha, D. and Schmidhuber, J. World models. arXiv preprint arXiv:1803.10122, 2018.
Hafner, D., Pasukonis, J., Ba, J., and Lillicrap, T. Mastering diverse domains through world models. arXiv preprint arXiv:2301.04104, 2023.
Hao, S., Gu, Y., Ma, H., Hong, J. J., Wang, Z., Wang, D. Z., and Hu, Z. Reasoning with language model is planning with world model. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023.
Janner, M., Fu, J., Zhang, M., and Levine, S. When to trust your model: Model-based policy optimization. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
Jiang, Z., Schmidt, D., Srikanth, D., Xu, D., Kaplan, I., Jacenko, D., and Wu, Y. AIDE: AI-driven exploration in the space of code. arXiv preprint arXiv:2502.13138, 2025.
Kearns, M. and Singh, S. Near-optimal reinforcement learning in polynomial time. Machine Learning, 49(2–3): 209–232, 2002.
Lambert, N., Amos, B., Yadan, O., and Calandra, R. Objective mismatch in model-based reinforcement learning. In Proceedings of the 2nd Conference on Learning for
Dynamics and Control, volume 120 of Proceedings of Machine Learning Research, pp. 761–770. PMLR, 2020.
Li, J., Guo, D., Yang, D., Xu, R., Wu, Y., and He, J. CodeI/O: Condensing reasoning patterns via code input-output prediction. In International Conference on Machine Learning (ICML), 2025.
Lightman, H., Kosaraju, V., Burda, Y., Edwards, H., Baker, B., Lee, T., Leike, J., Schulman, J., Sutskever, I., and Cobbe, K. Let's verify step by step. In International Conference on Learning Representations (ICLR), 2024.
Liu, Z., Cai, Y., Zhu, X., Zheng, Y., Chen, R., Wen, Y., Wang, Y., E, W., and Chen, S. ML-Master: Towards AI-for-AI via integration of exploration and reasoning. arXiv preprint arXiv:2506.16499, 2025.
Ou, Y., Luo, Y., Zheng, J., Wei, L., Yu, Z., Qiao, S., Zhang, J., Zheng, D., Mao, Y., Gao, Y., Chen, H., and Zhang, N. AutoMind: Adaptive knowledgeable agent for automated data science. arXiv preprint arXiv:2506.10974, 2025.
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C. L., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
Palmer, J. Kev 1.0: Open-weight typed decision models. Software release, https://github.com/jaredpalmer/kev/releases/tag/kev-1.0, 2026.
Qiang, R., Zhuang, Y., Li, Y., Dingu Sagar V K, Zhang, R., Li, C., Wong, I. S.-H., Yang, S., Liang, P., Zhang, C., and Dai, B. MLE-Dojo: Interactive environments for empowering LLM agents in machine learning engineering. arXiv preprint arXiv:2505.07782, 2025.
Schrittwieser, J., Antonoglou, I., Hubert, T., Simonyan, K., Sifre, L., Schmitt, S., Guez, A., Lockhart, E., Hassabis, D., Graepel, T., Lillicrap, T., and Silver, D. Mastering Atari, Go, chess and shogi by planning with a learned model. Nature, 588:604–609, 2020.
Sheppard, W. F. On the application of the theory of error to cases of normal distribution and normal correlation. Philosophical Transactions of the Royal Society of London, Series A, 192:101–167, 1899.
Snell, C., Lee, J., Xu, K., and Kumar, A. Scaling LLM test-time compute optimally can be more effective than scaling model parameters. In International Conference on Learning Representations (ICLR), 2025.
Sutton, R. S. Dyna, an integrated architecture for learning, planning, and reacting. ACM SIGART Bulletin, 2(4): 160–163, 1991.
Thurstone, L. L. A law of comparative judgment. Psychological Review, 34(4):273–286, 1927.
Toledo, E., Hambardzumyan, K., Josifoski, M., et al. AI research agents for machine learning: Search, exploration, and generalization in MLE-bench. arXiv preprint arXiv:2507.02554, 2025.
Wang, R., Todd, G., Xiao, Z., Yuan, X., Côté, M.-A., et al. Can language models serve as text-based world simulators? In Annual Meeting of the Association for Computational Linguistics (ACL), 2024.
Watkins, C. J. C. H. and Dayan, P. Q-learning. Machine Learning, 8(3-4):279–292, 1992.
White, C., Zela, A., Ru, R., Liu, Y., and Hutter, F. How powerful are performance predictors in neural architecture search? In Advances in Neural Information Processing Systems (NeurIPS), 2021.
Yang, X., Yang, X., Fang, S., Zhang, Y., Wang, J., Xian, B., Li, Q., Li, J., Xu, M., Li, Y., Pan, H., Zhang, Y., Liu, W., Shen, Y., Chen, W., and Bian, J. R&D-Agent: An LLM-agent framework towards autonomous data science. arXiv preprint arXiv:2505.14738, 2025.
Zhang, L., Hosseini, A., Bansal, H., Kazemi, M., Kumar, A., and Agarwal, R. Generative verifiers: Reward modeling as next-token prediction. In International Conference on Learning Representations (ICLR), 2025.
Zheng, J., Zhang, J., Luo, Y., Mao, Y., Gao, Y., Du, L., Chen, H., and Zhang, N. Can we predict before executing machine learning agents? In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3941–3974. Association for Computational Linguistics, 2026. doi:10.18653/v1/2026.acl-long.182.
Zheng, L., Chiang, W.-L., Sheng, Y., Zhuang, S., Wu, Z., Zhuang, Y., Lin, Z., Li, Z., Li, D., Xing, E. P., Zhang, H., Gonzalez, J. E., and Stoica, I. Judging LLM-as-a-judge with MT-bench and chatbot arena. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2023.
A. Proofs
Throughout Sections A.1 to A.5, , rewards lie in , conditional statements hold for -almost every , and is the indicator of an event. We use one property of the total-variation distance : for probability measures and a measurable with values in ,
(layer-cake representation of )
(7)
and exchanging and gives .
A.1. Fixed-information ceiling
Proof of Theorem 3.1. Fix and write for the selected index. By Definition 2.2, is a function of , of , and of the rule's internal randomness. By Assumption 2.3, the last two are independent of the outcomes and of the tie-breaking in given , so
Value. Exactly one index is selected, so , and
Accuracy. The events , partition , so
(Equation (8))
(as for the value).
By the tower property, and ; taking expectations of the two displays gives Equation (3).
Gap. Since ,
and the same computation with in place of gives the accuracy gap. Each summand is a product of two nonnegative factors, so a gap is zero if and only if, for -almost every , implies that maximizes (respectively ).
Attainment. The rule , with ties broken by the smallest index, depends on X only and generates no outcome, so it is a value WRM. Its decision distribution is a point mass on a maximizer, so the gap vanishes and . The same argument shows that is a preference WRM with .
Proof of Corollary 3.2. Let be world-model selectors indexed by any effort parameter , each satisfying Assumption 2.3. Theorem 3.1 applies to each , and its right-hand sides do not depend on , so
and every limit of accuracies or values along the family obeys the same bounds.
A.2. Behavioral equivalence and distillation
Proof of Proposition 3.3. (i) From a world model to a WRM. Fix a world-model selector and set ; this is a map from to that generates no outcome. The sampled WRM draws with fresh randomness, independent of given . For every ,
so the two selectors have the same decision distribution on every instance. Both satisfy Equation (8), so the computation in the proof of Theorem 3.1 applies to each:
Taking expectations gives equal value and equal accuracy.
(ii) From a WRM to a world model. Given a preference WRM , take , and . The trace is drawn with randomness independent of given , so Assumption 2.3 holds, and .
(iii) Distillation. Fix and abbreviate and . The teacher outputs with probability , so
(Gibbs' inequality),
with equality if and only if . The entropy does not depend on , so the conditional loss is minimized exactly at , and integrating over shows that minimizes the distillation loss, uniquely up to -null sets.
Sampling versus argmax. Part (i) matches the teacher by sampling. The deterministic rule with can be less or more accurate: with and , the teacher is right with probability and its argmax with probability 0.1, whereas for the teacher is right with probability 0.58 and its argmax with probability 0.9. Nor need equal , so distillation inherits the teacher's errors.
A.3. Cross-entropy controls selection accuracy
Proof of Proposition 3.4. Step 1: the excess cross-entropy is an expected KL divergence. Given , has law , so
Step 2: accuracy of a deterministic rule. For a selector that is a function of , . With and ,
Step 3: the gap on one instance. Fix and drop it from the notation. If , the gap is zero. Otherwise by the choice of , and
(Pinsker's inequality).
Step 4: averaging. Taking expectations and applying Jensen's inequality to the concave square root,
A.4. Error decomposition
Lemma A.1 (Composition of simulation errors). Let and be the laws of under the real kernels and under the model kernels, started from the same . Then .
Proof. For and every measurable event , and . Adding and subtracting ,
For every , , so . The map takes values in , so Equation (7) gives . Taking the supremum over ,
Both chains start at , so , and unrolling the recursion gives
Finally, for any two probability measures.
Proof of Theorem 3.5. Value error. Fix and write and , so that and . Then
(triangle inequality)
(definition of ; Equation (7) with )
(Lemma A.1).
Selection. Fix an instance with , and let and , so that . Then
Values lie in , so the loss is also at most 1. If does not maximize , then is at most the second-best value and the loss is at least ; hence forces .
Regret. For a simulate-then-evaluate selector, the value error holds for every candidate with , so
For a direct value WRM with , the same argument with gives .
A.5. Objective mismatch in a restricted family
Proof of Proposition 3.6. True values. Under candidate the outcome is with independent coordinates and , and the reward is . Hence , and makes the higher-value candidate.
Likelihood fit. The tied-rate family models all coordinates of candidate as independent Bern(). The population log-likelihood of candidate is
Its derivative
is strictly decreasing on and vanishes at
which is therefore the unique maximizer.
Selection. With the exact evaluator, the world model's value estimate is the model's mean of the reward bit, . Then
which is positive exactly when . In that case the selector chooses on every instance, with value regret .
Reward-only fit. Fitting the same family to the reward bit alone maximizes , whose unique maximizer is by the same derivative argument with d = 0. The estimates are , and the argmax is .
Example. With , , and ,
and , so the selector picks with regret 0.8-0.3=0.5.
Winner probability. For independent reward bits with ties broken uniformly at random,
which is 0.75 in the example. Even the Bayes preference selector, which picks , is right with probability 0.75, and the likelihood-fitted world model, which picks , is right with probability 0.25. The construction concerns population objectives in this tied-rate family.
B. Idealized Gaussian Screening
Cheap judges let an agent screen more candidates. To ask how much breadth can compensate for accuracy, we leave the bounded setting of Section 2 and adopt the classical model of comparative judgment (Thurstone, 1927).
Assumption B.1 (Idealized Gaussian screening). On an instance, candidate values and fixed judge scores form independent and identically distributed pairs , each bivariate normal with value mean , value spread , score mean , score spread , and correlation .
Lemma B.2 (Pairwise accuracy determines correlation). Under Assumption B.1, the pairwise accuracy of the judge is .
Theorem B.3 (Screening law). Under Assumption B.1, selecting yields
where are independent standard normal and is their expected maximum; increases in , , and .
Corollary B.4 (Breadth compensates slowly). A judge with correlation screening candidates matches the expected gain of one with screening only if , which requires .
(a) Accuracy sets correlation

(b) Breadth compensates slowly
Figure 6. In the idealized Gaussian model, breadth compensates for accuracy only slowly. (a) Lemma B.2 maps pairwise accuracy to correlation . (b) Expected gain in units of (Theorem B.3) for illustrative and : the judge needs candidates to match the judge at . Curves are analytic and are not fitted to the agents studied here.
Theorem B.3 is the breeder's equation of quantitative genetics (Falconer & Mackay, 1996): response to selection equals intensity times accuracy times spread. For illustrative pairwise accuracies of 0.615 and 0.794, the levels reported for an LLM judge and measured for ForeCritic on different test sets, Lemma B.2 gives and 0.80, and the first judge needs at least 175 and exactly 907 candidates to match what the second obtains from 8 (Figures 6 and 7). The conclusion depends on the idealization: Gaussian values are unbounded, a pairwise selector need not define a global score, accuracy against a noisy winner is not accuracy against expected value, and whether breadth pays also depends on the cost of generating candidates.
B.1. Proofs
Proof of Lemma B.2. Fix and let and . The pairs and are independent and identically distributed, so
Hence is a centered bivariate normal vector with correlation
Sheppard’s formula (Sheppard, 1899) for such a vector gives , and by symmetry. Therefore
Proof of Theorem B.3. Conditional mean. Set , so that are independent standard normal. For a bivariate normal pair,
The pairs are independent across candidates, so is independent of given , and .
Selected value. The index is a function of the scores, so
Taking expectations gives , and for every fixed , which proves Equation (9).
Monotonicity. pointwise, so .
Two candidates. Using and , whose absolute value has mean ,
Upper bound. For every ,
Taking logarithms and dividing by , . The right-hand side is minimized at , where it equals .
Proof of Corollary B.4. By Theorem B.3, the two judges gain and over the average candidate. The first matches the second exactly when
Since , this requires , that is, ; exponentiating gives the bound.
Lemma B.5 (Knockout compounding). In a single-elimination bracket over candidates, suppose that, in every round and conditionally on having survived, the best candidate wins its match with probability , independently of earlier rounds. Then it is selected with probability .
Proof. Let be the event that the best candidate wins its match in round . It is selected exactly when occurs, so by the chain rule and the assumption,
The conditional accuracy in Lemma B.5 is the accuracy of the best candidate against its actual opponents, which generally differs from the average pairwise accuracy over all pairs; the lemma is an idealization, not a prediction for the tournaments of Section 4.3.
B.2. Numerical values

Figure 7. The expected maximum of standard normals grows like . by numerical integration, with and the standard normal density and distribution function, against the bound of Theorem B.3. Multiplying by 128, from 8 to 1024, multiplies by 2.3. The marked points give the catch-up example: is times .
Catch-up example. For illustrative pairwise accuracies and , Lemma B.2 gives and . Matching the judge at requires . Corollary B.4 gives , so at least 175; numerically and , so the smallest sufficient is 907. A Monte Carlo check with 100,000 draws per setting, for and , matches Equation (9) and Lemma B.2 within five standard errors; this verifies the formulas, not their fit to real agents.
C. Data, Training, and Inference Details
Partitions. We split the 18,438 source pairs of the corpus once, before training, into five partitions: 5,000 pairs for training, 250 for development, 250 for calibration, 500 for an internal test, and 12,438 for the final test. No source pair, and no identical unordered pair of programs, appears in two partitions; tasks are shared across partitions, and a program can appear in pairs of different partitions. Development pairs select the checkpoint, calibration pairs fit the temperature, and the internal test is a check run once; the final test carries the main results, scored once with the full input and once without the data report. Of its 12,438 pairs, 5,996 contain at least one program absent from training and 501 contain two. A few identical program pairs carry conflicting labels in the source corpus; we keep them as they are.
Model and optimization. ForeCritic keeps the backbone of the released Kev-9B, Qwen3.5-9B-Base, frozen in BF16, and initializes the LoRA adapter (rank 16, , dropout 0.05) and the pointer head from Kev-9B (Palmer, 2026); only these two parts are trained. The pointer head consists of the two affine projections of Equation (5), from 4,096 to 256 dimensions. Each training pair is rendered in three input formats (full JSON, JSON without the data report, and sectioned text) and in both candidate orders, and each epoch draws one of the six variants per pair, so the model sees every pair once per epoch in a varying surface form. We minimize Equation (6) with AdamW (weight decay 0.01, gradient clipping at 1.0) at learning rates of for the adapter and for the head, with 5% linear warm-up and cosine decay to 10% of the peak. An effective batch of 32 pairs (micro-batch 1, gradient accumulation 4, eight GPUs) gives 628 updates over four epochs. Inputs are never truncated; the longest has about 46K tokens. Training on eight A800 GPUs takes 4.18 hours, including loading and validation.
Selection and calibration. We keep the checkpoint with the highest development accuracy, breaking ties by lower NLL; this is the final, fourth-epoch checkpoint, at 78.4% development accuracy. We then fit the temperature of Equation (5) by minimizing NLL on the calibration partition over a logarithmic grid, which gives for ForeCritic and for Kev-9B. Neither step uses final-test labels.
Input format. A request places all content in a state and asks one question with two short options. The following synthetic request illustrates the schema; real candidates are complete programs.
state: {"task": "synthetic-binary-classification", "task_description": "Predict a binary target. Higher ROC-AUC is better.", "data_analysis_report": "Numeric features with missing values.", "solutions": {"solution_0": "<complete program A>", "solution_1": "<complete program B>"} question: Which solution is expected to perform better? options: solution_0: Solution 0 is expected to outperform Solution 1. solution_1: Solution 1 is expected to outperform Solution 0.
The response is the chosen option with a probability for each option. Main results score the original order once; swapping is used only as training augmentation and in the order analysis of Section D.3.
D. Additional Results
D.1. Shared-pair comparison with Qwen and an earlier adaptation

Figure 8. On the 9,879 pairs common to all evaluations, only the execution-adapted models clearly exceed chance. Pairwise accuracy on the same pairs and labels; the models differ in weights, inputs, and training. Kev fine-tune v1 is an earlier adaptation with a different recipe and split. Labels on the right give ForeCritic's paired advantage, which is significant against every model.
Figure 8 places the two Qwen judges, the released Kev-9B, and an earlier adaptation on the 9,879 final-test pairs that every evaluation covers. Reasoning raises Qwen3.5-9B from 52.82% to 53.12%, and neither adaptation trained on these pairs. The earlier adaptation reaches 60.82%; the recipe of Section 4.2 reaches 79.89%.
D.2. Probability quality
Temperature scaling lowers Kev-9B's NLL from 1.525 to 0.685 and its ECE from 0.345 to 0.025, but its accuracy stays at 54.53%, and above it accepts no decision at all (Figure 9). For ForeCritic, scaling changes NLL only from 0.4364 to 0.4332 and ECE from 0.0251 to 0.0163, because the raw probabilities are already close to calibrated. Raising from 0.5 to 0.95 shrinks ForeCritic's accepted share from 100% to 25.2% and raises its accuracy from 79.4% to 97.3%.
D.3. Transfer details
The transfer candidates are the 48 programs with a public validation metric that ForeAgent executed with ForeCritic as its selector on ten MLE-Dojo tasks; one task, random-acts-of-pizza, also occurs in ForeCritic's training corpus. Both
(a) Scaling repairs Kev-9B's probabilities, not its accuracy

(b) Confidence trades coverage for accuracy

Figure 9. Temperature scaling refines an already calibrated ForeCritic and repairs Kev-9B's probabilities but not its accuracy; ForeCritic's confidence trades coverage for accuracy. Final test, 12,438 pairs. (a) NLL, Brier score summed over the two classes, and ECE over ten bins, before and after temperature scaling; accuracy is unchanged by scaling (54.53% for Kev-9B, 79.44% for ForeCritic). (b) Fraction of decisions kept and their accuracy when only decisions with chosen-class probability at least are accepted; thresholds were not tuned on these labels.
judges receive the same fields and question; ForeCritic reads compact JSON, and DeepSeek-V4.1-Flash reads the fields as text with temperature 0, at most 200 output tokens, and reasoning disabled. The accuracy difference stays insignificant when whole tasks are resampled. Probabilities recovered from the logged confidences have an approximate ECE of 0.037 without refitting the temperature, and a threshold of 0.7 keeps 90 of 182 judgments (49.5%) with 72 correct (80.0%).
(a) Accuracy in each order

(b) What happens to each pair across the two orders

Figure 10. On fresh agent candidates, ForeCritic is more accurate in each presentation order but less order-consistent than DeepSeek. 91 pairs from ten MLE-Dojo tasks. (a) Accuracy in each order and, for ForeCritic, after averaging the two orders' probabilities. (b) Each pair judged in both orders is right twice, right once (the two orders disagree), or wrong twice.
Order consistency and averaging. After mapping both orders back to the same programs, ForeCritic makes the same choice on 69 of 91 pairs (75.8%): 53 are right in both orders, 16 wrong in both, and 22 split (Figure 10); DeepSeek is consistent on 82.4%. If the presentation order carries no information about the winner, the swap of the two candidates satisfies . The order-averaged predictor then satisfies
(convexity of ),
so its excess cross-entropy, and with it the bound of Proposition 3.4, is no worse than the mean over the two orders. Averaging ForeCritic's two probabilities per pair yields 63 of 91 correct (69.23%), an insignificant change of points from the mean single-order accuracy; in this sample, order averaging neither helps nor clearly hurts accuracy, at the price of a second forward pass.
E. Agent Integration Details
Settings. All runs use DeepSeek-V4.1-Flash for code generation with temperature 0.5, at most 20 generations per step, a 6-hour task limit, a 3,600-second execution timeout, and a final repair budget of 2. AIDE and ML-Master start from 5 drafts and search with a verification budget of 0; ForeAgent starts from 3 drafts with batches of 10 and threshold on the chosen-class probability, judging each pair in one order with the first position alternating across comparisons (Algorithm 2). AIDE and ForeAgent use a fixed seed; ML-Master does not expose one. Each configuration contributes one scored run per task.
Algorithm 2 Confidence-gated pairwise tournament with a WRM (ForeAgent integration)
Require: context , batch of proposed programs, WRM , threshold
1: while do 2: pair the programs in ; 3: for each pair do 4: {one forward pass} 5: add to the soft scores of and 6: if then 7: add the program with the smaller probability to 8: end if 9: end for 10: if then 11: break {no confident elimination} 12: end if 13: 14: end while 15: execute the program of with the highest soft score
Cost accounting. Task time is a run's elapsed wall-clock time from start to scored submission. It includes the data report, code generation, every selector call, and the final execution with up to two repairs, and it excludes loading ForeCritic, which the service does once before the runs. The 446 ForeCritic comparisons in the 30 runs took about 560 seconds of logged service time in total, including queueing (median 1.2 seconds). Each comparison is one prefill over the task, report, and both programs, with no decoding. One-time costs lie outside task time: adaptation took 4.18 hours on eight A800 GPUs (33.4 GPU-hours), and the 5,000 training labels reuse executions from the Predict-Before-Execute corpus. Code generation calls the same model in every configuration.
Per-task results and re-scoring. We re-scored all 30 ForeCritic submissions independently against the private test answers (Figure 11). Averaged over tasks, the native scores are 0.5994 for AIDE, 0.6088 for ML-Master, and 0.6068 for ForeAgent. A few long tasks account for much of the time: aerial-cactus for AIDE (45 minutes) and ForeAgent (27 minutes), and crowdflower-weather for ForeAgent (76 minutes).
Original and Jev selectors. The original-selector and Jev rows of Table 2 use the same agent configuration, tasks, and scoring as the ForeCritic runs. In the original AIDE and ML-Master, candidates are executed during search; in the original ForeAgent, an LLM judge settles the tournament. We report their mean native scores and mean task times, which follow the same definitions; their per-task values are not reproduced here. Because native metrics differ in scale and direction, these means summarize each configuration rather than measure a common quantity, and with one run per task we do not test the differences for significance.

Figure 11. With ForeCritic as selector, the three agents are within 4% of each other on five of ten tasks, and a few long tasks dominate task time. One scored run per task. (a) Relative gap between each agent's native score and the best of the three on that task, taking the metric direction into account (0 is the best); under each task are its metric, direction, and best score, and the bottom row gives the mean native scores of Table 2. (b) Task time in minutes.