Skip to content
ImagineWorld

Can We Predict Before Executing Machine Learning Agents?

node_idnode-paper_arxiv-2601.05930_can-we-predict-before-executing-machine-learning-agents
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2601.05930
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the predictive-harnesses field, the work asks whether ML agents can predict before executing — forecasting the outcome of an action before running it, and measuring what pre-execution prediction buys — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleCan We Predict Before Executing Machine Learning Agents?
paper_authorsJingsheng Zheng, Jintian Zhang, Yujie Luo, Yuren Mao, Yunjun Gao, Lun Du, Huajun Chen, Ningyu Zhang
arxiv_id2601.05930
arxiv_urlhttps://arxiv.org/abs/2601.05930
arxiv_categories{"primary":"cs.CL","secondary":["cs.AI","cs.LG","cs.MA"]}
arxiv_v2
arxiv_submitted_at2026-01-09
arxiv_updated_at2026-04-07
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:23:52Z
local graph

Can We Predict Before Executing Machine Learning Agents?

Section titled “Can We Predict Before Executing Machine Learning Agents?”

Authors: Jingsheng Zheng, Jintian Zhang, Yujie Luo, Yuren Mao, Yunjun Gao, Lun Du, Huajun Chen, Ningyu Zhang

arxiv: 2601.05930

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Autonomous machine learning agents have revolutionized scientific discovery, yet they remain constrained by a Generate-Execute-Feedback paradigm. Previous approaches suffer from a severe Execution Bottleneck, as hypothesis evaluation relies strictly on expensive physical execution. To bypass these physical constraints, we internalize execution priors to substitute costly runtime checks with instantaneous predictive reasoning, drawing inspiration from World Models. In this work, we formalize the task of Data-centric Solution Preference and construct a comprehensive corpus of 18,438 pairwise comparisons. We demonstrate that LLMs exhibit significant predictive capabilities when primed with a Verified Data Analysis Report, achieving 61.5% accuracy and robust confidence calibration. Finally, we instantiate this framework in ForeAgent, an agent that employs a Predict-then-Verify loop, achieving a 6x acceleration in convergence while surpassing execution-based baselines by +6%. Our code and dataset are publicly available at https://github.com/zjunlp/predict-before-execute.

Autonomous machine learning agents have emerged as powerful tools for solving complex challenges in scientific discovery Zhang et al. (2025d); Chen et al. (2025b). Mainstream frameworks Jiang et al. (2025); Ou et al. (2025) typically rely on an iterative “Generate-Execute-Feedback” loop where the system refines code based on runtime output Yao et al. (2023). However, this paradigm suffers from a severe Execution Bottleneck as physical execution is computationally expensive and slow, often consuming up to 9 hours per run in benchmarks like MLE-Bench Chan et al. (2025). Increasingly, recent research has identified this latency issue and sought to mitigate the computational overhead through heuristic pruning strategies Trirat et al. (2025); Kulibaba et al. (2025).

Figure 1: From Execution to Inference. Traditional ML agents improve through costly execution and external feedback, inc

Figure 1: From Execution to Inference. Traditional ML agents improve through costly execution and external feedback, incurring substantial latency. Our work investigates whether superior data-grounded solutions can be identified before execution by leveraging “Implicit Execution Priors”.

To fundamentally bypass these physical constraints, the concept of World Models Ding et al. (2025) offers a transformative alternative (Figure 1). Originating from reinforcement learning, world models enable agents to simulate environmental dynamics and evaluate actions via internal predictions rather than external trials Ha and Schmidhuber (2018); Hafner et al. (2024). Recent advancements have extended this capability to the code domain by predicting execution outputs directly Li et al. (2025c); team et al. (2025). Motivated by this, we explore whether agents can internalize execution priors, substituting costly runtime checks with instantaneous predictive reasoning. The potential to replace 9 hours of physical latency with 1 second of neural speed brings us to a fundamental question: Can we compress hours of physical execution into seconds of logical inference?

To answer this question, we formalize the task of Data-centric Solution Preference, where the model must predict the relative performance of two algorithmic solutions given a data analysis report, through reasoning without physical execution. To rigorously evaluate this, we construct a large-scale corpus comprising 18,438 pairwise comparisons. Our main experiments yield strong evidence: LLMs exhibit significant predictive capabilities, with DeepSeek-V3.2-Thinking achieving 61.5% accuracy, outperforming both random guessing (50.0%) and complexity-based heuristics (50.8%). Further analysis reveals that reasoning-optimized architectures transcend complexity heuristics through genuine data reasoning, yielding well-calibrated confidence that ensures the reliability of implicit evaluation. Finally, we integrate this predictive mechanism into ForeAgent, an agent that employs a Predict-then-Verify loop to decouple exploration from execution, expanding the search space by 3.2×3.2\times and achieving a 6×6\times acceleration while delivering a +6% performance gain over standard baselines.

In summary, our contributions are three-fold:

  • •

    We define the novel task of Data-centric Solution Preference and construct a comprehensive corpus of 18,438 pairs, answering the titular question that LLMs Exhibit Significant Predictive Capabilities.

  • •

    We operationalize this framework in ForeAgent, an agent that employs a Predict-then-Verify loop to decouple exploration from execution, enabling it to expand the search space by 3.2×\bm{3.2\times} and achieve a 6×\bm{6\times} acceleration and a +6% performance gain over the baseline.

  • •

    We contribute a large-scale Open-Source Dataset of verified execution trajectories, serving as a foundational corpus for training scalable Reward Models to accelerate reinforcement learning rollouts and optimization across diverse agent frameworks.

Figure 2: Overview of the Framework. (a) Task Definition: The Data-centric Solution Preference task predicts solution superiority and confidence via latent reasoning. (b-c) Data Curation: We collect and filter real-world agent trajectories to construct the Preference Corpus . (d) Augmentation: Inputs are augmented with Verified Data Reports via a “Profile-Verify-Verbalize” pipeline. (e) ForeAgent Application: The model serves as a filter within the Predict-then-Verify loop, predicting preference before physical execution to prune candidates.

An autonomous Machine Learning (ML) task aims to generate an optimal solution code C\*C^{\*} from the code space CC that maximizes a metric MM on a dataset D\mathcal{D}, given a natural language instruction II (see Appendix Figure 13):

C\*=\*⁡arg max_CM(I,C,D)C^{\*}=\operatorname\*{arg\,max}\_{C}M(I,C,\mathcal{D})(1)

Current agents typically follow a Generate-Execute-Feedback paradigm Zhu et al. (2025b). For instance, AIDE Jiang et al. (2025) organizes solution exploration as a tree search process involving sequential drafting, debugging, and iterative improvement via execution feedback. Building upon this, AutoMind Ou et al. (2025) integrates a curated expert knowledge base with a self-adaptive coding strategy to tackle more intricate problems (see Appendix A for details).

DomainParadigms# Tsk# Sols# Pairs
CVClassification, Segmentation, Generation, Restoration92895,952
NLPClassification, Matching, QA, Sequence Labeling, Ranking83036,682
Data ScienceRegression, Time-Series, Audio, Tabular, Grading93035,804
Total26 Distinct Tasks across 3 Domains2689518,438

Table 1: Statistics of the Preference Corpus. We aggregate 26 tasks into three primary domains, ensuring a balanced distribution of ∼\sim6,000 pairs each. (See Appendix B.1 for granular breakdown).

The primary constraint in current agents is the reliance on physical execution for feedback. Formally, the update of solution C_t+1C\_{t+1} depends on the result R_tR\_{t} from executing on dataset D\mathcal{D}:

C_t+1←Agent(I,C_t,Execute(C_t,D)⏟_R_t)C\_{t+1}\leftarrow\text{Agent}(I,C\_{t},\underbrace{\text{Execute}(C\_{t},\mathcal{D})}\_{R\_{t}})(2)

Unlike symbolic tasks with instantaneous verification, training deep learning models involves heavy computation, frequently leading to timeout failures Chan et al. (2025). This efficiency gap necessitates compressing hours of physical execution into seconds of logical inference, mirroring how human experts utilize mental simulation to discard sub-optimal algorithms prior to implementation.

2.3 Implicit World Modeling in Data Domains

Section titled “2.3 Implicit World Modeling in Data Domains”

We investigate whether LLMs can function as an Implicit World Model Ha and Schmidhuber (2018); Hafner et al. (2024). While recent works explore this direction across diverse symbolic and interactive domains Li et al. (2025e); team et al. (2025); Just et al. (2024), our Data-centric Solution Preference task is distinct: unlike tracking explicit states, the model must anticipate the invisible coupling of algorithmic logic and stochastic data. Thus, we formulate the problem as a Pairwise Preference task Shen et al. (2024), determining the superior solution purely via reasoning to identify promising candidates prior to execution.

This section details the curation of our preference corpus. We begin by formalizing the task to clarify the data requirements, followed by the collection and augmentation processes.

We model the data-centric task as a pairwise selection task: given a task description, a data report, and two candidate solutions, the objective is to identify the superior solution and estimate a confidence score (Figure 2(a)). Formally, the input X\mathcal{X} is:

X=(I,D_rep,{C_0,C_1},P)\mathcal{X}=\left(I,D\_{rep},\{C\_{0},C\_{1}\},\mathcal{P}\right)(3)

where II, D_repD\_{rep}, {C_0,C_1}\{C\_{0},C\_{1}\}, and P\mathcal{P} denote the task, data report, code pair, and system prompt, respectively. The output Y\mathcal{Y} is defined as:

Y={(cot,y^,c)∣cot,  y^∈{0,1},  c∈[0,1.0]}\mathcal{Y}=\left\{(cot,\hat{y},c)\mid cot,\;\hat{y}\in\{0,1\},\;c\in[0,1.0]\right\}(4)

consisting of the reasoning cotcot, predicted winner y^\hat{y}, and confidence cc, which serves as the gating threshold in Section 6.

To instantiate the task inputs defined above, we construct a large-scale corpus derived from the real-world execution trajectories of two ML agents, AIDE Jiang et al. (2025) and AutoMind Ou et al. (2025), operating on MLE-bench Chan et al. (2025) platform (Figure 2(b)). Powered by DeepSeek-V3.1 DeepSeek-AI (2025b) and o3-mini OpenAI (2025a), these agents generate 1,329 valid solutions across 26 diverse tasks (Table 1). Unlike synthetic snippets, these candidates represent complete ML workflows that are entirely generated by agents and absent from any pre-training corpora, heavily incorporating logically incomplete but executable intermediate states to model noisy real-world exploration (see Appendix B.4). Therefore, identifying the superior solution requires evaluating how well an algorithm fits the specific data characteristics, rather than merely checking for code syntax.

