๐ค 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:
- ๐ High-Volume Generation: Proposing solution candidates in parallel to maximize search breadth without immediate execution costs.
- โ๏ธ Confidence-Gated Pairwise Selection: Employing a confidence gate () to filter candidates, ensuring only high-certainty solutions proceed.
- โ Verification Execution: Physically verifying only the top- () 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 ID | Domain | Dataset Size |
|---|---|---|
stanford-covid-vaccine | ๐งฌ Biology | 14MB |
ventilator-pressure-prediction | ๐ญ Physics | 291MB |
statoil-iceberg-classifier-challenge | ๐ Geoscience | 205MB |
aerial-cactus-identification | ๐ฟ Ecology | 25.4MB |
histopathologic-cancer-detection | โ๏ธ Medicine | 7.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) inscripts/run.shto 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