# Oral 31791

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

> 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.

I'll be talking um about our work, training the test task confounds evaluation and emergence, which is joint work with Florian Donner and Moritz Hardt. So the one rule in benchmarking is that we shouldn't train on the test set. Um this is a clear violation of the benchmark protocol and researchers commonly fight this problem in the form of data leak cha data leakage or data contamination. We all agree that testing data should not appear uh at training time.
However, in our work we consider a different question. We consider what about legitimate attempts to bring training closer to test. So for foundation models, pre-training data is a design choice in itself, and this means that developers have unprecedented degrees of freedom in how they can use knowledge about evaluation task at training time. If I know that my model will be evaluated based on grade school mathematical reasoning, then I can just simply include as much grade school mathematical reasoning data as I possibly can.
And this is perfectly legitimate. We want models to do better at mathematical reasoning, but is it problematic for benchmarking? So in our work we identify the phenomenon of training on the test task, which again is about using knowledge about evaluation tasks at training time. We propose a methodology to quantify the extent of the problem, which we find is pervasive in major benchmarks. And we propose a way to adjust for it and restore fair model comparisons.
So to answer, to investigate the extent to which train-on-test task is problematic in practice, we'll consider first the MMLU benchmark, which is arguably the most prominent benchmark in the last three years of LLM research. We'll plot MMLU accuracy, which is about multiple choice question answering against pre-trained compute. And we'll compare models trained before November 2023 and models trained after November 2023 in blue and orange respectively.
So if we evaluate them, then this is what we get. We see that orange points tend to be above the blue points, which means that it seems that newer models indeed seem to be better than older models. We can quantify this difference by fitting the following regression of accuracy against log pre-trained compute, where we start by the random chance accuracy of twenty five percent, and then we add the hinge to account for emergence. So after the point of emergency E_ we'll um start to do better with a more pre-training compute.
And finally we add the coefficient N for newer models, which will precisely quantify what is the difference in performance on average between newer and older models. So we fit the regression and we find that um indeed newer models perform substantially better than older models on MMLU on average by s over seven accuracy points for the same amount of pre-trained compute.
We then consider a GSM_8K, which is a second very prominent benchmark in the last few years of L_L_M_ research. It's about mathematical reasoning, in particular grade school mathematical reasoning. We again see that newer models tend to be a lot better than older models. And we quantify the difference to be of almost twenty accuracy points, right? So newer models are almost twenty accuracy points better than older models for the same pre -training compute.
So, why is this? What does this have to do with Train on the Test Task? So we'll do um something relatively simple. So what we're gonna do is we're gonna te take each of these fifty six open weights uh models and we're going to fine tune them on the same amount of task data. So in this case for M_M_L_U_ we'll fine tune on just thirty million tokens of multiple choice question answering data.
So what happens? Here is what happens. After fine-tuning on the same amount of taskdata, then blue and orange models now seem to be actually a lot more um equal in terms of their performance per pre-training compute. And actually the the difference is just not statistically significant. It's both small and not statistically significant. So after lightly fine-tuning all models on the same taskdata, newer models no longer outperform older models.
And the same happens for GSM-8K. So the previously the difference in performance between newer and older base models it was very large. After we fine-tune all models on the same two hundred million uh mathematical reasoning um tokens, then what we find is that the difference in performance vanishes.
So this is our first insight of our work. Whatever makes newer models better at M_M_L_U_ and G_S_M_ eight game, it does not matter once all models see the same task data. And of course this indicates that you know the difference between newer and older models to begin with is likely that newer models simply pre-trained on more task data. So we've we've shown evidence that um training and test task place a significant role um in confounding existing benchmarks. So how can we combat this problem?
So what we'll do is some controlled experiment where we're gonna take all the models and we're going to fine-tune them in some amount of task data, right? We'll only fine-tune models above ten to the twenty two FLOPS, which is the scale of the smallest newer model, just to keep things consistent. So after we take all the models and we give them a little bit of task data, then we get these red models, right? And as perhaps you would expect, uh performance um increases.
And indeed the difference is about eight accuracy points. So again, remarkably similar to what we saw before. But this plot is is different than the one before. Now we don't have blue and yellow points, we have blue and red points. The red points are not new models, are older models that we gave some task data.
So now we've uh artificially given some advantage to the red models by giving them task data. So how can we combat um the the explicit advantage that we gave them? So what we show is that we can fight fire with fire and simply fine-tune all models on the same task data before we evaluate. So again, we fine-tune all models and the difference in performance once again vanishes. So again we gave a unartificial advantage to the red models by training on the test task and we we made
Um the uh advantage disappear by further training on the test task. The same happens for GSM8K, again we have the right models, which is just all models that we gave task data. The difference in performance is about twenty accuracy points, so again remarkably similar as what we saw earlier. After we give all models the same amount of task data, then this performance difference vanishes.
So this is the second insight of our work. How can we combat training on the test task? We can simply do more of it. In particular we can fine-tune all models on the same task data prior to evaluation.
Now I'd like to convince you that it's really about the test task and not the test set. And to do so, we'll consider the HellaSwag benchmark, which is a common sense reasoning benchmark, and we're again going to plot HellaSwag against pre-trained compute for both newer and older models. And here we see that, you know, likely newer models did not see the test set more so than older models because there's just no significant difference in performance between the two. Now what we're going to do is we're gonna take HellaSwag and frame it as a multiple choice question answering.
answering task and then we'll see what happens. So after we take Helvetica and we frame it as multiple choice question answering, we again see this large difference in performance that we observed for M_M_L_U_ And this indicates that it's nothing too special about the Helvetica or the M_M_L_U_ testing set is the fact that we're evaluating for multiple choice question answering. Fortunately, after we evaluate the very same models that we uh fine-tuned earlier for M_M_L_U_ for multiple choice question answering, this difference in performance once again vanishes.
So this is the third insight. It's really about the test task and not really the test set.
So this is my favourite slide. It asks uh what is a base model good for, and I would argue base models are mostly just good for post-training, right? And here we have the the benchmark performance of uh three base model families. Um we see that Quan in orange seems to be the better model family. They clearly knew what they were doing when they trained Quan, because it strictly outperforms and Pareto dominates all other two model families. Yamato um seems to be doing better with Python maybe because it's larger, but
but at least it's doing better, uh as we give it more pre-trained compute. And lastly Paithia, which is a very old model family for now, just seems to not be doing very well. It doesn't matter how much we scale Paithia, which is not doing better than random chance. So what happens after we give the segment of task data to all model families.
Well, once again the performance differences between model families vanish. And it no longer seems that one family is particularly better than the other, but they're all very much along the same line of f accuracy against pre-train compute. So after we gave all model families the same amount of task data, we no longer find one of them to be particularly superior to the others, but pre-train compute is the one thing that matters.
Therefore I would argue that just makes little sense to evaluate base models at face value, because we're going to post-train them anyways, and performance at pre-trained tampered is not really indicative of performance after post-training. And in particular uh the best model changes you would have thought, maybe the largest coin model is the one you should post-train since it's the one that is doing better to begin with. But after a fine-tuning actually is the the largest gamma model, the one that um does best, and this is not because gamma is necessarily better, it's just a larger model.
So now I'll discuss some implications for emergence. So throughout our experiments and the plots you saw earlier, you would have seen that fine-tuning makes emergence arise at lower compute scales. So here we plot m-m-l-u accuracy against pre-trained compute, and we fit a hinge fit where the kink will be our point of emergence, C_e. So if we just evaluate all the models, then we'll see that emergence occurs at around 10 to the 22 flops.
Now after fine-tuning on six thousand multiple choice questions and examples, then the um point of emergence reduces by half. And after fine-tuning on an order of magnitude more data, the point of emergence again reduces by an order of magnitude. So this means is we care about um predictive scaling, such as we do in certain areas such as safety, then training on the test task is a simple approach to obtain more predictive scaling.
So now I like to to to pause and reflect. So how insightful is it to compare a one billion model with a hundred billion model, hundred billion parameter model? So probably not very insightful. We just expect the hundred billion parameter model to do better, but we don't really learn so much from it, other than scale really helps. And in particular we would often not make this comparison because we just think it's it's quite unfair to the one billion parameter model.
So I would argue that the same goes for training on the test task. Sure, we can compare a model that was trained on a ton of grade school mathematical reasoning and it'll do better, but we learn not very much other than sure, task data really helps with task performance. So then my recommendation is to adjust. We should fine tune on the same task data before we evaluate.
So in summary, uh turning on the test task is here to stay. It's not cheating, it's a legitimate attempt at improving performance on tasks that we actually care about, such as mathematical reasoning. But it breaks benchmarking by leading to deeply unfair model comparisons. Fortunately we show that we can adjust for the effect of turning on the test task by fine tuning on the same task data before we evaluate.
And this leads to many open problems, such as how can im we improve the efficiency of the adjustment procedure, both in terms of compute of the amount of task data necessary, uh how can we adjust for A_P_I_ models where we can just not fine-tune the model weights, and how can we best standardise the adjustment procedure and I'm here I'm particular fan of benchmarks that come with the training set, uh which is not so common anyways nowadays.
Thank you very much and I'll be very happy to talk to you in the poster session this afternoon. Thank you for the presentation and this is very interesting work. Uh so we cannot yeah I I agree we cannot uh involve the tr uh task data into training. But by saying task tasks, so how do we define task tasks? You based on the the answer format or based on the the problem type of what else? Yeah, so here we are deliberately not very explicit in how we define
find what the test task even is because you know people could get quite creative in how they train on the test task but generally it would just be like
data that we think is quite related to the evaluation, right? So in in some sense we we define multiple choice question answering as a test task, and it doesn't seem to matter whether you are knowledge testing such as in MMLU or common sense reasoning testing such as in HellaSwag is the format here that matters. But of course for mathematical reasoning then maybe format plays less of a role, right? As soon like as long as you can extract the answer then maybe it plays less of a role.
But yeah, how w what test task even means then it's also um work for the future. Yeah, thanks for the presentation. Um I have a couple of question but I'll keep it to one here. Um how similar does this task data have to be to the actual benchmark? Can you fine-tune you on any math data to get better at GSM8K or does this not work? Right. Um so in particular for the case of math um
We take standard uh so we take MetaMath QA and OrcaMath, which of course were designed with GSM8k and the math benchmark in mind just because it's the major benchmarks, right. So it's unclear to me, um you know, if you deviate quite far from this type of um you know
this type of problems if you train just on competitive math then maybe the adjustment doesn't quite work right this is unclear um yeah but it's also for future work I'll have to say that in the case of multiple choice question answering then we just take like um the auxiliary auxiliary training set of MMLU which has nothing to do with MMLU other than being like a compilation of training sets of other multiple choice question answering benchmarks so in this case most of the adjustment data does really not look very much like
much like M_M_L_U_ Other than being multiple choice. So yeah, I guess uh the answer is, it depends. But it could play a role of course.