For rigorous evaluation, we implement an Expert-in-the-Loop pipeline to prune raw trajectories into 895 high-quality instances. This process involves deduplication, taxonomy tagging, and expert sampling to cap dominant methods and ensure algorithmic diversity. Next, we instantiate the dataset by exhaustively generating pairwise combinations from this curated corpus. We apply strict filtering to discard ambiguous pairs and balance the ground-truth winner’s position to mitigate position bias Shi et al. (2024). This yields a final dataset of 18,438 comparisons (Figure 2(c)), utilizing micro-averaged accuracy as the primary metric.

3.4 Input Augmentation: The Verified Data Analysis Report

Section titled “3.4 Input Augmentation: The Verified Data Analysis Report”

To address LLMs’ numerical limitations Davies et al. (2025); Li et al. (2025b) and context constraints preventing direct data ingestion, we augment inputs with a Verified Data Analysis Report that transforms raw statistics into semantic narratives Rytting and Wingate (2021); Zhang et al. (2025a). To guarantee factual grounding and prevent hallucination, we implement a strict protocol (Figure 2(d)) consisting of three concrete steps: (1) Code Generation: GPT-5.1 OpenAI (2025b) generates a Python script to profile raw data with labels masked. For example, it writes “print(df[’target’].value_counts())” to inspect the target distribution. (2) Execution and Verification: The script runs in a sandbox to produce standard output. A human expert performs a strict pass or fail validity check to ensure the log is free of runtime errors. For instance, the execution log returns a raw fact like “Target Distribution: 0: 0.915, 1: 0.085”. (3) Verbalization: GPT-5.1 reads this execution log and translates it into a semantic insight. Following the previous example, it produces the final report: “Data Imbalance Warning: Severe class imbalance (Pos: 8.5%). Implication: Accuracy is not a suitable metric; consider using F1-score.” This process ensures reliable semantic grounding for the task (see case in Appendix Figure 12).

(Acc. %) Task Dims. →\rightarrowDomainDifficultyTask ParadigmSols.
↓\downarrow Sols. Attrs.CVNLPData Sci.EasyMed.HardClass.Regres.OthersAvg Acc
DeepSeek-V3.2 (Thinking mode)
Traditional60.2_±0.960.2\_{\pm 0.9}70.6_±0.670.6\_{\pm 0.6}59.3_±0.559.3\_{\pm 0.5}59.8_±1.159.8\_{\pm 1.1}69.1_±0.269.1\_{\pm 0.2}61.1_±0.761.1\_{\pm 0.7}61.5_±0.561.5\_{\pm 0.5}61.2_±0.761.2\_{\pm 0.7}76.2_±0.576.2\_{\pm 0.5}64.5_±0.6\bm{64.5}\_{\pm\bm{0.6}}
Algo EraModern59.1_±0.559.1\_{\pm 0.5}65.0_±0.165.0\_{\pm 0.1}56.3_±0.556.3\_{\pm 0.5}60.7_±0.360.7\_{\pm 0.3}61.7_±0.361.7\_{\pm 0.3}55.1_±0.655.1\_{\pm 0.6}57.8_±0.257.8\_{\pm 0.2}62.5_±0.462.5\_{\pm 0.4}62.3_±0.562.3\_{\pm 0.5}60.4_±0.260.4\_{\pm 0.2}
Cross-Algo56.6_±0.356.6\_{\pm 0.3}68.9_±0.768.9\_{\pm 0.7}58.4_±0.958.4\_{\pm 0.9}57.6_±1.057.6\_{\pm 1.0}68.2_±0.468.2\_{\pm 0.4}57.7_±1.557.7\_{\pm 1.5}59.8_±0.759.8\_{\pm 0.7}60.6_±0.760.6\_{\pm 0.7}74.1_±0.974.1\_{\pm 0.9}62.8_±0.6\bm{62.8}\_{\pm\bm{0.6}}
GranularitySelf-Comp.60.1_±0.660.1\_{\pm 0.6}65.1_±0.265.1\_{\pm 0.2}56.3_±0.856.3\_{\pm 0.8}61.6_±0.361.6\_{\pm 0.3}60.9_±0.460.9\_{\pm 0.4}56.5_±1.056.5\_{\pm 1.0}58.2_±0.158.2\_{\pm 0.1}62.9_±0.462.9\_{\pm 0.4}62.1_±0.562.1\_{\pm 0.5}60.7_±0.160.7\_{\pm 0.1}
Low57.6_±0.457.6\_{\pm 0.4}69.8_±0.569.8\_{\pm 0.5}57.2_±0.357.2\_{\pm 0.3}58.9_±0.658.9\_{\pm 0.6}66.2_±0.266.2\_{\pm 0.2}58.9_±0.758.9\_{\pm 0.7}58.6_±0.258.6\_{\pm 0.2}61.6_±0.261.6\_{\pm 0.2}73.3_±0.973.3\_{\pm 0.9}62.1_±0.3\bm{62.1}\_{\pm\bm{0.3}}
Medium59.6_±0.359.6\_{\pm 0.3}65.1_±0.165.1\_{\pm 0.1}58.1_±0.258.1\_{\pm 0.2}60.5_±0.260.5\_{\pm 0.2}63.3_±0.163.3\_{\pm 0.1}56.6_±0.256.6\_{\pm 0.2}58.1_±0.258.1\_{\pm 0.2}63.4_±0.363.4\_{\pm 0.3}64.6_±0.664.6\_{\pm 0.6}61.3_±0.161.3\_{\pm 0.1}
ComplexityHigh61.2_±2.061.2\_{\pm 2.0}80.1_±0.780.1\_{\pm 0.7}50.0_±1.150.0\_{\pm 1.1}76.8_±2.876.8\_{\pm 2.8}58.4_±1.658.4\_{\pm 1.6}52.7_±0.952.7\_{\pm 0.9}60.3_±2.560.3\_{\pm 2.5}58.4_±1.458.4\_{\pm 1.4}61.3_±1.761.3\_{\pm 1.7}59.6_±1.459.6\_{\pm 1.4}
Tasks Avg Acc59.3_±0.559.3\_{\pm 0.5}66.9_±0.2\bm{66.9}\_{\pm\bm{0.2}}57.4_±0.257.4\_{\pm 0.2}60.4_±0.560.4\_{\pm 0.5}63.9_±0.2\bm{63.9}\_{\pm\bm{0.2}}57.0_±0.357.0\_{\pm 0.3}58.9_±0.358.9\_{\pm 0.3}62.1_±0.162.1\_{\pm 0.1}66.8_±0.5\bm{66.8}\_{\pm\bm{0.5}}61.5_±0.2\bm{61.5}\_{\pm\bm{0.2}}
GPT-5.1
Algo EraTraditional60.1_±0.460.1\_{\pm 0.4}64.7_±0.264.7\_{\pm 0.2}59.5_±0.259.5\_{\pm 0.2}56.6_±0.456.6\_{\pm 0.4}65.5_±0.265.5\_{\pm 0.2}63.4_±0.363.4\_{\pm 0.3}59.3_±0.659.3\_{\pm 0.6}62.2_±0.262.2\_{\pm 0.2}67.2_±0.367.2\_{\pm 0.3}62.0_±0.2\bm{62.0}\_{\pm\bm{0.2}}
Modern54.5_±0.254.5\_{\pm 0.2}62.2_±0.862.2\_{\pm 0.8}56.3_±0.156.3\_{\pm 0.1}55.1_±0.455.1\_{\pm 0.4}59.9_±0.459.9\_{\pm 0.4}57.9_±0.057.9\_{\pm 0.0}56.4_±0.556.4\_{\pm 0.5}58.2_±0.558.2\_{\pm 0.5}59.8_±0.659.8\_{\pm 0.6}57.7_±0.357.7\_{\pm 0.3}
GranularityCross-Algo58.0_±1.158.0\_{\pm 1.1}61.2_±0.361.2\_{\pm 0.3}56.7_±0.156.7\_{\pm 0.1}55.3_±0.755.3\_{\pm 0.7}61.3_±0.261.3\_{\pm 0.2}59.8_±0.159.8\_{\pm 0.1}55.7_±0.855.7\_{\pm 0.8}61.7_±0.361.7\_{\pm 0.3}62.0_±0.562.0\_{\pm 0.5}59.0_±0.3\bm{59.0}\_{\pm\bm{0.3}}
Self-Comp.54.8_±0.054.8\_{\pm 0.0}64.2_±1.064.2\_{\pm 1.0}57.7_±0.157.7\_{\pm 0.1}55.3_±0.455.3\_{\pm 0.4}61.6_±0.461.6\_{\pm 0.4}59.2_±0.259.2\_{\pm 0.2}58.0_±0.758.0\_{\pm 0.7}57.6_±0.557.6\_{\pm 0.5}62.2_±0.762.2\_{\pm 0.7}58.7_±0.358.7\_{\pm 0.3}
ComplexityLow56.4_±0.256.4\_{\pm 0.2}66.6_±0.566.6\_{\pm 0.5}56.2_±0.256.2\_{\pm 0.2}56.8_±0.556.8\_{\pm 0.5}64.2_±0.264.2\_{\pm 0.2}57.6_±0.257.6\_{\pm 0.2}57.9_±0.757.9\_{\pm 0.7}59.3_±0.259.3\_{\pm 0.2}68.7_±0.368.7\_{\pm 0.3}60.1_±0.3\bm{60.1}\_{\pm\bm{0.3}}
Medium55.8_±0.255.8\_{\pm 0.2}60.6_±0.660.6\_{\pm 0.6}59.3_±0.259.3\_{\pm 0.2}54.6_±0.454.6\_{\pm 0.4}61.2_±0.361.2\_{\pm 0.3}61.1_±0.261.1\_{\pm 0.2}56.5_±0.556.5\_{\pm 0.5}60.0_±0.560.0\_{\pm 0.5}60.5_±0.660.5\_{\pm 0.6}58.6_±0.358.6\_{\pm 0.3}
High50.8_±0.350.8\_{\pm 0.3}79.0_±0.879.0\_{\pm 0.8}57.2_±1.557.2\_{\pm 1.5}44.2_±2.744.2\_{\pm 2.7}56.2_±0.456.2\_{\pm 0.4}59.7_±1.659.7\_{\pm 1.6}56.0_±0.756.0\_{\pm 0.7}54.5_±0.754.5\_{\pm 0.7}56.2_±1.156.2\_{\pm 1.1}55.3_±0.355.3\_{\pm 0.3}
Tasks Avg Acc55.4_±0.255.4\_{\pm 0.2}63.0_±0.6\bm{63.0}\_{\pm\bm{0.6}}57.4_±0.157.4\_{\pm 0.1}55.5_±0.455.5\_{\pm 0.4}61.6_±0.3\bm{61.6}\_{\pm\bm{0.3}}59.7_±0.159.7\_{\pm 0.1}57.2_±0.557.2\_{\pm 0.5}59.2_±0.359.2\_{\pm 0.3}62.2_±0.5\bm{62.2}\_{\pm\bm{0.5}}58.8_±0.358.8\_{\pm 0.3}

