Papers › MLAgentBench: Evaluating Language Agents on Machine Learning Experimentation

MLAgentBench: Evaluating Language Agents on Machine Learning Experimentation

5 Oct 2023arXiv:2310.03302archive 2025-07-28

Qian Huang, Jian Vora, Percy Liang, Jure Leskovec

A central aspect of machine learning research is experimentation, the process of designing and running experiments, analyzing the results, and iterating towards some positive outcome (e.g., improving accuracy). Could agents driven by powerful language models perform machine learning experimentation effectively? To answer this question, we introduce MLAgentBench, a suite of 13 tasks ranging from improving model performance on CIFAR-10 to recent research problems like BabyLM. For each task, an agent can perform actions like reading/writing files, executing code, and inspecting outputs. We then construct an agent that can perform ML experimentation based on ReAct framework. We benchmark agents based on Claude v1.0, Claude v2.1, Claude v3 Opus, GPT-4, GPT-4-turbo, Gemini-Pro, and Mixtral and find that a Claude v3 Opus agent is the best in terms of success rate. It can build compelling ML models over many tasks in MLAgentBench with 37.5% average success rate. Our agents also display highly interpretable plans and actions. However, the success rates vary considerably; they span from 100% on well-established older datasets to as low as 0% on recent Kaggle challenges created potentially after the underlying LM was trained. Finally, we identify several key challenges for LM-based agents such as long-term planning and reducing hallucination. Our code is released at https://github.com/snap-stanford/MLAgentBench.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.03302")

Code

Syntology Ran 5 of 10 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

snap-stanford/mlagentbench officialmentioned in papermentioned on GitHubMIT report
zeroxleo/ml-agent mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 5 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
5unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from snap-stanford/mlagentbench. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

check_file_read_only snap-stanford/mlagentbench/MLAgentBench/low_level_actions.py official repository ran MIT (permissive) · 8fbba13275be664e · report
mkl_error snap-stanford/mlagentbench/MLAgentBench/plot.py official repository ran MIT (permissive) · 53250bc9bc9a4820 · report
oom_error snap-stanford/mlagentbench/MLAgentBench/plot.py official repository ran MIT (permissive) · 357dc7ee438a7576 · report
reflection snap-stanford/mlagentbench/MLAgentBench/high_level_actions.py official repository ran MIT (permissive) · 4f82a282dda31635 · report
understand_file snap-stanford/mlagentbench/MLAgentBench/high_level_actions.py official repository ran MIT (permissive) · e78c16077ff8eccc · report
create_benchmark_folder_name snap-stanford/mlagentbench/MLAgentBench/environment.py official repository unverified MIT (permissive) · 28af11cb458eb742 · report
edit_script snap-stanford/mlagentbench/MLAgentBench/high_level_actions.py official repository unverified MIT (permissive) · a1cb2a52e65ff361 · report
estimate_tokens snap-stanford/mlagentbench/MLAgentBench/plot.py official repository unverified MIT (permissive) · 9c55f0596ab5430b · report
get_task_info snap-stanford/mlagentbench/MLAgentBench/prepare_task.py official repository unverified MIT (permissive) · 2868580e4a832fe7 · report
normalize_args_kwargs snap-stanford/mlagentbench/MLAgentBench/low_level_actions.py official repository unverified MIT (permissive) · d6d0c6d7bde0bdcc · report

Tasks

BenchmarkingDecision MakingHallucination

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFocusGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections