arXiv:2610.38439cs.AIOct 2026

Manuscript Offprint

arXiv:2610.38439

Predict the Reward, Not the World: World Reward Models for ML Agents

Yuxiao Lee, Zherui Yang, Fan Liu, Hao Liu

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

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

References (57)