Table 2: Main Results: Predictive Capability and Boundary Analysis. This table presents the Pairwise Preference Accuracy (%) of the evaluated LLMs averaged over three runs, stratified by Task Dimensions and Solution Attributes. Results are reported as Mean _±Stdev{}\_{\pm\text{Stdev}}. DeepSeek-V3.2 (Thinking Mode) and GPT-5.1 achieve global averages of 61.5% and 58.8% respectively, significantly outperforming the random baseline of 50% and the complexity-based heuristic baseline of 50.8%.

We evaluate two state-of-the-art models: DeepSeek-V3.2-Thinking DeepSeek-AI (2025b) and GPT-5.1 (gpt-5.1-2025-11-13) OpenAI (2025b) with reasoning instructions Wei et al. (2023); Kojima et al. (2023), adhering to the task in Section 3.1. Following provider guidelines DeepSeek-AI (2024), we set the temperature τ=1.0\tau=1.0 for both models as the recommended default for data analysis.

The primary metric is Micro-Averaged Accuracy across 18,438 pairwise comparisons. We benchmark against two baselines: (1) Random Guess (50.0%); (2) Complexity Heuristic (50.8%): A rule-based baseline that assumes “complex is better”. To operationalize this, we employed an LLM to score each solution (1-10) across three dimensions: Code Engineering, Model Architecture, and Data Pipeline (see Appendix Figure E). This baseline predicts the winner based on the aggregate complexity score.

4.2 Main Results: Feasibility of Run-Free Preference

Section titled “4.2 Main Results: Feasibility of Run-Free Preference”

The stratified pairwise accuracy results in Table 2 validate the feasibility of our approach.

LLMs Exhibit Significant Predictive Capabilities. Both models significantly outperform the random baseline and the complexity heuristic with statistical significance, with DeepSeek-V3.2-Thinking achieving 61.5% and GPT-5.1 achieving 58.8%. This performance gap (>10%>10\%) proves LLMs derive valid signals from static inputs through genuine reasoning rather than heuristics, despite the task remaining a challenging frontier.

Figure 3: Comprehensive Analysis of World Model Mechanisms and Capabilities. (a) Impact of Data Representation: Predicti

Figure 3: Comprehensive Analysis of World Model Mechanisms and Capabilities. (a) Impact of Data Representation: Predictive success stems from semantic data understanding rather than complexity heuristics. (b) Domain Sensitivity: The superiority of verbal reports remains consistent across domains. (c) Scaling Laws: Accuracy decouples from pure parameter scaling. (d) Inference Dynamics: Active reasoning outperforms direct answering with robust stability across temperatures. (e) Calibration Analysis: Self-reported confidence correlates with accuracy. (f) Complexity Discrimination: Accuracy scales with the complexity gap.

In this section, we deconstruct the mechanisms of the “Implicit World Model” through four pivotal research questions to answer: why can reasoning substitute for execution, and to what extent?

While our representational analysis utilizes the full dataset, subsequent analysis (RQ2–RQ3) employs a focused subset capped at 15 solutions per task (2,292 pairs). For ranking evaluations, we sample 105 instances per task to align with the pairwise baseline complexity (C(15,2)C(15,2)).

5.1 RQ1: The Cognitive Mechanism of Data Representation

Section titled “5.1 RQ1: The Cognitive Mechanism of Data Representation”

To distinguish genuine causal reasoning from syntactic memorization, we conducted a systematic study on input modalities (Figure 3(a)). We instantiated four progressively enriched levels: Code Only (task description + code), Raw Data (appending initial samples), Numerical Stats (execution logs from data analysis scripts), and Verbal Report (full semantic analysis), alongside a Context Mismatch control (pairing code with irrelevant context).

Finding 1: Predictive Success Stems from Semantic Data Understanding, Not Simple Complexity Heuristics.

Section titled “Finding 1: Predictive Success Stems from Semantic Data Understanding, Not Simple Complexity Heuristics.”

Our results refute a potential concern that LLMs merely rely on a complexity heuristic. Figure 3(a) demonstrates a clear performance progression from the Heuristic Baseline (50.8%) and Code Only (56.7%) to Numerical Stats (59.0%), peaking with Verbal Reports (61.3%). The insignificant gain of the Context Mismatch (56.8%) over Code Only confirms that predictive success hinges on strict Semantic Alignment. The superiority of verbal narratives over raw statistics reveals that models operate primarily as rhetorical reasoners, triggering an inference jump that is consistent across domains (Figure 3(b)).

5.2 RQ2: Capabilities, Boundaries, and Algorithmic Bias

Section titled “5.2 RQ2: Capabilities, Boundaries, and Algorithmic Bias”

In this section, we analyze the necessity of reasoning, domain sensitivity, generalization to ranking, and the reliability of its confidence.

Finding 2: Reasoning Unlocks Capabilities, Yet Distinct Cognitive Boundaries Persist Across Domains.

Section titled “Finding 2: Reasoning Unlocks Capabilities, Yet Distinct Cognitive Boundaries Persist Across Domains.”

Figure 3(d) identifies reasoning as the primary engine, with the Thinking Mode (CoT) DeepSeek-AI (2025a); OpenAI (2024) (61.3%61.3\%) outperforming Direct Answering (55.9%55.9\%). This performance remains robust across temperatures (T∈[0,1.5]T\in[0,1.5]) and trajectory variance (see Appendix C.2), implying an invariant logical core that relies on genuine reasoning rather than exploiting easy artifacts from the same agent run. However, this capability is constrained by the problem landscape; Table 2 reveals sharp performance stratifications across the Task-Solution matrix. On the Task Dimension, models demonstrate a preference for NLP (66.9%66.9\%) and Easy (63.9%63.9\%) paradigms. Simultaneously, analysis on the Solution Dimension reveals a comparison preference for Traditional ML within the Algo Era (64.5%64.5\%), a “Complexity Tax” (59.6%59.6\% on complex code), and a Granularity bottleneck, where the model is more effective at distinguishing broad Cross-Algo contrasts (comparing solutions with different algorithms, 62.8%62.8\%). Thus, while reasoning is indispensable, it faces limits when navigating intricate code logic or subtle intra class nuances.

Extending the scope to global Listwise Ranking further magnifies this limitation, as Table 3 reveals a scalability defect where Accuracy@1 drops from the pairwise baseline (61.3%→31.1%61.3\%\to 31.1\%) while Spearman Correlation hovers at a notably low level (ρ≈0.23\rho\approx 0.23), indicating that the model lacks global discrimination capability, failing to sustain consistency beyond binary interactions.

Finding 3: The “Implicit World Model” Leverages Causal Reasoning Beyond Complexity Heuristics and Exhibits Robust Confidence Calibration.

Section titled “Finding 3: The “Implicit World Model” Leverages Causal Reasoning Beyond Complexity Heuristics and Exhibits Robust Confidence Calibration.”

Tracing the Complexity Gap in Figure 3(f) shows accuracy scales with distinction; crucially, the model’s superiority over heuristics in low-gap scenarios proves it detects valid semantic signals rather than simple metrics. Furthermore, Figure 3(e) demonstrates Calibration, where confidence correlates strictly with accuracy. This reliability underpins the Section 6 gating mechanism, ensuring agents act with certainty.

SizeCorr.Accuracy@kk (%)
(NN)Spr. ρ\rhokk=1kk=2kk=3kk=4
20.24_±0.010.24\_{\pm 0.01}61.3_±0.661.3\_{\pm 0.6}–––
30.22_±0.000.22\_{\pm 0.00}43.4_±0.443.4\_{\pm 0.4}25.5_±0.425.5\_{\pm 0.4}––
40.25_±0.000.25\_{\pm 0.00}35.0_±1.035.0\_{\pm 1.0}16.4_±0.716.4\_{\pm 0.7}10.2_±0.210.2\_{\pm 0.2}–
50.22_±0.000.22\_{\pm 0.00}31.1_±0.931.1\_{\pm 0.9}11.2_±0.311.2\_{\pm 0.3}4.9_±0.14.9\_{\pm 0.1}3.0_±0.23.0\_{\pm 0.2}

Table 3: Ranking Performance. Listwise ranking metrics across varying list sizes NN. Spr.: Spearman Correlation (ρ\rho). A@kk: Accuracy of the top-kk ranking positions (%). “–” denotes undefined metrics where k≥Nk\geq N.

5.3 RQ3: Scaling Laws of Data-centric Solution Preference

Section titled “5.3 RQ3: Scaling Laws of Data-centric Solution Preference”

We evaluate the Qwen series across a spectrum from 4B to 1T to determine if predictive capability acts as an emergent scaling property. Figure 3(c) details performance on five distinct checkpoints: 4B (Qwen3-4B-Instruct-2507), 30B (Qwen3-Coder-30B-a3b-Instruct), 235B (Qwen3-235B-a22b-Instruct-2507), 480B (Qwen3-Coder-480B-a35b-Instruct), and 1T (Qwen-Max).

Finding 4: Predictive Accuracy Violates Standard Parameter Scaling Laws.

Section titled “Finding 4: Predictive Accuracy Violates Standard Parameter Scaling Laws.”

Contrary to standard Parameter Scaling Laws, our results (Figure 3(c)) reveal a rapid saturation phenomenon. Within the Qwen series, performance sees diminishing returns after the initial 30B threshold, creating a statistical plateau that persists even at the 1T scale. This trajectory implies a distinct “capacity ceiling,” suggesting that raw parameter scaling alone is insufficient for further gains in the Data-centric Solution Preference task. In contrast, the distinct superiority of DeepSeek-V3.2 (61.3%61.3\%) and GPT-5.1 (58.8%58.8\%) demonstrates that predictive power drives less from raw scale than from reasoning-centric architectural paradigms, implying that future gains will rely on specialized inference incentives rather than simple parameter expansion.

