๐Ÿค– ForeAgent (MLE-bench Integration)

February 8, 2026 ยท View on GitHub

FOREAGENT is our autonomous machine learning agent, evolved from AIDE and integrated with MLE-bench for standardized launching and evaluation. It implements a novel Predict-then-Verify loop to drastically reduce execution costs.


๐Ÿง  Design Philosophy

FOREAGENT re-engineers the improvement stage into a Predict-then-Verify loop to bridge the implementation gap. The workflow consists of three distinct phases:

  1. ๐Ÿš€ High-Volume Generation: Proposing m=10m=10 solution candidates in parallel to maximize search breadth without immediate execution costs.
  2. โš–๏ธ Confidence-Gated Pairwise Selection: Employing a confidence gate (c=0.7c=0.7) to filter candidates, ensuring only high-certainty solutions proceed.
  3. โœ… Verification Execution: Physically verifying only the top-kk (k=1k=1) candidate to anchor the trajectory with real execution feedback.

๐Ÿ‘‰ For more theoretical details, please refer to the ForeAgent Detailed Design.


๐Ÿ“Š Experimental Setup & Results

๐Ÿงช Tasks

We evaluate FOREAGENT on five diverse AI4Science tasks from MLE-bench:

Competition IDDomainDataset Size
stanford-covid-vaccine๐Ÿงฌ Biology14MB
ventilator-pressure-prediction๐Ÿ”ญ Physics291MB
statoil-iceberg-classifier-challenge๐ŸŒ Geoscience205MB
aerial-cactus-identification๐ŸŒฟ Ecology25.4MB
histopathologic-cancer-detectionโš•๏ธ Medicine7.7GB

โš™๏ธ Setup

  • Benchmark: MLE-bench (12-hour limit).
  • Baselines: AIDE.
  • Models:
    • Coding: DeepSeek-V3.2.
    • Implicit World Modeling: DeepSeek-V3.2-Thinking.
  • Reliability: 3 independent runs per task; reporting average Beat Ratio.

๐Ÿ“ˆ key Results

By substituting costly execution with rapid inference, FOREAGENT achieves:

  • โšก 6ร— Speedup in average execution time.
  • ๐Ÿ” 3.2ร— More Nodes explored within 1/6th of the time budget.
  • ๐Ÿ† +6% Beat Ratio improvement over baselines.

๐Ÿ’ป Installation & Usage

1. Environment Setup

We run FOREAGENT on top of MLE-bench. Please create a dedicated environment and install the package:

# Create a fresh environment (recommended)
conda create -n mlebench python=3.10
conda activate mlebench

# Install in editable mode
pip install -e .

2. Launching Runs

Use the provided script to build the docker image and launch agent runs. The run_agent.py script accepts the following key arguments:

  • --agent-id: Select the agent image name.
  • --competition-set: Path to a text file containing competition IDs.
  • --data-dir: Path to the prepared Kaggle data directory.
  • --gpu-device: GPU device IDs to use.

Example Command:

# See scripts/run.sh for the complete template
bash scripts/run.sh

โš ๏ธ Note: Please verify and adjust paths (e.g., --data-dir) in scripts/run.sh to match your local environment before running.

3. Evaluation

Submissions must be .csv files following the competition's format.

Batch Grading: Provide a JSONL file where each line contains:

  • competition_id: The competition ID.
  • submission_path: Path to the submission CSV.
mlebench grade --submission-file results.jsonl

Single Sample Grading:

mlebench grade-sample \
    --competition-id stanford-covid-vaccine \
    --submission-file submission.csv