# Oral 31914

- Kind: Oral
- Talk page and recording: https://iclr.cc/virtual/2025/oral/31914

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, everyone. I'm Neil. This is Jun, and we'll be presenting MLE Bench. This work was done by the preparedness team at OpenAI. So LLMs have been improving pretty rapidly on coding capabilities.
On the left, you can see that O3, for example, performs at the 99.8 percentile relative to humans on competitive programming. And on the right, you can see that in the leading software engineering benchmarks we bench verified, in a little over a year, LLMs have improved from about 4% to 65%. And in recent work done by Meter,
The length of tasks that AIs can perform seems to be doubling roughly every seven months. So this leads us to a question of how good are these ML models at actually automating ML engineering? And this is important because if ML models are good at training new models, it could create a positive feedback loop that leads to a rapid increase in AI capabilities.
And we think that the current benchmarks, which are maybe focusing on coding problems or solving pull requests, aren't measuring the real long chrysin tasks that are relevant to automating ML engineering. So to address this, we created MLE Bench, where we evaluate ML models on real-world machine learning tasks. We source these from Kaggle, which is a common platform for machine learning competitions.
And we give agents the exact competitions that humans get and compare them to human performance. So the setup is shown here. An ML agent gets the competition description as well as the data set. And then it must do everything a human must do in order to get a good score on this on the data set. For example, training models, analyzing the data, debugging, testing models and eventually formulating a submission on the test split.
And then this submission is given to an offline grader, which is part of our data set, which can then compute performance and compare this to human scores on the leaderboard. So we went from about 5,000 Kaggle competitions from the meta Kaggle data set to only 75 in our MLE bench. And this required rigorous filtering for both quality and practicality.
For example, we ensure that competitions require capabilities that are relevant to modern-day machine learning, and some practical concerns include making sure that our competitions have permissive licenses such that they can be included in our benchmark. Furthermore, all of our competitions are vetted by at least two OpenAI engineers. The competitions in our final set vary in a lot of different subfields from...
video classification to training LLMs. They also vary a lot in complexity and at the highest end the hardest competitions might involve like might have human state of the arts that don't yet saturate their like the relevant benchmark.
So here's an example of a high complexity competition. It's the Vesuvius Challenge, which involves needing to train a model that can reconstruct text from pictures of burnt scrolls. And this has been kind of popular in many ML circles.
It's difficult to get like a single headline metric given that all of the challenges in MLE bench have come with their own like performance scoring.
depending on the task. So we chose to calibrate model performance with human performance on the Kaggle leaderboard. So Kaggle converts performance scores and thresholds them into three buckets, bronze, silver, gold, and also no metals. And our headline metric is the percent of an agent's attempt that get any metal that is at least bronze.
To make evaluating on MLE bench easier, given that it is quite a resource intensive benchmark, we created MLE bench light, which is just the subset of 22 low complexity competitions. And we hope that this makes it more accessible to academic researchers. One example is that this is easier is that the total size of data sets is about 20 times smaller than the full split.
And now I will hand it to June to explain some of our experiments and results. Thanks, Neil. So a quick background on people, on LLM agents in general. When you want to test a model performing as an LLM agent, you need to provide it with a scaffold, which essentially is the framework that is wrapped around the model that asks it.
Well, it provides it an interface to interact with the environment. So for example the scaffold is responsible for calling the model in a loop, um providing the tools that it has access to and then returning observation from the environment environment back to the model. There are lots of different ways you can implement this. So for our paper we've decided to implement our uh to test three different open source scaffolds. So we didn't build these ourselves. The three scaffolds here
our ML agent benchmark research agent open hands and aid so the first question we ask is like okay how do these different agent scaffolds compare and it turns out that the choice of scaffolds actually makes a pretty big difference purpose -built scaffolds aid in this case
was built specially for Kaggle competitions as like an automated data science agent and what this does is essentially it prompts the model to attempt a solution for the given problem and then iterate on that in kind of like a search manner so it will evaluate the first attempt by the model and then it will
um ask the agent okay please try again and then it will get say like five different attempts from the model and then iteratively pick the best one and then keep refining that. So this is how eight works. The other two agents that we have are much more general agents that just
provide the model with tools and ask it to run in a loop. And it turns out that the aid kind of search method does do by far the best, as you can see here the scores. Um this is eight percent of the seventy five competitions that we have. Um the aid agent gets at least a bronze medal. Now the next question you ask is like okay, so we've picked the best scaffold, how do different models compare?
When we start looking at these different agents, including Lama, Claud 3 .5, GPT-4.0 and O1 preview, you see that O1 preview leads with a large jump in performance and gets 17%.
on our benchmark. And this is to emphasise it's quite a high and very impressive score. Getting a a bronze medal in Kaggle competitions is not an easy feat. Um and in order to score a bronze medal on any competition, it just means that the model has had to beat out something like sixty to ninety percent of the human competitors on the leaderboard. Um and and this varies depending on the s the number of com competitors that were participating in that competition.
And this is defined by Kaggle. So we ran some other experiments as well. Some questions that we asked were, okay, so in our standard setup,
we provide agents with 24 hours to run and attempt the competition. By comparison, humans often get something on the order of months of time to iterate and try different ideas. So we thought, okay, what if we give the agents more time to work on these problems? So we have this kind of experiment where we just kept running the agent for longer and you can see on this plot here. We ran up to 100 hours and essentially you see the score does
or does continue to increase up to about 80 hours and then it kind of plateaus around there. And I want to note that I think this is like quite an unprecedentedly like long experiment. I think it's quite unusual that we've seen agents run at these time horizons. Um we expect this to just kind of be the case and like more and more experiments and agents will be able to run for longer time horizons and this is the space to watch.
All right, what else can you do? Um besides giving it more time, you can also just run it with more attempts. So one interesting thing to note about tasks like Kaggle tasks is that since the metrics are automated and very quantitative, you can actually just um run run the models many times, ask the agent to try a hundred times and then pick the best one. So
What you see on this plot here is we are doing basically, if you look for example at the eight point on the x-axis, what that means is that we've run the agent eight times across all of our benchmark, all of our competitions and then you pick the best score that it gets per competition and then you calculate and then that's your score. So
the point on the left here that's the initial scores that we were looking at previously in the table. And then if you just give the model more attempts and you pick the best solutions it