5.4 RQ4: Comparison with Human Judgment and Validation-Test Gap

Section titled “5.4 RQ4: Comparison with Human Judgment and Validation-Test Gap”

To validate the model’s reasoning depth, we conducted a qualitative analysis on the Google Quest Challenge from main experiment, which is a multi-label subjective question-answering task.

Finding 5: The Model Outperforms Human Intuition by Rejecting Complexity Bias.

Section titled “Finding 5: The Model Outperforms Human Intuition by Rejecting Complexity Bias.”

In the case study of Figure 10, the model surpassed human judgment by correctly prioritizing a simple LightGBM, whereas humans succumbed to the “bigger is better” bias by favoring a complex Deep Neural Network. It successfully detects small-sample overfitting risks that humans missed, proving that data-grounded reasoning can effectively override superficial human biases.

We further examine the reliability of execution-based validation metrics (M_valM\_{val}), derived from internal data splits, as proxies for test performance (M_testM\_{test}). As shown in Table 4, relying solely on M_valM\_{val} yields an accuracy of only 72.2%. This ceiling reveals a substantial Validation-Test Gap stemming from distributional shifts and validation overfitting. Crucially, implicit reasoning partially mitigates this gap, offering a semantic safeguard that balances efficiency against the risk of metric-driven overfitting.

Signal SourceCostAcc. (%)
Random Guess-50.0
Exec. (M_valM\_{val})∼\simHours72.2
LLM∼\simSeconds61.5

Table 4: Validation-Test Gap. Local metrics (M_valM\_{val}) are noisy proxies for test performance (M_testM\_{test}), achieving only 72.2% accuracy due to distribution shifts.

Building on the predictive capabilities of the World Model, we propose ForeAgent, a hybrid autonomous ML agent designed to decouple hypothesis exploration from physical execution.

We aim to break the Execution Bottleneck in Section 2.2, compressing hours of physical execution into seconds of logical inference, and the Validation-Test Gap identified in Section 5.4. Thus, we propose ForeAgent, which utilizes the “Implicit World Model” as a filter to prune the search space before execution for acceleration.

We adopt AIDE Jiang et al. (2025) as our backbone, building directly upon the tree-search architecture described in Section 2.1.

We propose ForeAgent, which re-engineers the Improvement stage into a conservative Predict-then-Verify loop (Figure 2(e)) to bridge the Implementation Gap Zhu et al. (2025a). The workflow proceeds through three key phases: (1) High-Volume Generation, where m=10m=10 candidates are proposed in parallel to expand search width without execution costs; (2) Confidence-Gated Pairwise Selection, which utilizes a confidence gate (c=0.7c=0.7) to ensure high-certainty selection; and (3) Verification Execution, where the Top-kk (k=1k=1) candidate is physically verified to anchor the solution trajectory in execution feedback (see ablation study in Appendix C.6).

Figure 4: Agent Performance Analysis. (a) Task-wise Beat Ratio: ForeAgent achieves an average +6% improvement over the A

Figure 4: Agent Performance Analysis. (a) Task-wise Beat Ratio: ForeAgent achieves an average +6% improvement over the AIDE baseline. (b) Temporal Efficiency: The agent converges to peak performance using only 1/6 of the execution time, achieving an average 6 × 6\times speedup. (c) Search Breadth: By offloading evaluation to the “Implicit World Model”, ForeAgent explores 3.2 × 3.2\times more nodes on average compared to the baseline, significantly expanding the search space within the same time budget.

Task NameDomainStatus
Stanford Covid VaccineBiologySeen
Ventilator PressurePhysicsSeen
Statoil IcebergGeoscienceSeen
Aerial Cactus Ident.*EcologyUnseen
Histo. Cancer Detect.*MedicineUnseen

Table 5: Agent Evaluation Benchmark. The selection covers diverse AI4Science domains to test the World Model’s capability to generalize from seen tasks to unseen scientific problems.

We evaluate ForeAgent on 5 AI4Science tasks from MLE-bench (Table 5), including two “Unseen” tasks. We benchmark against AIDE under a 12-hour limit; both use DeepSeek-V3.2 for coding, while Implicit World Modeling employs DeepSeek-V3.2-Thinking.

To ensure reliability, we conduct three independent runs for each task and report the average Beat Ratio Ou et al. (2025). This metric quantifies the percentage of human leaderboard contestants outperformed by the agent, representing expert-level competitiveness.

By substituting costly execution with rapid inference, ForeAgent achieves an average 6×\bm{6\times} speedup (Figure 4(b)), enabling it to explore 3.2×\bm{3.2\times} more nodes within just 1/6 of the time budget (Figure 4(c)). This expanded search capability directly translates into performance, driving a +6%\bm{+6\%} improvement in Beat Ratio (Figure 4(a)) and demonstrating robust generalization on unseen tasks. Furthermore, the World Model acts as a semantic safeguard during intermediate development, significantly boosting the Test Improve Rate by 23% (see Appendix C.5). Although we currently focus on inference, this paradigm naturally extends to training contexts like Reward Model, a promising direction we reserve for future work.

LLM agents are extensively deployed in ML for tasks ranging from pipeline automation Jiang et al. (2025); Qiao et al. (2025); Gu et al. (2024b) to competitive problem-solving Luo et al. (2025); Ou et al. (2025); Chan et al. (2025); Liu et al. (2025b). However, the computational cost of their generation-execution loops Yao et al. (2023) remains a bottleneck. To mitigate this, recent works utilize internal priors to prune redundant steps Kulibaba et al. (2025); Trirat et al. (2025), transitioning from brute-force search to reasoned planning.

Adapting World Models Ding et al. (2025); Li et al. (2025e) to code, recent research predicts execution outcomes to bypass physical runs Hora (2024); team et al. (2025); Li et al. (2025c). While prior works focus on logic consistency in reasoning benchmarks Wei et al. (2025a); Gu et al. (2024a); Jain et al. (2024), our approach integrates this predictive capability with Data-Centric Solution Preference Shen et al. (2024); Just et al. (2024). By anchoring evaluations in explicit dataset rationales rather than heuristics, we ensure reliability in stochastic data domains. Extended discussion in Appendix A.

This work validates the feasibility of compressing physical execution into logical inference. Our analysis reveals LLMs function as calibrated, reasoning-driven critics via semantic verbalization to strictly gate actions and prune search spaces. By decoupling reasoning from runtime, we provide a robust blueprint for bypassing the execution bottleneck in complex machine learning tasks.

Although our corpus encompasses 18,438 pairs across 26 tasks, the distribution remains inherently skewed. Mainstream paradigms like Classification and Regression dominate the dataset, whereas niche scientific tasks (e.g., Audio Classification, Tabular Grading) are represented by significantly smaller sample sizes. Consequently, while the model demonstrates strong general capabilities, its reliability in extremely low-resource or highly specialized scientific domains may vary, and the current evaluation may not fully reflect the challenges of these long-tail scenarios. Furthermore, the Verified Data Report currently relies on metadata for unstructured domains like CV and NLP, leaving the integration of multimodal data analysis agents for deeper semantic profiling to future work.

To validate the model’s utility, we prioritized stability, instantiating ForeAgent with a conservative Predict-then-Verify loop. This design alternates strictly between singular prediction and execution, barely scratching the surface of potential inference-time strategies. Specifically, we have not exhaustively explored advanced architectural variants or hyperparameter configurations within this paradigm, implying that the current implementation has not yet been pushed to its optimal limit. Therefore, the reported performance likely represents a lower bound of the framework’s capability. Beyond this specific instantiation, we identify the framework’s broader potential as a scalable Reward Model. By providing dense, execution-free feedback, it paves the way for accelerating Reinforcement Learning rollouts and serves as a plug-and-play optimization module adaptable to diverse agent frameworks.

  • •

    Appendix A: Extended Related Work

  • •

    Appendix B: Corpus Details

    • –

      B.1 Task Metadata and Scale

    • –

      B.2 Algorithm and Architecture Distribution

    • –

      B.3 Agent Evaluation Benchmark

    • –

      B.4 Trajectory Sampling and Intermediate States

  • •

    Appendix C: Detailed Experiment Result

    • –

      C.1 Fine-grained Performance on Prediction Corpus

    • –

      C.2 Analysis of Pair Source and Trajectory Variance

    • –

      C.3 Detailed Performance Metrics of ForeAgent on AI4Science Benchmarks

    • –

      C.4 Search Efficiency Analysis of ForeAgent

    • –

      C.5 Decision Fidelity and Reliability in Local Iterations

    • –

      C.6 Ablation Study on Top kk Selection

    • –

      C.7 Licensing and Artifact Usage

    • –

      C.8 Computational Infrastructure and Budget

    • –

      C.9 Software Dependencies and Metric Implementation

  • •

    Appendix D: Detailed Qualitative Analysis

    • –

      D.1 Case I: Overcoming Complexity Bias

    • –

      D.2 Case II: Domain Fit over Architectural Sophistication

    • –

      D.3 Case III: Sample of the Verbal Data Report

    • –

      D.4 Case IV: Sample of the Task Instruction (II)

  • •

    Appendix E: Prompt Templates

This section expands upon the brief literature review in Section 7, providing a detailed taxonomy of LLM-based autonomous agents and the theoretical underpinnings of world models in the code domain.

LLMs with strong reasoning capabilities Qiao et al. (2023) are increasingly serving as core controllers for autonomous agents in scientific discovery Gu et al. (2024b); Chen et al. (2025c), extending to specialized machine research domains Toledo et al. (2025); Zhang et al. (2025d). Beyond the digital realm, agents are transforming laboratory research Liu et al. (2025a); Li et al. (2025d); Huang et al. (2025); Schmidgall et al. (2025) and complex data analytics Sun et al. (2025b); Zhang et al. (2025c). Prominent systems now autonomously propose hypotheses Chai et al. (2025); Yu et al. (2025b); Team et al. (2025); Novikov et al. (2025) and conduct closed-loop experiments Gottweis et al. (2025); Lange et al. (2025); Yuan et al. (2025); Yu et al. (2025a); Zhang et al. (2024a), highlighting the trend of “AI Scientists” operating in open-ended exploration loops.

Narrowing down to the machine learning domain, the ecosystem is highly diversified. One stream of research focuses on managing the end-to-end workflow, ranging from autonomous frameworks Nam et al. (2025); Yang et al. (2025); Qiao et al. (2025); Zexi et al. (2025) to engineering pipelines Fang et al. (2025); Chi et al. (2024); Zeng et al. (2025). Another stream, driven by benchmarks like MLE-bench Chan et al. (2025); Huang et al. (2024) and broader evaluation suites Zhang et al. (2025e); Jing et al. (2024); Zhang et al. (2024c); Nathani et al. (2025), focuses on competitive problem-solving through knowledge-guided reasoning Luo et al. (2025); Ou et al. (2025) and evolutionary optimization Du et al. (2025); Guo et al. (2024); Li et al. (2025a); Liu et al. (2025b).

Additionally, general-purpose platforms and optimization frameworks offer the foundational tooling and multi-agent architectures required for scalable research Wang et al. (2025b); Jiang et al. (2025); Hong et al. (2024); Qiang et al. (2025); Wang et al. (2025a). However, to mitigate the significant computational overhead of the generation-execution-feedback loop inherent in these systems, recent approaches explore utilizing internal priors to estimate feasibility and prune redundant steps, thereby accelerating optimization Kulibaba et al. (2025); Trirat et al. (2025); Zhang et al. (2024b); Astorga et al. (2025).

As introduced in Section 2.1, we take two representative agent frameworks that operate under the Generate-Execute-Feedback paradigm as examples. Here we provide their detailed mechanisms:

  • •

    AIDE: AIDE (Jiang et al., 2025) is an LLM-based agent that frames machine learning engineering as a code optimization problem. It structures the trial-and-error process as a tree search in the solution space, reusing and refining promising code candidates. This method effectively trades computational resources for enhanced performance. Specifically, AIDE first generates initial code C_0C\_{0} based on instruction II. The code is executed by training on dataset DD to obtain results. Subsequently, AIDE iteratively derives new code C_1,C_2,…,C_tC\_{1},C\_{2},\dots,C\_{t} based on the feedback.

  • •

    AutoMind: Building upon the AIDE framework, AutoMind (Ou et al., 2025) further integrates a curated expert knowledge base and a self-adaptive coding strategy. While retaining the tree search structure, it grounds the agent in domain expertise and dynamically tailors code generation to task complexity. This approach aims to reduce invalid attempts by improving the quality of the initial draft and subsequent refinements.

World Models and Execution-Free Evaluation

Section titled “World Models and Execution-Free Evaluation”

The concept of World Models originates from model-based reinforcement learning, where agents learn to simulate the environment’s transition dynamics to plan actions without expensive trial-and-error Ding et al. (2025); Hafner et al. (2024); Feng et al. (2025); Wong et al. (2023); Li et al. (2025e). Our work adapts this concept to the code generation domain, addressing the “Execution Bottleneck” inherent in the agentic loops described above.

Recent research enables models to internalize the execution process, predicting test outcomes Hora (2024); team et al. (2025); Wei et al. (2025b) or assessing logic consistency directly Li et al. (2025c); Changshu et al. (2024). This capability is rigorously evaluated on reasoning-centric benchmarks Wei et al. (2025a); Gu et al. (2024a); Jain et al. (2024). Unlike traditional benchmarks that may allow for rote memorization, these tasks require models to transcend statistical pattern matching and develop a deep semantic understanding of algorithmic states and control flows Chen et al. (2025d); Sun et al. (2025a); Akhauri et al. (2025); Chen et al. (2025a), serving as the foundational capability for our proposed framework. Aligning with OpenAI’s Level 4 “Innovators” Metz (2024); Zhang et al. (2025b), this empowers agents to drive innovation by leveraging internal world models to proactively prune vast hypothesis spaces, shifting the paradigm from ensuring syntactic correctness to optimizing for semantic success. This transition resonates with the broader Data-Centric AI movement Zha et al. (2023); Cabrera et al. (2025), moving beyond model architecture to focus on the quality of evaluative signals. Specifically, our framework incorporates rationale-based preference optimization Just et al. (2024) and rigorous dataset construction criteria Shen et al. (2024) to ensure that the “implicit world model” is grounded in data-specific realities rather than abstract heuristics Tschalzev et al. (2024).

To support the reproducibility of our analysis and provide a comprehensive view of the solution space, we provide detailed metadata for the corpus.

Table 6 outlines the specific characteristics of each of the 26 tasks, including the domain, machine learning paradigm, data size, and the scale of the constructed evaluation set.

B.2 Algorithm and Architecture Distribution

Section titled “B.2 Algorithm and Architecture Distribution”

As shown in Figure 5 and Table 7, the solutions range from traditional statistical methods to advanced deep learning architectures, ensuring that our analysis is evaluated against a heterogeneous solution manifold.

Task NameTask DescriptionML ParadigmSizeSolPair
Computer Vision Domain
APTOS 2019 BlindnessDetect diabetic retinopathy severity from retinal fundus images.Img Class. (Multi-class)8.1G501,225
Dog Breed IdentificationIdentify dog breed from photos (120 categories).Img Class. (Multi-class)369M33
Leaf ClassificationClassify 99 plant species based on leaf shape features.Img Class. (Multi-class)30M17136
MLSP 2013 BirdsIdentify bird species from audio spectrograms.Img Class. (Multi-label)634M501,221
Plant Pathology 2020Distinguish healthy vs. diseased apple leaves.Img Class. (Multi-class)387M615
Statoil Iceberg ClassifierDistinguish icebergs from ships in radar imagery.Img Class. (Binary)205M501,223
ICML 2013 WhaleIdentify individual Right Whales by callosity patterns.Img Class. (Multi-class)377M24275
TGS Salt IdentificationSegment salt deposits from seismic images.Segmentation (Pixel-level)59M44880
Natural Language Processing Domain
Detecting InsultsDetect insulting language in social commentary.Text Class. (Binary)2M27350
Jigsaw Toxic CommentClassify comments into 6 toxicity types (toxic, severe, etc.).Text Class. (Multi-label)129M510
Spooky Author IDIdentify author (Poe, Shelley, Lovecraft) of excerpts.Text Class. (Multi-class)3.2M501,220
Random Acts of PizzaPredict success of free pizza requests on Reddit.Text Class. (Binary)21M501,225
US Patent MatchingDetermine semantic similarity between patent phrases.Matching (Class.)316M501,223
Denoising Dirty DocsRestore clean text from noisy scanned documents.Img Restoration (Reg.)97M45974
Google QUESTPredict 30 subjective attributes (e.g., helpfulness) for Q&A.Multi-output (Reg.)14M501,224
Tweet Sentiment ExtractExtract substring supporting the sentiment label.Seq. Labeling (Extract)3.3M21210
LMSYS Chatbot ArenaPredict human preference between two LLM responses.Ranking (Preference)176M501,220
Automated Essay ScoringAutomatically grade student essays on a numeric scale.Regression (Ordinal)35M20190
Continued on next page

Table 6: Detailed metadata for all 26 tasks in the Prediction Corpus (Part 1 of 2). The table details the problem definition, ML paradigm, data size, and evaluation scale.

Table 6 – continued from previous page
Task NameTask DescriptionML ParadigmSizeSolPair
Data Science Domain
NYC Taxi FarePredict taxi fare from coordinates and time.Tabular (Regression)5.3G30429
PetFinder PawpularityPredict popularity score of pet profile photos.Regression (Hybrid)1.0G30239
NOMAD ConductorsPredict formation energy of aluminum-gallium oxides.Regression (Scientific)25M33
Stanford COVID VaccinePredict degradation rates of mRNA vaccine sequences.Regression (Bio)14M501,222
Tabular PlaygroundPredict forest cover type from cartographic variables.Tabular (Multi-class)526M24275
Volcanic EruptionsPredict time to next eruption from seismic sensors.Time-Series (Reg.)15G501,213
Ventilator PressurePredict airway pressure from control inputs.Time-Series (Reg.)291M501,222
TF Speech RecognitionIdentify spoken commands from audio clips.Audio (Multi-class)2G461,011

Table 6: Detailed metadata for all 26 tasks (Part 2 of 2). Continued from previous page.

We curated a specialized benchmark to test the World Model’s capability to generalize from seen tasks to unseen scientific problems. As detailed in Table 8, this selection covers diverse AI4Science domains including Biology, Physics, Geoscience, Ecology, and Medicine. Note that tasks marked with “*” (Aerial Cactus and Histo. Cancer Detect) are unseen tasks, meaning they were not used in the main experiments and serve as out-of-distribution evaluations.

Task NameAlgorithm Composition (Count)
Computer Vision Domain
APTOS 2019 BlindnessEfficientNet (10), ResNet (10), Swin Transformer (9), ConvNeXt (9), Vision Transformer (8), DeiT (3), CNN-LSTM (1)
Dog Breed IDConvNeXt-Large (2), ResNet18 (1)
Leaf ClassificationLightGBM (13), Feedforward NN (2), HybridLeafClassifier (1), XGBoost (1)
MLSP 2013 BirdsEnsemble (12), Dual-Stream Arch (5), Feedforward NN (5), Multi-Modal NN (5), Transformer Enc (5), CNN (5), Random Forest (4), XGBoost (4), Logistic Reg (4), LightGBM (1)
Plant PathologyEfficientNet (2), Swin Transformer (2), ResNet (1), Vision Transformer (1)
Statoil IcebergInverted Bottleneck (5), Vision Trans. (5), ResNet (5), Feedforward NN (5), XGBoost (5), CNN (5), Hybrid CNN-ViT (4), Swin Trans. (4), ConvNeXt (4), Random Forest (3), LightGBM (3), EfficientNet (1), SVM (1)
ICML Whale ChallengeWav2Vec2 Feature Extractor (10), CNN (6), XGBoost (4), Gradient Boosting (2), LightGBM (1), Mel Spectrogram (1)
TGS Salt IDEnsemble Segmentation (12), EfficientNet (10), U-Net (10), DeepLabV3Plus (4), Vision Transformer (4), Single Seg. Model (2), Swin Trans. (1), ConvNeXt (1)
Denoising Dirty DocsResidual Dense Network (10), U-Net (10), Conv Autoencoder (10), Restormer (8), Hybrid CNN-Transformer (6), Simple CNN (1)
Continued on next page

Table 7: Distribution of algorithms and architectures across the corpus (Part 1 of 2). The table details the algorithm composition for Computer Vision tasks.