solutions, it just continues to give you a better score. So this is the kind of thing that you can actually do in the real world when you have the metrics that you care about. And yeah, very impressively, if you run O1 preview eight times, that clears more than 30%.
Okay, so some some interesting observations. Failure modes were aplenty in our experiments. Turns out agents don't just work and can't just do these things for you so easily. We spent a lot of time working through the pain of iterating on like oh agents failing on very silly things like the tool that it tried to use gave it
I don't know, like a hundred thousand lines of code because it was trying to read a CSV file that was way too big to fit it in its context length. So these kinds of very silly things kept tripping us up and basically you just run and iterate and like tune things a bit to make sure that we are actually estimating the best sense of what the model is able to do.
The other thing that we noticed, for example, is that depending on the scaffold and depending on the agent's tendencies, it tends to end the runs very early. So if you look down here, I have the three different agent scaffolds again being compared. I mentioned that the maximum time limit we give for the benchmark is 24 hours, but for example in the open hand scaffold we observed that GP2040 kind of would just like try for two minutes and then say alright, I'm done, I'm gonna finish my run here. So
That's the kind that's a kind of like failure mode that's quite common as well. Now I think one important question and concern of ours when we were working on this is data contamination. As you all know Kaggle competitions are just publicly published and so the concern is maybe the agents have just seen all of these
competitions before it might have trained on the solutions. So what we do here is we have like two experiments that kind of investigate this question. The first one is that we try and get a sense of whether how familiar the model is with the competition correlates with the performance. And the familiarity here we estimate using um yeah, just just a a quite a straight-forward method where we ask the model to predict
kind of masked words or the next word given a snippet of text from the competition descriptions or from forum posts related to that competition and that allows you to estimate like how often the how how familiar the model is with that competition's materials. So that's what we plot here on the X-axis. We would expect that if the model has um a lot of familiarity with the competition it might perform better because it has just memorised a lot of material related to it. But we found that there's actually no
significant correlation between the two, which is a good sign that this um this is not the kind of effect of contamination that um you might expect to see.
The other thing we tried was just to make sure that it's not so easy for the models to recognise, oh hey this is a this competition, I know I've trained on it before. The way we m we kind of try to control for this effect is that we obfusc obfuscate the competition descriptions so we strip down all the competition instructions to
the most um lean version of the description which just says okay this is the data set you're working with and this is the task, now go and do it. And that the goal there is to make it less recognisable as uh existing competition. So we compared the performance of the agent on the original
um competition descriptions versus the obfuscated descriptions. And we found um again no significant difference, which means that the models are at least not doing the kind of naive pattern matching that you might expect.
So yeah, just to quickly step through some of the limitations that we acknowledge um of our benchmark. First one is the contamination thing. Um it might become more of an issue in the future. Um the other question you might ask is whether MLE bench is actually representative of AI R&D. Um that there's also some nuanced differences to Kaggle competitions because we are running it as an offline version.
And finally, MLE bench is quite expensive, but as Neil has mentioned, that's why we've released MLE bench light. In conclusion, yeah, we have worked very hard to put MLE bench out there. We think it's pretty great for if you're interested.
In this topic, if you're working on LLM agents, I think you should try out our environment. I think it's very challenging, very diverse, long horizon as I've talked about. And I think another point that we want to drive home is that I think agents are actually like getting better very quickly.
you might easily underestimate an agent if you try it for the first time and it falls over for some reasons. But I think as scaffolds get more mature and models are getting better every day I think this is a space to watch. We have this plot here finally that I want to just like this is where we are.
In this paper I think it's a very interesting thing to kind of like postulate or like imagine what the future will look like uh once these lines start going up beyond 2024 beyond 2025 this year um how will that change things for us as a field. So yeah that is the end of our talk.
You saw the graphic with the three scaffolds and the difference in how quickly they each finish. So I mean clearly seems like it works significantly better. But what about the, I mean we don't have any details right here. Is there any intuition from how it worked? Like why the AID did the best in terms of the performance on this? Yeah, so as I think, so I mentioned briefly that
aid as I call it aIDE. So I think aid is actually purpose-built and designed to force the model to optimize this problem. So there's there is like optimization pressure applied here in that aid as a scaffold is asking the model to come up with a solution and then improve on that and then come up with many more different kinds of solutions. So it's essentially forcing like creating a search over the space of solutions.
So rather than reply relying on so I think if you don't have this kind of scaffold, the model has to perform the search of its own accord um and iterate over solutions itself. Models don't always do that. So in the eight in eight case it's basically using the scaffold to enforce this kind of search over solutions.
Um yeah, I have a question. So uh as somebody who look at the paper and say how I want how do I make money uh using this and try to uh win Kaggle money uh so how much is your uh cost uh if you can disclose.
uh so sorry is this the cost of running the benchmark or the The cost yeah cost of actually solving these problems compared to how much reward you get kind of like a speed lancer You know you have making some money, but you also paid the cost of completing tasks i think these i forget the exact number of how much you can get like from winning these competitions i think it's like the millions yeah It depends a lot on the competition.
Yeah, just over a million in total. But yeah, the rewards for these competitions vary a lot. So yeah, I think if you have a good system that is like very capable at solving state of the art frontier competitions, you can plausibly make more money than you spend running your agent.
I will say that the competitions that we've seen the models doing well on are often not the competitions that are currently being run. Like the recent competitions the model often struggles on. So I think that you have to be competitive with what is difficult and challenging today and I think the models are not doing that well in that front now. So you can't actually just go out and make money with this right now.