Table 7 – continued from previous page
Task NameAlgorithm Composition (Count)
Natural Language Processing Domain
Detecting InsultsDeBERTa (9), Multi-Task DeBERTa-V3 (6), RoBERTa (4), DistilBERT (3), BERT (3), Logistic Regression (2)
Jigsaw Toxic CommentRoBERTa (3), DistilBERT (1), DeBERTa (1)
Spooky Author IDKnowledge Distillation (4), DeBERTa (4), ELECTRA (4), BERT (4), LSTM (4), XGBoost (4), Ensemble (4), SVM (4), Logistic Reg (4), Random Forest (3), LightGBM (3), Naive Bayes (3), MLP (2), Transformer (2), Hierarchical Trans. (1)
Random Acts of PizzaNeural Network (6), SentenceTransformer (4), RoBERTa (4), Knowledge Distillation (4), Multimodal NN (4), BERT (4), DistilBERT (4), Random Forest (4), XGBoost (4), Logistic Reg (4), LightGBM (4), LMs Text Embeddings (4)
US Patent MatchingCustom NN (5), RoBERTa (5), DeBERTa (5), XGBoost (5), BERT (5), Sentence Trans. (5), Similarity Model (5), Linear Reg (5), LightGBM (5), Stacking Ensemble (2), RandomForest (2), Cross-Attn Hybrid (1)
Google QUESTBERT (5), Multi-Task NN (5), MultiModal Trans. (5), Graph Attention (3), Hierarchical Attn (3), MLP (3), Cross-Attn (3), Sentence Trans. (3), DeBERTa (3), RoBERTa (3), XGBoost (3), LightGBM (3), Ridge Reg. (3), ELECTRA (2), Random Forest (2), LSTM (1)
Tweet SentimentRoBERTa-BiLSTM (10), RoBERTa (10), Model Ensemble (1)
LMSYS Chatbot ArenaRoBERTa (11), XGBoost (8), Logistic Reg. (8), LightGBM (8), MLP Classifier (7), DeBERTa (4), Dual Encoder NN (4)
Automated Essay ScoreHybrid NN (9), MetaModel NN (5), Stacking Ensemble (3), LightGBM (3)
Data Science Domain
NYC Taxi FareLightGBM (10), XGBoost (10), Feedforward NN (7), CatBoost (1), Dual-Branch NN (1), Residual NN (1)
PetFinder PawpularityLightGBM (27), Vision Transformer (2), XGBoost (1)
NOMAD ConductorsXGBoost (2), Random Forest (1)
Stanford COVID Vac.Hybrid Architectures (14), Model Ensemble (9), Transformer/GNN (6), Specialized RNA Models (6), Tree Boosters (6), General Baselines (7), LSTM (2)
Tabular PlaygroundMulti-Branch NN (11), LightGBM (7), Custom NN (3), TabTransformer (2), Feedforward NN (1)
Volcanic EruptionsTree Boosters (19), MLP/Dense Networks (16), Transformer Variants (6), CNN/Hybrid Architectures (6), Model Ensemble (2), TCN (1)
Ventilator PressureRNNs (LSTM/GRU) (17), Hybrid Deep Learning (CNN/TCN/Attn) (13), Tree Boosters (10), Transformers (9), Statistical Baseline (1)
TF Speech RecognitionStatistical ML (RF/SVM/LR) (21), CNN Architectures (13), Pre-trained Audio Models (Wav2Vec2/WavLM) (8), Transformer (2), MLP (1), Knowledge Distillation (1)

Table 7: Distribution of algorithms and architectures across the corpus (Part 2 of 2). Continued from previous page (NLP and Data Science domains).

Task NameTask DescriptionML ParadigmSizeStatus
Seen Tasks (In-Distribution)
Stanford COVID Vaccine(Biology) Predict RNA degradation rates at various locations along RNA sequences to assist in mRNA vaccine stability research.Regression (Seq)14MSeen
Ventilator Pressure(Physics) Simulate the pressure of a mechanical ventilator connected to a sedated patient’s lung to optimize breathing assistance.Regression (Time-Series)291MSeen
Statoil Iceberg(Geoscience) Distinguish between icebergs and ships in satellite radar imagery (SAR) to improve navigation safety.Classification (Image)205MSeen
Unseen Tasks (Out-of-Distribution)
Aerial Cactus Identification*(Ecology) Determine the presence of columnar cacti in high-resolution aerial imagery to track protected species in the desert.Classification (Image)25.4MUnseen
Histopathologic Cancer Detection.*(Medicine) Identify metastatic cancer tissue in small image patches taken from larger digital pathology scans.Classification (Image)7.7GUnseen

Table 8: Agent Evaluation Benchmark. The table details the specific tasks used to evaluate the agent, categorized by their domain and their visibility status (Seen vs. Unseen).

Figure 5: Hierarchical distribution of the unique solution architectures in our Prediction Corpus. The chart illustrates the balance achieved across major machine learning paradigms: Gradient Boosting&Trees, General/Sequential NNs, CNNs, and Transformers. The outer ring details specific model instances, demonstrating the high heterogeneity of the solution space.

B.4 Trajectory Sampling and Intermediate States

Section titled “B.4 Trajectory Sampling and Intermediate States”

To clarify the composition of our Preference Corpus, it is important to note that the dataset captures the entire lifecycle of an agent’s exploration. While we filter out syntactically invalid code that crashes, our dataset is rich in logically imperfect intermediate states.

As shown in Figure 6, we generate pairs not just from the final best solution, but across the entire valid search path. This extensively tests the model’s implicit modeling capabilities to distinguish and guide improvements among messy and unfinalized intermediate code states, ensuring the agent moves from working but poor to working and good.

Figure 6: A representative trajectory snippet illustrating our sampling strategy. This extensively tests the model’s implicit modeling capabilities to distinguish and guide improvements among messy and unfinalized intermediate code states, ensuring the agent moves from working but poor to working and good.

In this section, we provide a comprehensive breakdown of the experimental results, supplementing the main paper with granular performance metrics across individual tasks, domains, and agent architectures.

C.1 Fine-grained Performance on Prediction Corpus

Section titled “C.1 Fine-grained Performance on Prediction Corpus”

Table 10 presents the task-level performance comparison between DeepSeek-V3.2 and GPT-5.1 across all 26 tasks in the Prediction Corpus. The results are categorized by task domain (CV, NLP, Data Science) and difficulty level, offering a detailed view of model capabilities. Furthermore, to provide a deeper understanding of the “Others” category mentioned in the main table (Table 2), Table 12 breaks down performance by specific machine learning paradigms. This granular analysis reveals distinct performance characteristics in Ranking, Matching, Segmentation, and Extraction tasks, highlighting significant gaps in Matching and Ranking capabilities between the models. Finally, we investigate the impact of data context in Figure 9, which presents the data representation sensitivity analysis. The stacked bar chart reveals the incremental impact of adding Raw Data, Numerical Statistics, and Verbal Reports. While code-only context serves as a strong baseline, enriching the context with multimodal data yields consistently superior performance, with the magnitude of improvement exhibiting distinct domain-specific patterns.

C.2 Analysis of Pair Source and Trajectory Variance

Section titled “C.2 Analysis of Pair Source and Trajectory Variance”

To rigorously test whether random sampling introduces easy pairs by comparing an initial half baked script versus a refined solution from the same trajectory, we performed a stratified analysis. We split our test set into two subsets: Within Trajectory Pairs (both solutions come from the same agent run session) and Cross Trajectory Pairs (solutions come from different agent run sessions or different tasks).

As shown in table 11, our experimental results indicate that performance inflation is not observed between two subsets. For DeepSeek V3.2, accuracy on Within Trajectory pairs (60.4%) is slightly lower than on Cross Trajectory pairs (61.7%). For GPT 5.1, the performance is statistically identical across both subsets.

A qualitative inspection of the trajectories reveals why the assumption of early half baked code does not hold for our specific agents (AIDE and AutoMind). Unlike human developers who may write broken snippets in early stages, these autonomous agents are prompted to generate fully executable end to end scripts at every step of the iteration. Even the first generated solution is typically a complete runnable pipeline. Later steps represent methodological refinements, such as switching algorithms or adding feature engineering, rather than fixing broken code.

Therefore, distinguishing between an early complete script and a late complete script relies on subtle algorithmic reasoning, not on detecting obvious syntax errors or incompleteness. The model’s predictive capability is robust and reflects genuine reasoning about solution quality rather than the exploitation of trajectory artifacts.

C.3 Detailed Performance Metrics of ForeAgent on AI4Science Benchmarks

Section titled “C.3 Detailed Performance Metrics of ForeAgent on AI4Science Benchmarks”

We evaluate the generalization capability of ForeAgent on a subset of 5 challenging AI4Science tasks using the Beat Ratio metric. Table 13 details the specific quantitative results for both the AIDE baseline and ForeAgent. The comparison explicitly distinguishes between tasks seen during the training phase and unseen out-of-distribution tasks. The metrics demonstrate that ForeAgent maintains robust performance on seen tasks while achieving superior generalization on unseen problems, such as Aerial Cactus Identification and Histopathologic Cancer Detection, validating the effectiveness of the World Model in bridging the implementation gap.

C.4 Search Efficiency Analysis of ForeAgent

Section titled “C.4 Search Efficiency Analysis of ForeAgent”

To elucidate the operational efficiency and robustness of ForeAgent, we analyze its training dynamics. First, regarding temporal efficiency, Figure 7 plots the Average Beat Ratio over the 12-hour execution window. The trajectories indicate that ForeAgent converges to optimal solutions significantly faster than the baseline across the majority of tasks. Complementing this, Figure 8 visualizes the search breadth. It shows that by leveraging the World Model for low-cost evaluation, ForeAgent maintains a higher rate of node exploration, effectively covering a broader search space within the same computational budget.

C.5 Decision Fidelity and Reliability in Local Iterations

Section titled “C.5 Decision Fidelity and Reliability in Local Iterations”

To investigate whether the framework maintains predictive reliability on noisy intermediate code and prevents the agent from going deeper into incorrect trajectories, we conducted a granular analysis of the decision making process comparing AIDE (execution only) and ForeAgent across 15 runs. We focused on three key metrics. Test Improve Rate is the probability that a modification intended to improve the code based on Validation feedback actually yields a better score on the hidden Test set. Test Non degrade Rate is the probability that the test score of the new candidate is greater than or equal to its parent, indicating the modification did not harm the performance. Val vs Test Agreement measures how often the Validation signal correctly predicts the Test direction for iterative improvement steps.

As shown in table 14, the results directly address the impact of intermediate noise. The execution only baseline (AIDE) struggles with non finalized code, showing a low success rate of 30.39%. This indicates that in local iterations, validation scores are extremely noisy. Traditional agents frequently go deeper into bad trajectories because they are misled by validation overfitting.

ForeAgent significantly improves the Test Improve Rate to 53.49%. By introducing the World Model as a filter before execution, the framework successfully prunes many candidate nodes that achieve high validation scores but are logically flawed. This proves that the World Model does not regress to the baseline when faced with draft code. Instead, it acts as a robust Semantic Safeguard, effectively filtering through the noise of intermediate development and reducing the risk of following incorrect trajectory paths.

Although the Val vs Test Agreement for local improve pairs shows a slight decrease (75.23%), it remains highly consistent with the global 72% theoretical ceiling discussed in Section 5.4. The higher actual success rate demonstrates that ForeAgent is a more reliable navigator for autonomous research and development than execution only feedback.

We evaluated the parameter kk to balance search breadth and selection stability, comparing our default k=1k=1 with k=2k=2 and AIDE baseline.

Table 15 reveals three findings: (1) Search Space Expansion: Setting k=2k=2 forces the execution of two candidates per iteration, surging the average node count to 157.87. (2) Metric Correlation: ForeAgent (k=1k=1) balances stable Val Test Agreement (75.23%) with a substantially improved Test Improve Rate (53.49%). (3) Performance Degradation: Increasing kk amplifies exposure to noisy validation signals and increases variance, which destabilizes exploration and lowers the overall score.

In conclusion, k=1k=1 provides the optimal balance. We note this preliminary study only isolates kk. Future work will comprehensively explore tuning additional hyperparameter combinations.

We clarify the licensing terms for the key artifacts involved in this study to ensure compliance and reproducibility:

  • •

    Datasets: All problem statements and datasets are sourced from public Kaggle competitions. They are utilized in strict accordance with their respective competition rules and standard Creative Commons licenses (predominantly CC-BY-SA 4.0).

  • •

    Models: The backbone language models employed are open-weights models used under their official Apache 2.0 and MIT licenses.

  • •

    Code and Benchmark: We will release our curated corpus and the accompanying agent framework under the MIT license to facilitate future research.

Our usage of these artifacts aligns with their intended purpose of fostering machine learning research. Furthermore, the derived corpus we will release is strictly intended for non-commercial research evaluation, ensuring compatibility with the original access conditions.

C.8 Computational Infrastructure and Budget

Section titled “C.8 Computational Infrastructure and Budget”

All experiments were conducted on a high-performance local server equipped with an Intel Xeon Gold 6138 CPU (80 logical cores, 2.00GHz) and 6×6\times NVIDIA GeForce RTX 3090 GPUs (24GB VRAM each). To maximize throughput, we orchestrated a parallelized evaluation pipeline with 6 concurrent workers, assigning one dedicated GPU to each task environment. This ensures that physical code executions are isolated and do not suffer from resource contention.

Table 9 summarizes the estimated token usage for the primary data construction and ablation phases. The main benchmark generation (covering 18,438 solution pairs) consumed approximately 78.5 million tokens (Input + Output). We note that the computational cost for agent baselines (e.g., AIDE) is highly stochastic due to their autonomous error-recovery loops, where a single difficult task may trigger exponential branching and token usage compared to our linear inference approach.

Experiment PhaseSample ScaleInput TokensOutput TokensEst. Total
Main BenchmarkMax 50 sols/task≈\approx 60.1M≈\approx 18.4M≈\approx 78.5M
(Full Construction)(18,438 pairs)
Analysis & AblationMax 15 sols/task≈\approx 7.3M≈\approx 2.3M≈\approx 9.6M
(Subset Evaluation)
Agent BaselinesDynamicHigh Variance (Task-Dependent)-
(AIDE / AutoMind)

Table 9: Computational Budget and Token Consumption. Statistics are aggregated across all 26 tasks. The agent baselines exhibit high variance due to their autonomous feedback loops, making precise token estimation non-deterministic.

C.9 Software Dependencies and Metric Implementation

Section titled “C.9 Software Dependencies and Metric Implementation”

To ensure the reproducibility of our evaluation metrics and inference pipelines, we detail the software environment and parameter settings used:

  • •

    Evaluation Metrics: We utilize the standard implementations provided by Scikit-learn for calculating all performance metrics. Unless explicitly stated otherwise, we strictly adhere to the default parameter settings to maintain consistency with standard leaderboards.

  • •

    Data Processing: Data manipulation and feature extraction are performed using NumPy.

  • •

    LLM Inference: We employ the official OpenAI Python Library to conduct inference. This standardizes interactions across different model endpoints. We utilize default sampling parameters to ensure deterministic outputs for the “Predict” phase.

Task NameDomainDiff.TaskPairs (NN)DeepSeek-V3.2GPT-5.1
APTOS 2019 BlindnessCVEasyCLS122551.8_±0.4\bm{51.8}\_{\pm\bm{0.4}}48.2_±1.248.2\_{\pm 1.2}
Denoising Dirty DocsCVEasyREG97476.0_±0.6\bm{76.0}\_{\pm\bm{0.6}}53.8_±1.353.8\_{\pm 1.3}
Insults in Social Comm.NLPEasyCLS35074.0_±0.3\bm{74.0}\_{\pm\bm{0.3}}60.9_±2.060.9\_{\pm 2.0}
Dog Breed IDCVEasyCLS377.8_±19.2\bm{77.8}\_{\pm\bm{19.2}}66.7_±0.066.7\_{\pm 0.0}
Google QUESTNLPMedREG122463.9_±1.163.9\_{\pm 1.1}64.6_±0.9\bm{64.6}\_{\pm\bm{0.9}}
Jigsaw Toxic CommentNLPEasyCLS1023.3_±5.8\bm{23.3}\_{\pm\bm{5.8}}16.7_±5.816.7\_{\pm 5.8}
Leaf ClassificationCVEasyCLS13674.8_±0.4\bm{74.8}\_{\pm\bm{0.4}}72.3_±2.272.3\_{\pm 2.2}
Automated Essay ScoringNLPMedREG19069.1_±3.669.1\_{\pm 3.6}74.5_±1.0\bm{74.5}\_{\pm\bm{1.0}}
LMSYS Chatbot ArenaNLPMedRNK122068.3_±0.4\bm{68.3}\_{\pm\bm{0.4}}55.8_±0.755.8\_{\pm 0.7}
MLSP 2013 BirdsCVEasyCLS122158.1_±1.4\bm{58.1}\_{\pm\bm{1.4}}54.8_±0.554.8\_{\pm 0.5}
NYC Taxi FareDSEasyREG42947.1_±1.547.1\_{\pm 1.5}52.1_±0.7\bm{52.1}\_{\pm\bm{0.7}}
NOMAD2018 ConductorsDSEasyREG3100.0_±0.0\bm{100.0}\_{\pm\bm{0.0}}100.0_±0.0\bm{100.0}\_{\pm\bm{0.0}}
PetFinder PawpularityDSMedREG23943.9_±0.743.9\_{\pm 0.7}46.6_±1.2\bm{46.6}\_{\pm\bm{1.2}}
Plant Pathology 2020CVEasyCLS1560.0_±11.5\bm{60.0}\_{\pm\bm{11.5}}51.1_±3.851.1\_{\pm 3.8}
Volcanic EruptionsDSHardREG121349.2_±1.249.2\_{\pm 1.2}50.5_±0.4\bm{50.5}\_{\pm\bm{0.4}}
Random Acts of PizzaNLPEasyCLS122560.2_±0.9\bm{60.2}\_{\pm\bm{0.9}}52.9_±0.652.9\_{\pm 0.6}
Spooky Author IDNLPEasyCLS122066.0_±1.066.0\_{\pm 1.0}69.2_±1.2\bm{69.2}\_{\pm\bm{1.2}}
Stanford COVID VaccineDSHardREG122264.8_±0.764.8\_{\pm 0.7}68.3_±0.3\bm{68.3}\_{\pm\bm{0.3}}
Statoil IcebergCVMedCLS122359.5_±1.059.5\_{\pm 1.0}62.7_±0.4\bm{62.7}\_{\pm\bm{0.4}}
Tabular Playground (Dec)DSEasyCLS27538.7_±0.438.7\_{\pm 0.4}42.7_±1.3\bm{42.7}\_{\pm\bm{1.3}}
TF Speech RecognitionDSMedCLS101158.3_±0.958.3\_{\pm 0.9}58.4_±0.4\bm{58.4}\_{\pm\bm{0.4}}
TGS Salt IDCVMedSEG88054.3_±0.754.3\_{\pm 0.7}57.9_±0.3\bm{57.9}\_{\pm\bm{0.3}}
ICML 2013 WhaleCVEasyCLS27548.0_±0.4\bm{48.0}\_{\pm\bm{0.4}}47.3_±1.047.3\_{\pm 1.0}
Tweet Sentiment Extr.NLPMedEXT21045.7_±3.8\bm{45.7}\_{\pm\bm{3.8}}44.6_±3.144.6\_{\pm 3.1}
US Patent MatchingNLPMedMAT122376.4_±0.8\bm{76.4}\_{\pm\bm{0.8}}74.5_±0.274.5\_{\pm 0.2}
Ventilator PressureDSMedREG122267.0_±0.4\bm{67.0}\_{\pm\bm{0.4}}59.0_±0.459.0\_{\pm 0.4}
Overall AverageAll 26 Tasks1843861.5_±0.2\bm{61.5}\_{\pm\bm{0.2}}58.8_±0.358.8\_{\pm 0.3}

Table 10: Detailed result of each tasks’ performance in the main experiment. Breakdown of Domain, Difficulty (Diff.), and Task Paradigm. NN represents the number of pairwise comparison samples. DS = Data Science. Values: Mean Accuracy (%) ±\pm Stdev. Bold: Best result.

ModelOriginal (Full Set)Within TrajectoryCross Trajectory
DeepSeek V3.261.5%60.4%61.7%
GPT 5.158.8%58.7%58.9%

Table 11: Performance Breakdown by Pair Source. Accuracy on Within Trajectory pairs is not inflated.

Task ParadigmPairs (NN)DeepSeek-V3.2GPT-5.1
Classification (CLS)15,51658.9_±0.3\bm{58.9}\_{\pm\bm{0.3}}57.2_±0.557.2\_{\pm 0.5}
Regression (REG)12,68562.1_±0.1\bm{62.1}\_{\pm\bm{0.1}}59.2_±0.359.2\_{\pm 0.3}
Matching (MAT)2,35676.6_±0.8\bm{76.6}\_{\pm\bm{0.8}}74.9_±0.374.9\_{\pm 0.3}
Ranking (RNK)2,30268.3_±0.4\bm{68.3}\_{\pm\bm{0.4}}55.0_±0.855.0\_{\pm 0.8}
Segmentation (SEG)1,63954.8_±0.454.8\_{\pm 0.4}58.0_±0.2\bm{58.0}\_{\pm\bm{0.2}}
Extraction (EXT)35146.9_±4.3\bm{46.9}\_{\pm\bm{4.3}}44.1_±3.044.1\_{\pm 3.0}

Table 12: Performance breakdown by specific Task Paradigms. This table expands on the main results by separating the “Others” category into Ranking, Matching, Segmentation, and Extraction. Values: Mean Accuracy (%) ±\pm Stdev.

Task NameDomainStatusAIDE (Baseline)ForeAgent (Ours)
Seen Tasks (In-Distribution)
Stanford COVID VaccineBiologySeen1.000_±0.000\bm{1.000}\_{\pm\bm{0.000}}1.000_±0.000\bm{1.000}\_{\pm\bm{0.000}}
Statoil Iceberg ClassifierGeoscienceSeen0.475_±0.1610.475\_{\pm 0.161}0.531_±0.134\bm{0.531}\_{\pm\bm{0.134}}
Ventilator Pressure PredictionPhysicsSeen0.308_±0.041\bm{0.308}\_{\pm\bm{0.041}}0.295_±0.0560.295\_{\pm 0.056}
Unseen Tasks (Out-of-Distribution)
Aerial Cactus Identification*EcologyUnseen0.698_±0.1570.698\_{\pm 0.157}0.877_±0.000\bm{0.877}\_{\pm\bm{0.000}}
Histopathologic Cancer Detection*MedicineUnseen0.992_±0.0000.992\_{\pm 0.000}0.992_±0.001\bm{0.992}\_{\pm\bm{0.001}}
Average Beat RatioAcross 5 AI4Science Tasks0.695_±0.2980.695\_{\pm 0.298}0.739_±0.295\bm{0.739}\_{\pm\bm{0.295}}

Table 13: Main results on the MLE-bench AI4Science subset. We report the Beat Ratio (percentage of human contestants outperformed) averaged over 3 independent runs. The “*” denotes tasks outside the main evaluation distribution. Bold indicates the best performance.

MetricAIDE (Execution only)ForeAgent (Ours)
Test Improve Rate30.39% ±\pm 11.93%53.49% ±\pm 14.70%
Test Non degrade Rate30.50% ±\pm 11.75%53.97% ±\pm 15.00%
Val vs Test Agreement (Local)78.87% ±\pm 10.19%75.23% ±\pm 13.01%

Table 14: Decision Reliability in Local Iterations. We report the mean and standard deviation across runs.

ModelMean ScoreNode CountVal Test AgreementTest Improve Rate
AIDE (No WM)0.695 ±\pm 0.29844.00 ±\pm 33.9578.87% ±\pm 10.19%30.39% ±\pm 11.93%
ForeAgent (k=1k=1)0.739 ±\pm 0.29599.60 ±\pm 71.4975.23% ±\pm 13.01%53.49% ±\pm 14.70%
ForeAgent (k=2k=2)0.642 ±\pm 0.353157.87 ±\pm 107.1164.15% ±\pm 26.57%35.47% ±\pm 23.00%

Table 15: Ablation Results on Top kk Selection

Figure 7: Temporal Evolution of Performance. The curves display the Average Beat Ratio as a function of Execution Time (

Figure 7: Temporal Evolution of Performance. The curves display the Average Beat Ratio as a function of Execution Time (0–12 hours) for both the AIDE baseline and ForeAgent . The results are broken down by the five individual AI4Science tasks and the overall Micro Average.

Figure 8: Progression of Search Node Exploration. This figure illustrates the cumulative number of nodes explored (Avg.

Figure 8: Progression of Search Node Exploration. This figure illustrates the cumulative number of nodes explored (Avg. Node Num.) over the 12-hour duration. It compares the search trajectories of ForeAgent against AIDE across each specific task and the aggregated Micro Average.

Figure 9: Domain and Task Sensitivity Analysis. The stacked bar chart presents the data representation study for each individual task. It visualizes the incremental performance impact of adding Raw Data, Numerical Statistics, and Verbal Reports to the Code-only baseline. The tasks are grouped by their respective domains (CV, NLP, and Data Science) to highlight domain-specific sensitivity.

Figure 10: Case Study: Human Intuition vs. World Model Inference. This example illustrates a hidden logical conflict where architectural sophistication (favored by humans) clashes with data constraints. By leveraging the generated Data Report , the World Model detects a critical mismatch between the small dataset size ( N ≈ 5.5 ​ k N\approx 5.5k ) and the complex neural network (Solution 0). It correctly prioritizes the robust LightGBM ensemble (Solution 1), demonstrating the ability to weigh Data-Model Fit over pure algorithmic complexity.

Figure 11: Case Study: Domain Fit vs. Architectural Sophistication. This example highlights a “square peg in a round hole” scenario. While human intuition might favor the SOTA Vision Transformer (Solution 0), the World Model detects that forcing small 101 × 101 101\times 101 seismic images into ViT’s required resolution introduces destructive interpolation noise. It rejects the complex model in favor of a U-Net (Solution 1) that preserves native spatial details and avoids relying on missing depth data, demonstrating skepticism towards superficially sophisticated but methodologically flawed approaches.

Figure 12: Case Study: Verbal Data Report ( D r ​ e ​ p D_{rep} ) Sample for “US Patent Matching”. Generated via the Code-Execution-Verbalization protocol, this artifact bridges the gap between raw data statistics and semantic reasoning.

Figure 13: Case Study: Task Instruction ( I I ) for Task “Denoising Dirty Docs”. This example illustrates the raw natural language input I I as defined in Section 2.1 . It outlines the problem context, dataset specifications, and evaluation criteria, serving as the foundational prompt that initiates the agent’s solution generation process.

To validate the model’s reasoning depth and provide transparency into our pipeline, we present four qualitative examples. First, we analyze two reasoning trajectories (Google Quest Challenge and TGS Salt Identification) to illustrate how the model acts as a skeptical critic, prioritizing methodological fit over superficial sophistication and overcoming human bias (Finding 5). Subsequently, we provide visual samples of two critical system artifacts: the Verbal Data Report and the Task Instruction, enabling a concrete inspection of the agent’s input and context.

D.1 Case I: Overcoming Complexity Bias (Reasoning Analysis)

Section titled “D.1 Case I: Overcoming Complexity Bias (Reasoning Analysis)”

To provide a concrete example of Finding 5 (“The World Model Transcends Human Intuition by Prioritizing Data-Grounded Constraints”), we present a detailed analysis in Figure 10. This case illustrates a common pitfall where architectural sophistication clashes with fundamental data constraints.

The agent evaluates two distinct solutions for the Google Quest Q&A task:

  • •

    Solution 0: A complex Deep Neural Network (DNN) with Cross-Attention.

  • •

    Solution 1: A robust LightGBM ensemble.

Intuitively, human evaluators and models relying solely on code complexity heuristics often exhibit a “complexity bias” by favoring the deep learning approach under the assumption that greater architectural depth yields better performance.

However, the World Model leverages the generated Data Analysis Report to detect a critical mismatch. The report highlights that the dataset is relatively small (N≈5.5kN\approx 5.5k samples) with skewed targets. Synthesizing this finding with model design principles, the World Model predicts a high risk of overfitting for the complex DNN. Consequently, it correctly prioritizes the LightGBM ensemble (Solution 1), determining that the gradient boosting approach offers a superior Data-Model Fit for this specific sample size.

D.2 Case II: Domain Fit over Architectural Sophistication

Section titled “D.2 Case II: Domain Fit over Architectural Sophistication”

To further substantiate the model’s robustness against complex-looking but flawed solutions (“Square peg in a round hole”), we present a second trajectory analysis in Figure 11.

The agent evaluates two segmentation solutions for the TGS Salt Identification task:

  • •

    Solution 0: A Vision Transformer (ViT-B/16) pre-trained on ImageNet.

  • •

    Solution 1: A standard U-Net.

Human intuition might favor the ViT due to its top-tier status and global context modeling capabilities.

The World Model recognizes that the task requires pixel-perfect segmentation of small (101×101101\times 101) seismic images. It correctly identifies that forcing inputs into the ViT’s required 224×224224\times 224 resolution introduces interpolation noise and destroys fine-grained salt details. Unswayed by the “SOTA” status, the model rejects the ViT in favor of the standard U-Net, citing the necessity of preserving native spatial resolution and avoiding severe domain mismatch.

D.3 Case III: Sample of the Verbal Data Report

Section titled “D.3 Case III: Sample of the Verbal Data Report”

Figure 12 presents a representative sample of the Verbal Data Report (D_repD\_{rep}) generated for the US Patent Matching task. This artifact visualizes the mechanism described in Section 3.4: transforming raw execution logs (e.g., text length statistics, label skew) into semantic narratives. It serves as the grounding anchor that allows the language model to “read” and internalize dataset properties without direct access to the raw files.

D.4 Case IV: Sample of the Task Instruction (II)

Section titled “D.4 Case IV: Sample of the Task Instruction (III)”

Finally, to visualize the input definition provided in Section 2.1, Figure 13 displays the raw Task Instruction (II) for the task Denoising Dirty Docs. This prompt encapsulates the natural language description, specific dataset paths, and optimization goals, acting as the initial state that triggers the agent’s autonomous loop.

To ensure reproducibility and transparency, we provide the full prompt templates used in our World Model framework. The workflow consists of four key stages:

    Data Analysis Code Generation (Figure 14): The agent is first instructed to generate a robust Python script for profiling the dataset. This step extracts key statistical meta-features without training a model.

    Data Analysis Report Generation (Figure E): Based on the execution logs from the previous step, the agent summarizes the findings into a structured, causal report. This report serves as a critical context for the reasoning engine.

    Result Prediction Query (Figure E): This is the core reasoning prompt where the World Model predicts the relative performance of candidate solutions. It integrates the task description, the generated data analysis report, and the solution code to form a grounded judgment.

    Complexity Scoring (Figure E): An auxiliary prompt used to calculate the complexity heuristic baseline. It evaluates solutions across code engineering, model architecture, and data pipeline dimensions to detect potential bias towards complexity.

The specific prompt templates are illustrated below.

Figure 14: Prompt used to instruct the LLM for generating data analysis code.

Prompt used to instruct the LLM for generating data analysis report from the code execution result.

Prompt used to instruct the LLM for predicting the result of the provided materials.

Prompt used to instruct the auxiliary LLM for scoring the complexity of code solutions across three dimensions. This heuristic is used as a baseline to evaluate whether the World Model blindly favors complex code.