Training on the Test Task
Confounds Evaluation and Emergence 00footnotetext: Corresponding author. Email: rdo@tuebingen.mpg.de

Ricardo Dominguez-Olmedo Max Planck Institute for Intelligent Systems, Tübingen Tübingen AI Center Florian E. Dorner Max Planck Institute for Intelligent Systems, Tübingen Tübingen AI Center ETH Zurich Moritz Hardt Max Planck Institute for Intelligent Systems, Tübingen Tübingen AI Center
Abstract

We study a fundamental problem in the evaluation of large language models that we call training on the test task. Unlike wrongful practices like training on the test data, leakage, or data contamination, training on the test task is not a malpractice. Rather, the term describes a growing set of techniques to include task-relevant data in the pretraining stage of a language model. We demonstrate that training on the test task confounds both relative model evaluations and claims about emergent capabilities. We argue that the seeming superiority of one model family over another may be explained by a different degree of training on the test task. To this end, we propose an effective method to adjust for training on the test task by fine-tuning each model under comparison on the same task-relevant data before evaluation. We then show that instances of emergent behavior largely vanish once we adjust for training on the test task. This also applies to reported instances of emergent behavior that cannot be explained by the choice of evaluation metric. Our work promotes a new perspective on the evaluation of large language models with broad implications for benchmarking and the study of emergent capabilities.222Code and fine-tuned models are available at https://github.com/socialfoundations/training-on-the-test-task

1 Introduction

The machine learning community has long recognized certain clear violations of the benchmarking protocol. Training on the test set is the most notorious among them (Duda and Hart, 1973; Hastie et al., 2017; Hardt and Recht, 2022). Data leakage (Kapoor and Narayanan, 2022) and data contamination (Roberts et al., 2023; Jiang et al., 2024) are closely related problems linked to the rise of massive web-crawled training datasets. Researchers can all agree that test data should never appear in the training set.

But it’s been much less clear what to do about legitimate attempts to bring training closer to evaluation. There is an obvious a gap between next token prediction at training time and tasks, such as reasoning and question answering, at test time. Ongoing research and engineering efforts, in fact, aim to narrow precisely this gap (MetaAI, 2024; Lewis, 2024). Why shouldn’t training be informed by knowledge about the downstream test tasks? What’s an unfair advantage of some may be the feature of others.

In this work, we group strategies to utilize task knowledge at training time under the umbrella term of training on the test task. Examples of training on the test task include the use of instruction-tuning data or question answering templates during pre-training (Zeng et al., 2022; Bai et al., 2023). We work from the premise that training on the test task is acceptable—or at least, unavoidable.

In a nutshell, we show that training on the test task strongly confounds model comparisons across different scales and model families. Moreover, it significantly obscures the study of emergent capabilities of large language models. Perhaps counterintuitively, we propose to mitigate the effects of training on the test task by doing more of it. We show that we can effectively level the playing field by giving each model the same, sufficient task-specific fine-tuning before evaluation. This adjustment restores clean log-linear scaling and makes capabilities predictable based on much smaller model scales.

Refer to caption
Figure 1: MMLU and GSM8K scores of 53 base models, with model sizes ranging from 70M to 70B parameters. Solid lines correspond to the regression fit of A=αmax(0,logCce)+θN+r𝐴𝛼0𝐶subscript𝑐𝑒𝜃𝑁𝑟A=\alpha\max(0,\log C-c_{e})+\theta N+ritalic_A = italic_α roman_max ( 0 , roman_log italic_C - italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ) + italic_θ italic_N + italic_r, where A𝐴Aitalic_A is accuracy, C𝐶Citalic_C is pretraining compute, N𝑁Nitalic_N is whether the model was trained after November 2023, and r𝑟ritalic_r is random chance accuracy. The coefficient θ𝜃\thetaitalic_θ denotes the average improvement of models trained after November 2023 when controlling for pretraining compute. Bold indicates statistical significance with p𝑝pitalic_p-value <0.05absent0.05<0.05< 0.05. (Top) We hypothesize that training on the test task confounds benchmark evaluations, resulting in newer base models substantially outperforming older ones. (Bottom) We propose to adjust for differences in test task training by fine-tuning all models on the same, sufficient amount of task-specific data before evaluation. After fine-tuning on the test task, differences in benchmark performance between older and newer models vanish.

1.1 Our contributions

We introduce the term training on the test task to group a growing repertoire of practices that utilize knowledge about evaluation tasks at training time. We study its impact on benchmark evaluations by inspecting 53 different language models in two major active benchmarks, MMLU and GSM8K.

We start in Section 2 by dividing models into those trained before November 2023 and those trained after. We find that for the same amount of compute, newer models outperform older models on average by 7 percentage points in MMLU and 17 points in GSM8K. We then fine-tune all models on the same amount of task-specific data before evaluation. We show that after fine-tuning, newer models no longer outperform older models. See Figure 1. This outcome suggests that newer models outperform older ones because they—implicitly or explicitly—trained more on the test task. Moreover, it shows how test task training can distort benchmark performance.

We propose a simple and effective method to adjust for the effect of training on the test task. Put simply, we fine-tune each model on the same, sufficient amount of task-specific data before evaluation. To validate our method, we demonstrate its effectiveness in a controlled setting: we take the older models and fine-tune half of them on the test task. Remarkably, this recreates the kind of performance differences observed between newer and older models. We then show that we can undo the advantage of the fine-tuned models over the other models by further fine-tuning all models on the test task (Section 3.1, Figure 3).

Next, we give evidence that training on the test task may be a more dominant factor in benchmark performance than data contamination. To argue this point, we consider ARC and HellaSwag, which use cloze prompts for evaluation. Here, at first there appears to be no sign of an unfair advantage in any specific model family. But after switching to MMLU-style multiple choice prompts, we see the same confounded results as for MMLU (Section 3.2, Figure 4). This suggest that newer models perform well in MMLU likely not because of memorization of specific testing data, but rather due to an improved ability to comprehend MMLU-style prompts. Either way, our proposed adjustment recovers fair model comparisons.

We show that training on the test task significantly distorts model family comparisons. The design choices of certain model families –such as its pretraining data mixture– may appear superior to others before adjusting for test task training but not after adjustment (Section 4.1, Figure 6). We also demonstrate that test task training overestimates the progress in capabilities achieved by recent models. After adjustment, newer models only modestly improve the Pareto frontier of performance against compute (Section 4.2, Figure 7).

Finally, we demonstrate that training on the test task has profound implications for the study of emergent capabilities. Specifically, we show that the phenomenon of emergence disappears gradually as the amount of training on the test task grows (Section 5). In particular, we can make capabilities visible and predictable from much smaller model scales. Importantly, our adjustment also works in cases, like MMLU, where previous purported explanations of emergence, such as the choice of evaluation metric, do not suffice.

Our work calls for a major reorientation of large language model evaluation. Model comparisons, scaling laws, and claims of emergence, are all strongly confounded by the choice of training data relative to the test tasks. Rather than scrambling to detect and disallow various forms of training on the test task, we propose to “fight fire with fire”. Specifically, our recommendation is to give each model the same sufficient amount of fine-tuning on task-relevant data prior to evaluation.

Limitations.

Although deliberate training on the test task can level the playing field, our work shows that generally significant fine-tuning is needed before the playing field is actually level. This requirement poses additional computational burden on the side of the evaluator. The computational resources to fine-tune all models equally may not be available to all evaluators depending on the circumstances. In addition, sufficient task-relevant training data might be expensive to source or generally unavailable for many tasks. While this is not an issue when model trainers also lack access to such data, training on proprietary task-specific training data would be difficult to correct for.

2 Adjusting for training on the test task

We choose MMLU (Hendrycks et al., 2020) and GSM8K (Cobbe et al., 2021) as a case study for investigating training on the test task in active benchmarks. MMLU tests for world knowledge, whereas GSM8K tests multi-step mathematical reasoning. These two benchmarks are very prominent in the literature at present time. For instance, GPT 4 (Achiam et al., 2023), Claude 3 (Anthropic, 2024), Gemini (Gemini et al., 2023) and Llama 3 (MetaAI, 2024) all report and highlight MMLU and GSM8K. They are also included in the HuggingFace (HF) Open LLM Leaderboard111See Appendix C for results pertaining to the OpenLLM Leaderboard v2 (Fourrier et al., 2024a). (Beeching et al., 2023), a popular benchmark leaderboard that evaluates and ranks models with publicly available weights. We evaluate models using LM Evaluation Harness library (EleutherAI, 2024), in identical fashion to the HF leaderboard.

We evaluate 53 base models, ranging in size from 70M to 70B parameters. See Appendix A.1 for the full list. The HF leaderboard’s FAQ makes the distinction between “base pretrained models” and instruction-tuned or chat models, arguing that this is necessary to ensure fair model comparisons. We select models that are categorized as “pretrained”. We check that the technical report of each of the selected models makes no mention of the model being fine-tuned. We only consider models for which the number of training tokens is known. This allows us to estimate the total amount of pretraining compute in FLOPs as C6ND𝐶6𝑁𝐷C\approx 6\cdot N\cdot Ditalic_C ≈ 6 ⋅ italic_N ⋅ italic_D, where C𝐶Citalic_C is pretraining compute, N𝑁Nitalic_N is the number of model parameters, and D𝐷Ditalic_D is the number of training tokens.

Recent models outperform older ones given the same pretraining compute.

We evaluate models on MMLU and GSM8K, and plot benchmark accuracy against pretraining compute in Figure 1 top. We observe that performance correlates with pretraining compute for both benchmarks. However, on the surface it appears that more recent models better leverage pretraining compute. In other words, for a given compute budget newer models are able to attain better benchmark performance. In fact, models trained after November 2023 Pareto dominate those trained before November 2023.

These improvements in benchmark performance coincide with a recent trend in LLM research of increasingly utilizing test task knowledge at training time. For example, Qwen 1.5 (Bai et al., 2023), Olmo 1.7 (Groeneveld et al., 2024) and MAP Neo (Zhang et al., 2024) include instruction data during pretraining. StableLM 2 (StabilityAI, 2023) reformulates some of its pretraining datasets to better resemble downstream tasks such as question-answering. More subtly, the pretraining data mixture of Gemma (Gemma et al., 2024) was determined partially based on downstream benchmark evaluations.

This raises an important question: Do newer models outperform older ones mainly because newer models effectively trained more on the test task? At first sight, an answer seems elusive. After all, it would be both infeasible and cost prohibitive to train all models with the same training data and compute budget. Nevertheless, in the next section, we propose a way to get at the answer by adjusting for the effect of training on the test task.

2.1 Adjusting for training on the test task by training on the test task

We propose to adjust for differences in test task training by fine-tuning all models on the same, sufficient amount of task-specific data before evaluation. To do so, we need a source of task-specific data for each of the tasks we consider. For multiple choice questioning answering (MMLU), we use the auxiliary training set accompanying the HF MMLU repository222https://huggingface.co/datasets/cais/mmlu. It contains around 100,000 training examples and around 30M tokens. For mathematical reasoning (GSM8K), we combine the the MetaMathQA (Yu et al., 2023b) and Orca-Math (Mitra et al., 2024) datasets, totalling 600,000 training examples and approximately 200M tokens. We fine-tune models for three epochs using standard hyperparameter choices, with minimal hyperparameter tuning, see Appendix A.2. Note that the amount of compute required for fine-tuning is minimal in comparison to the compute required for pretraining, since all models considered were pretrained on at least 300B tokens.

Refer to caption
Figure 2: Models trained before November 2023 tend to benefit much more from fine-tuning on task data.

We plot model scores on MMLU and GSM8K after fine-tuning in Figure 1 (bottom). We observe that after fine-tuning on task relevant data, newer models no longer Pareto dominate in terms of accuracy per pretraining compute. Instead, benchmark performance is strongly correlated with compute and both newer and older models follow remarkably similar scaling trends. That is, newer models no longer appear to outperform older models. Moreover, we observe that older models tend to benefit from training on the test task much more than newer models, see Figure 2. The improvements of older models are striking, often jumping from random chance accuracy to double digit improvements in accuracy. In contrast, fine-tuning brings comparatively little benefit to newer models. This observation suggests that newer models have already been trained on a substantial amount of task-relevant data.

2.2 Quantifying performance differences between newer and older models

We draw inspiration from scaling laws (Kaplan et al., 2020) in how we model benchmark accuracy A𝐴Aitalic_A to scale log-linearly with pretraining compute C𝐶Citalic_C. To account for emergence (Wei et al., 2022), we assume that models perform at the task’s random chance accuracy r𝑟ritalic_r up to scaling to some point of emergence cesubscript𝑐𝑒c_{e}italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT. We let the variable N𝑁Nitalic_N denote whether a model was trained after November 2023, and regress the model

A=αmax(0,logCce)+θN+r+ϵ,𝐴𝛼0𝐶subscript𝑐𝑒𝜃𝑁𝑟italic-ϵA=\alpha\max(0,\log C-c_{e})+\theta N+r+\epsilon,italic_A = italic_α roman_max ( 0 , roman_log italic_C - italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT ) + italic_θ italic_N + italic_r + italic_ϵ , (1)

where α𝛼\alphaitalic_α, θ𝜃\thetaitalic_θ and cesubscript𝑐𝑒c_{e}italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT are the fit’s parameters, and ϵitalic-ϵ\epsilonitalic_ϵ is random noise. We focus on the coefficient θ𝜃\thetaitalic_θ, which corresponds to the average difference in benchmark performance between newer and older models after controlling for pretraining compute. We fit the model in Equation 1, and report the regression coefficient θ𝜃\thetaitalic_θ in Figure 1. We obtain R>20.9{}^{2}>0.9start_FLOATSUPERSCRIPT 2 end_FLOATSUPERSCRIPT > 0.9 for all model fits. Before adjusting for test task training, the estimated difference in performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG between newer and older models are statistically significant, positive, and large. Specifically, recent models on average outperform older ones by over 7 accuracy points in MMLU and 17 accuracy points in GSM8K. These are remarkable differences in benchmark performance, as small single digit improvements are typically considered substantial improvements by the literature.

We repeat the analysis but using models’ adjusted benchmark scores, that is, those obtained after fine-tuning on the test task. After adjusting for test task training we find no evidence for a significant difference in benchmark performance between newer and older models. That is, the estimated coefficient θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG is both small and not statistically significant. Put simply, newer models no longer outperform older ones. Therefore, conditioned on all models training on the same, sufficient amount of task-specific data before evaluation, there are no differences in benchmark performance between newer and older models.

Our findings provide evidence that the differences in benchmark performance between newer and older models are largely attributable to differences in test task training. We present a causal interpretation of our results in Appendix B, outlying the causal assumptions needed to establish that the improvements of newer models are attributable to training on the test task. Overall, we find no evidence for the improvements in performance of newer models being attributable to anything other than training more on the test task.

We include in Appendix B.1 a robustness check on the temporal split chosen, by instead diving models based on whether they were trained primarily on English language data. We obtain similar differences in performance, which we interpret as a valuable robustness check of our results. In Appendix C we instead consider the benchmarks of the newly released HF OpenLLM Leaderboard v2 (Fourrier et al., 2024a). Whereas the HF leaderboard v2 pays particular attention to guarding against data contamination (Fourrier et al., 2024b), we nonetheless find evidence that training on the test task confounds all benchmarks included in the Leaderboard v2. These findings highlight that training on the test task is a distinct phenomenon from data contamination, and new methods –such as our proposed adjustment procedure– are required to mitigate the confounding effect of training on the test task on benchmark evaluations.

3 Recreating differences in benchmark performance

Previously, we introduced a way to adjust for training on the test task. Here we systematically test the validity of this adjustment method. To do so, we demonstrate how to recreate the observed differences in performance between newer and older models by actively manipulating how much models train on the test task.

We do so in two ways. First, we fine-tune older models on task relevant data (Section 3.1). Second, we reformulate certain test tasks to use multiple choice prompts instead “cloze” evaluation (Section 3.2). Both experiments turn out to recreate the kind of performance difference we observed earlier. This not only provides further evidence that differences in performance between older and newer models are linked to test task training. It also demonstrates how test task training distorts benchmark evaluations.

Fortunately, in both cases, we show that fine-tuning models on task-relevant data before evaluation is an effective mechanism for mitigating the bias introduced by training on the test task.

3.1 Fine-tuning on the test task

For this section, we only consider models trained before November 2023, since we hypothesize that older models do not train on the test task much. We randomly split models into two cohorts: a control group and a treatment group. We fine-tune the treatment group on the datasets of task-relevant data introduced in Section 2. We fine-tune on each dataset independently, for a single epoch. We then evaluate the benchmark performance of the two cohorts, as well as their performance after adjusting for test task training. As in the previous section, we adjust for test task training by fine-tuning all models on the test task before evaluation.

Refer to caption
Figure 3: Models trained before November 2023 () without fine-tuning and () after fine-tuning on the test task. Their difference in benchmark performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG resemble that between newer and older models. After adjusting by training on the test task, their difference vanishes. Bold indicates significance with p<0.05𝑝0.05p<0.05italic_p < 0.05.

We plot in Figure 3 the two cohorts’ benchmark performance before and after the adjustment. We repeat the statistical analysis of Section 2.2 and report the estimated coefficient θsuperscript𝜃\theta^{\prime}italic_θ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT indicating the average difference in benchmark performance between the two cohorts when controlling for compute.

Fine-tuning the treatment group results in large differences in performance between the control group and the treatment group, see Figure 3 middle. Qualitatively, the differences between the control and treatment group resemble those observed between newer and older models in Section 2.2. In particular, the fine-tuned models Pareto dominate the non fine-tuned models. Quantitatively, the estimated increase in performance θ^superscript^𝜃\widehat{\theta}^{\prime}over^ start_ARG italic_θ end_ARG start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT due to fine-tuning is statistically significant and large. Importantly, it is also similar to the difference in performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG between newer and older models estimated in Section 2.2. Therefore, fine-tuning older models on the test task gives rise to qualitatively and quantitatively similar confounding to that observed between newer and older models. This is consistent with our running hypothesis that newer models are largely equivalent to older models that trained on the test task.

After adjusting for test task training by further fine-tuning both the control and treatment groups on the test task, we observe that models in the treatment group are no longer outliers in terms of performance-per-compute, see Figure 3 right. Quantitatively, the estimated increase in performance θ^superscript^𝜃\widehat{\theta}^{\prime}over^ start_ARG italic_θ end_ARG start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT is both small and not statistically significant. We therefore validate a vital soundness property of the proposed adjustment procedure: after deliberately training some models on the test task, we can undo their advantage over other models by further training all models on the test task.

3.2 Reformulating the test task

In this section we consider two additional benchmarks from the HF leaderboard: ARC Challenge (Clark et al., 2018) and HellaSwag (Zellers et al., 2019). Similarly to MMLU, ARC is comprised of grade-school level questions. HellaSwag instead tests for commonsense reasoning. Like MMLU, the questions in ARC and HellaSwag are accompanied by four possible answers, among which the model must differentiate the correct one. The standard MMLU evaluation formulates questions as multiple-choice: all four answer choices are listed, and the model is promoted to pick one. In contrast, ARC and HellaSwag use “cloze” evaluations: a models’ answer is taken to be that with the largest completion likelihood given the input question.

Refer to caption
Figure 4: Reformulating ARC and HellaSwag as MMLU-style questions give rise to large differences θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG between models trained () before November 2023 and () after November 2023. After adjusting by fine-tuning on the test task, differences in performance vanish. Bold indicates significance with p<0.05𝑝0.05p<0.05italic_p < 0.05.

We evaluate all models on ARC and HellaSwag using the standard cloze evaluation, and plot their benchmark performance in Figure 4 left. We repeat the statistical analysis of Section 2.2, and report the average difference in performance θ𝜃\thetaitalic_θ between newer and older models after controlling for pretraining compute. Qualitatively, we observe that older models and newer models have very similar scaling trends. Quantitatively, the estimated difference in performance between newer and older models θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG is small and not statistically significant. That is, newer models do not outperform older models on ARC and HellaSwag.

We then reformulate ARC and HellaSwag as MMLU-style multiple-choice questions, and plot the resulting benchmark performance in Figure 4 center. We observe large differences in performance between newer and older models. Qualitatively, these differences in performance resemble those observed for MMLU. In particular, newer models Pareto dominate in terms of performance-per-compute. Quantitatively, we find the difference in performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG between newer and older models to be significant, positive, and large, and to be roughly similar in magnitude to that estimated for MMLU in Section 2.2. Therefore, reformulating the test task as multiple choice question answering leads to similar confounding to that observed for MMLU. This suggest that what causes the outliers in MMLU is likely not memorization of specific testing data (i.e., due to data contamination or leakage), but rather an improved ability for MMLU-style prompts.

We adjust for test task training by fine-tuning all models on the MMLU auxiliary training set, and plot their ARC Challenge and HellaSwag scores in Figure 4. We observe that newer models are no longer outliers in terms of performance-per-compute. Moreover, we no longer find evidence of a significant difference in performance between newer and older models. The proposed adjustment is therefore effective in removing the confounding resulting from newer models overperforming for MMLU-style prompts.

Refer to caption
Figure 5: When evaluating MMLU using “cloze” prompts, models trained () after November 2023 no longer outperform those trained () before November 2023 (middle). When using Brier score as the evaluation metric, we still observe sharp improvements in performance between 1022superscript102210^{22}10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT and 1023superscript102310^{23}10 start_POSTSUPERSCRIPT 23 end_POSTSUPERSCRIPT FLOPs (right).

What does MMLU test for?

We evaluate MMLU using the “cloze” methodology instead of the usual multiple-choice prompts. We plot the results in Figure 5 center. With cloze evaluations, newer models are no longer are outliers in terms of MMLU performance. In fact, the difference in performance between newer and older models is now small and not statistically significant. This suggests that the standard MMLU evaluation conflates knowledge-testing with testing a models’ ability to answer multiple choice questions. For instance, smaller non fine-tuned models suffer from particularly strong A-bias for multiple-choice questions (Dominguez-Olmedo et al., 2023). Newer models therefore attain higher MMLU scores largely because they are better at multiple-choice question answering, and not because they necessarily “know more”.

4 Implications for model comparisons

Our findings indicate that training on the test task acts as a major confounder of LLM benchmark evaluations. We now discuss its implications for the relative comparison of model families (Section 4.1), as well as its implications for measuring progress in model capabilities over time (Section 4.2).

4.1 Comparing model families

We compare the MMLU and GSM8K performance of the Pythia, Llama 2, and Qwen 1.5 model families, which likely train on the test task to very different extents. Pythia was trained on the Pile (Gao et al., 2020), a collection of curated datasets that are unlikely to contain much test task data. Llama 2 was trained mostly on web data, which is reasonable to assume may contain test task data. Lastly, Qwen 1.5 explicitly includes instruction data in its pretraining mixture, thus likely training on the test task to a large extent.

Refer to caption
Figure 6: Training on the test task confounds relative comparisons between model families. After adjusting for test task training, none of the three model families appears to be superior beyond their pretraining compute.

In Figure 6 we plot the MMLU and GSM8K scores of the Llama 2, Qwen 1.5, and Pythia families of models, as well as their adjusted accuracy (i.e., after fine-tuning on task relevant data). Without adjustment, Qwen 1.5 appears to be the superior model family: it Pareto dominates both the Llama 2 and Pythia models. Furthermore, all Pythia models perform no better than random chance, and thus it is unclear what benefit scaling Pythia might bring. After fine-tuning the models on the the test task, however, all three model families exhibit very similar scaling trends. Therefore, when correcting for the confounding introduced by test task training it is unclear if any of the model families is superior to the others beyond their pretraining compute.

Interestingly, recent work equates pretraining data quality with downstream benchmark performance (Penedo et al., 2024; Li et al., 2024). For example, the Pile (Pythia’s pretraining dataset) is thought to be inferior to filtered web data. In light of our findings, it is plausible that a major contributing factor to the superior performance of “higher quality” pretraining datasets is that they contain a larger share of test task data.

Refer to caption
Figure 7: Training on the test task overestimates the improvements made by recent base models in terms of performance-per-compute. After adjustment, the area of improvement (green) reduces by a sixfold.

4.2 Progress in model capabilities

One purpose of benchmarks is to track progress in model capabilities. In Figure 7 we plot the Pareto frontier of benchmark accuracy against pretraining compute, both for models trained before November 2023 and for all models. We measure progress by considering the area of improvement of the Pareto frontier since November 2023, shaded in green. Without adjustment, the difference between the two Pareto frontiers is rather large for both MMLU and GSM8K, indicating substantial progress since November 2023. After fine-tuning models on the test ask, however, the area of improvement reduces by a sixfold. Therefore, the confounding introduced by test task training leads to substantially overestimating the progress in MMLU and GSM8K capabilities per unit of compute achieved by recent model families.

On the other hand, recent models tend to be trained on more data. Given the Chinchilla scaling laws (Hoffmann et al., 2022), it is remarkable that newer, smaller models match the performance of older, larger ones for the same amount of pretraining compute. Since inference and fine-tuning of smaller models is substantially cheaper, recent models can be much more accessible to less well-resourced institutions, with little cost in performance. For example, we find that Llama 3 8B closely matches the performance of Llama 2 70B.

5 Implications for emergence

Throughout our evaluations, we observe emergent behaviour for MMLU and GSM8K: models perform at near random chance up to a certain scale of pretraining compute, followed by relatively sharper improvements in performance at larger scales (Wei et al., 2022). After training on the test task, however, emergence for MMLU and GSM8K appears to occur at substantially lower scales. We dedicate this section to more closely investigate the relationship between training on the test task and emergence.

Emergence arises at lower scales with increased test task training.

Refer to caption
Figure 8: The point of emergence cesubscript𝑐𝑒c_{e}italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT arises at increasingly lower scales as models train on the test task.

We consider only models trained before November 2023, as we have established that these models train on the test task to a lesser extent. We evaluate the models at intermediate checkpoints as they train on the datasets of task relevant data introduced in Section 2.1. We fit α𝛼\alphaitalic_α and cesubscript𝑐𝑒c_{e}italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT in Equation 1 to the different intermediate checkpoints, and report in Figure 8 the corresponding points of emergence cesubscript𝑐𝑒c_{e}italic_c start_POSTSUBSCRIPT italic_e end_POSTSUBSCRIPT. We find that emergence arises at increasingly lower compute regimes as models increasingly train on the test task. For instance, for MMLU the non-fine tuned models exhibit emergence at around 1022superscript102210^{22}10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT FLOPs, roughly the scale of Pythia 6.9B. After training on 64,000 examples, emergence arises around around 610206superscript10206\cdot 10^{20}6 ⋅ 10 start_POSTSUPERSCRIPT 20 end_POSTSUPERSCRIPT FLOPs, that is, roughly the scale of Pythia 410M. That is, the benchmark performance of models after training on the test task is predictable at substantially lower scales.

Refer to caption
Figure 9: Training on the test task yields increasingly better log-linear scaling fits (higher R2).

Training on the test task yields increasingly better log-linear fits.

The log-linear relationship between pretraining loss and compute is well-established (Kaplan et al., 2020; Hoffmann et al., 2022). We observe that, for the compute ranges that we consider, training on the test task increasingly recovers log-linear scaling between pretraining compute and benchmark accuracy. Similarly to the earlier section, we evaluate intermediate checkpoints but instead fit log-linear functions in Figure 9. We observe that the R2 of the fit improves substantially as the models train on more task-relevant data. For MMLU, the R2superscript𝑅2R^{2}italic_R start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT value jumps from 0.630.630.630.63 to 0.950.950.950.95 after training on 64,000 examples. Therefore, after training on the test task almost all of the variation in accuracy can be explained by log-linear scaling of pre-training compute.

Discussion.

Schaeffer et al. (2024a) argue that emergence appears due to the choice of metric. To mitigate emergence, they suggest to consider Brier score instead of accuracy. We observe, however, that the emergent behaviour of MMLU does not disappear when using the Brier score, see Figure 5 right, nor that of ARC and HellaSwag when framed as multiple-choice questions, see Figure 16 in Appendix D. While more complex changes of metric might resolve the emergence in multiple-choice QA (Schaeffer et al., 2024b), we discuss two practical solutions to obtain predictive scaling while maintaining accuracy as the evaluation metric.

For MMLU and multiple-choice benchmarks more broadly, we consistently observe that cloze evaluations yield smoother and more predictable scaling even when using accuracy as the evaluation metric. Since the purpose of these benchmarks is knowledge-testing more so than testing multiple-choice answering ability, cloze evaluations should be preferable insofar predictive scaling is an important consideration.

More broadly, if sufficient task relevant data is available, then training on the test task can result in much more predictable scaling by shifting emergence to smaller compute scales. Crucially, the evaluation metric and methodology need not be changed. Note that in many settings it is not a priori apparent what metric or evaluation methodology might results in predictive scaling. Scaling laws after fine-tuning correspond to those of more “specialist” models, which for some domains –such as the legal domain (Dominguez-Olmedo et al., 2024)– or purposes –e.g., safety– might be preferable to the scaling law of generalist models.

6 Related work

Benchmarks have played a central role in both machine learning (Hardt and Recht, 2022) and natural language processing (Storks et al., 2019). Classically, benchmarks comprised both a test set and a reasonably large training set (Garofolo et al., 1993; LeCun et al., 1998; Sang and De Meulder, 2003; Koehn, 2005; Deng et al., 2009). Models were trained on the same training set, and then evaluated on the accompanying test set. The success of unsupervised language modelling (Peters et al., 2018; Kenton and Toutanova, 2019; Radford et al., 2019), however, has changed this paradigm. Firstly, present-day language models differ in their training data, which is not standardized but rather treated as a design choice (Raffel et al., 2020; Albalak et al., 2024; Li et al., 2024). Secondly, language models are a priori not trained with the explicit objective of maximizing any single benchmark score. Rather, language models are expected to be able to perform a broad range of tasks (Wang et al., 2018; Brown et al., 2020). Consequently, models are evaluated and compared using a plurality of benchmarks (Beeching et al., 2023; Liang et al., 2023; Srivastava et al., 2023).

Data contamination.

Data contamination or test-set contamination refers to any overlap between the training and the test data such that test results overestimate a model’s generalization performance. The scale and often little curation of present-day pretraining corpora exacerbates data contamination concerns in language model evaluations (Jiang et al., 2024). Consequently, data contamination is usually discussed in the technical reports accompanying model releases (Radford et al., 2019; Brown et al., 2020; Chowdhery et al., 2023; Touvron et al., 2023b). However, detecting and preventing data contamination is currently an open problem (Gunasekar et al., 2023; Yang et al., 2023b; Golchin and Surdeanu, 2023). Roberts et al. (2023) and Li and Flanigan (2024) find that models often perform better on datasets that were publicly available during model training. While almost all models that we consider were released after MMLU and GSM8K, we nonetheless find that, controlling for compute, more recent models perform better. These performance gains are unlikely to be driven solely by test set leakage and require additional explanation.

Training on the test task.

The effectiveness of fine-tuning on the training set accompanying LLM benchmarks is well-known (Wei et al., 2021; Wang et al., 2022; Chung et al., 2024). Consequently, many influential instruction-tuning datasets contain or are partly derived from benchmark train data (Wei et al., 2021; Honovich et al., 2022; Mukherjee et al., 2023). Li and Flanigan (2024) identify small amounts of benchmark-specific data in the publicly available Alpaca (Taori et al., 2023) and Vicuna (Chiang et al., 2023) instruction-tuning sets. Zhou et al. (2023b) empirically analyze the effects of fine-tuning on benchmark-specific data and warn about its impacts on benchmark validity. To circumvent these issues, recent work has focused on indirect indicators of broader data contamination, such as a lack of robustness to task transformations (Wu et al., 2023), or underperformance on benchmarks with novel task combinations (Yu et al., 2023a). In contrast, we find evidence for training on the test task without the need for explicitly identifying specific data points used at training time, or modifying tasks. In addition, our method allows us to quantify and correct for the effects of training on the test task on benchmark performance.

Emergent abilities of language models.

Emergent capabilities (Wei et al., 2022; Ganguli et al., 2022) refer to levels of model performance at large scales that cannot be easily predicted by extrapolating from smaller scales. Wei et al. (2022) report emergent capabilities for various benchmarks including MMLU and GSM8K (Srivastava et al., 2022). However, Srivastava et al. (2022); Schaeffer et al. (2024b) find that the log-probability of the correct answer often improves smoothly, even when other metrics seem to show emergence. Lu et al. (2023) argue that most emergent capabilities can be explained by in-context-learning. Schaeffer et al. (2024a) argue that emergent capabilities are mostly an artifact of non-linear and discontinuous evaluation metrics like accuracy. In contrast, we find signs of emergence on tasks like MMLU, even when using continuous metrics like the Brier score. We additionally show that fine-tuning on the test task yields more predictive scaling by shifting the point of emergence to substantially smaller compute scales.

7 Discussion

The 1968 Olympics took place in Mexico City at the significant altitude of 2340 meters, higher than Australia’s tallest peak. Runners who had trained at altitude in their home countries were better prepared to compete in Mexico City’s conditions, as it turned out. But the hotly debated results of the Games did not lead the organizers to prohibit training at natural altitude. Instead, they let everyone do it; and athletes came to consider altitude training an excellent way to train.

The anecdote holds a lesson for the evaluation of large language models half a century later. Knowledge about the evaluation conditions necessarily influences training practices under competitive pressure. It may be a fool’s errand to prohibit the practice. Instead, we propose to adjust for it by giving every model the same task-specific preparation before evaluation. We work from the assumption that training on the test task, in general, cannot be effectively detected, disallowed, or disincentivized. Detecting what training data a model has seen is a notoriously difficult problem—existing heuristics achieve partial success at best. Researchers routinely acknowledge the futility of fighting data contamination. Moreover, we anticipate that the ways to effectively train on the test task will only grow in scope and adoption.

Our work demonstrates that comparisons of different models are confounded by the choice of training data and training practices. Different model families vary in the degree that they were—implicitly or explicitly—trained on various test tasks. It therefore makes little sense to compare model performance at face value without accounting for how the training data relate to the test task. The same problem extends to scaling. Smaller models can appear unexpectedly performant if they were trained to a greater extent on task data.

We can apply the same principles to emergent behavior. After training on the test task, model capabilities become predictable at smaller model size and grow continuously with scale. This is not to say that emergence isn’t real; it may well be a real phenomenon for a fixed choice of dataset and evaluation metric. But training on the test task removes the unpredictability and discontinuity associated with emergence, notably without any change in the metric, thus largely disarming the ominous nature of emergence.

Despite the daunting challenges that training on the test task poses for the fair evaluation of language models, it’s also its own best remedy. Giving each model the same sufficient task-specific fine-tuning harmonizes model comparisons, deconfounds scaling laws, and linearizes the relationship between model capabilities and log-scale. We hope that our work informs stronger evaluation standards that address central challenges in the current evaluation ecosystem. Our proposal has the added side benefit of creating incentives for model builders to create models that can be fine-tuned easily and respond well to fine-tuning.

References

  • Achiam et al. (2023) Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
  • Albalak et al. (2024) Alon Albalak, Yanai Elazar, Sang Michael Xie, Shayne Longpre, Nathan Lambert, Xinyi Wang, Niklas Muennighoff, Bairu Hou, Liangming Pan, Haewon Jeong, et al. A survey on data selection for language models. arXiv preprint arXiv:2402.16827, 2024.
  • Almazrouei et al. (2023) Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. The falcon series of open language models. arXiv preprint arXiv:2311.16867, 2023.
  • Anthropic (2024) AI Anthropic. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card, 2024.
  • Bai et al. (2023) Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. Qwen technical report. arXiv preprint arXiv:2309.16609, 2023.
  • Beeching et al. (2023) Edward Beeching, Clémentine Fourrier, Nathan Habib, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, and Thomas Wolf. Open LLM leaderboard. Hugging Face, 2023. URL https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard.
  • Bellagente et al. (2024) Marco Bellagente, Jonathan Tow, Dakota Mahan, Duy Phung, Maksym Zhuravinskyi, Reshinth Adithyan, James Baicoianu, Ben Brooks, Nathan Cooper, Ashish Datta, et al. Stable lm 2 1.6 b technical report. arXiv preprint arXiv:2402.17834, 2024.
  • Biderman et al. (2023) Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, pages 2397–2430. PMLR, 2023.
  • Brown et al. (2020) Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.
  • Cai et al. (2024) Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. Internlm2 technical report. arXiv preprint arXiv:2403.17297, 2024.
  • Chiang et al. (2023) Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. See https://vicuna. lmsys. org (accessed 14 April 2023), 2(3):6, 2023.
  • Chowdhery et al. (2023) Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. Palm: Scaling language modeling with pathways. Journal of Machine Learning Research, 24(240):1–113, 2023.
  • Chung et al. (2024) Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, et al. Scaling instruction-finetuned language models. Journal of Machine Learning Research, 25(70):1–53, 2024.
  • Clark et al. (2018) Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.
  • Cobbe et al. (2021) Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
  • Deng et al. (2009) Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009. doi: 10.1109/CVPR.2009.5206848.
  • Dominguez-Olmedo et al. (2023) Ricardo Dominguez-Olmedo, Moritz Hardt, and Celestine Mendler-Dünner. Questioning the survey responses of large language models. arXiv preprint arXiv:2306.07951, 2023.
  • Dominguez-Olmedo et al. (2024) Ricardo Dominguez-Olmedo, Nanda Vendant, Rediet Abebe, Stefan Bechtold, Christoph Engel, Jens Frankenreiter, Krishna Gummadi, Moritz Hardt, and Michael Livermore. Lawma: The power of specialization for legal tasks. 2024.
  • Duda and Hart (1973) Richard O. Duda and Peter E. Hart. Pattern Classification and Scene Analysis. Wiley New York, 1973.
  • EleutherAI (2024) EleutherAI. Language model evaluation harness. https://github.com/EleutherAI/lm-evaluation-harness, 2024. Accessed: 2024-05-20.
  • Fourrier et al. (2024a) Clémentine Fourrier, Nathan Habib, Alina Lozovskaya, Konrad Szafer, and Thomas Wolf. Open llm leaderboard v2. https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard, 2024a. Accessed: 2024-07-08.
  • Fourrier et al. (2024b) Clémentine Fourrier, Nathan Habib, Alina Lozovskaya, Konrad Szafer, and Thomas Wolf. Performances are plateauing, let’s make the leaderboard steep again. https://huggingface.co/spaces/open-llm-leaderboard/blog, 2024b. Accessed: 2024-07-08.
  • Gan et al. (2023) Ruyi Gan, Ziwei Wu, Renliang Sun, Junyu Lu, Xiaojun Wu, Dixiang Zhang, Kunhao Pan, Ping Yang, Qi Yang, Jiaxing Zhang, et al. Ziya2: Data-centric learning is all llms need. arXiv preprint arXiv:2311.03301, 2023.
  • Ganguli et al. (2022) Deep Ganguli, Danny Hernandez, Liane Lovitt, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova Dassarma, Dawn Drain, Nelson Elhage, et al. Predictability and surprise in large generative models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1747–1764, 2022.
  • Gao et al. (2020) Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, and Connor Leahy. The Pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020.
  • Garofolo et al. (1993) John S Garofolo, Lori F Lamel, William M Fisher, Jonathan G Fiscus, and David S Pallett. Darpa timit acoustic-phonetic continous speech corpus cd-rom. nist speech disc 1-1.1. NASA STI/Recon technical report n, 93:27403, 1993.
  • Gemini et al. (2023) Team Gemini, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
  • Gemma et al. (2024) Team Gemma, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295, 2024.
  • Golchin and Surdeanu (2023) Shahriar Golchin and Mihai Surdeanu. Time travel in LLMs: Tracing data contamination in large language models. arXiv preprint arXiv:2308.08493, 2023.
  • Groeneveld et al. (2024) Dirk Groeneveld, Iz Beltagy, Pete Walsh, Akshita Bhagia, Rodney Kinney, Oyvind Tafjord, Ananya Harsh Jha, Hamish Ivison, Ian Magnusson, Yizhong Wang, Shane Arora, David Atkinson, Russell Authur, Khyathi Chandu, Arman Cohan, Jennifer Dumas, Yanai Elazar, Yuling Gu, Jack Hessel, Tushar Khot, William Merrill, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Valentina Pyatkin, Abhilasha Ravichander, Dustin Schwenk, Saurabh Shah, Will Smith, Nishant Subramani, Mitchell Wortsman, Pradeep Dasigi, Nathan Lambert, Kyle Richardson, Jesse Dodge, Kyle Lo, Luca Soldaini, Noah A. Smith, and Hannaneh Hajishirzi. Olmo: Accelerating the science of language models. Preprint, 2024.
  • Gunasekar et al. (2023) Suriya Gunasekar, Yi Zhang, Jyoti Aneja, Caio César Teodoro Mendes, Allie Del Giorno, Sivakanth Gopi, Mojan Javaheripi, Piero Kauffmann, Gustavo de Rosa, Olli Saarikivi, et al. Textbooks are all you need. arXiv preprint arXiv:2306.11644, 2023.
  • Hardt and Recht (2022) Moritz Hardt and Benjamin Recht. Patterns, predictions, and actions: Foundations of machine learning. Princeton University Press, 2022.
  • Hastie et al. (2017) Trevor Hastie, Robert Tibshirani, and Jerome Friedman. The Elements of Statistical Learning: Data Mining, Inference, and Prediction (Corrected 12th printing). Springer, 2017.
  • Hendrycks et al. (2020) Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations, 2020.
  • Hendrycks et al. (2021) Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2021.
  • Hoffmann et al. (2022) Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022.
  • Honovich et al. (2022) Or Honovich, Thomas Scialom, Omer Levy, and Timo Schick. Unnatural instructions: Tuning language models with (almost) no human labor. arXiv preprint arXiv:2212.09689, 2022.
  • InternLM (2023) Team InternLM. Internlm: A multilingual language model with progressively enhanced capabilities, 2023.
  • Jiang et al. (2024) Minhao Jiang, Ken Liu, Ming Zhong, Rylan Schaeffer, Siru Ouyang, Jiawei Han, and Sanmi Koyejo. Does data contamination make a difference? insights from intentionally contaminating pre-training data for language models. In ICLR 2024 Workshop on Navigating and Addressing Data Problems for Foundation Models, 2024.
  • Kaplan et al. (2020) Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
  • Kapoor and Narayanan (2022) Sayash Kapoor and Arvind Narayanan. Leakage and the reproducibility crisis in ml-based science, 2022.
  • Kenton and Toutanova (2019) Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL-HLT, pages 4171–4186, 2019.
  • Koehn (2005) Philipp Koehn. Europarl: A parallel corpus for statistical machine translation. In The Tenth Machine Translation Summit Proceedings of Conference, pages 79–86. International Association for Machine Translation, 2005.
  • LeCun et al. (1998) Yann LeCun, Corinna Cortes, and CJ Burges. Mnist handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2, 1998.
  • Lewis (2024) Mike Lewis. Invited talk: Bridging the gap between pre-training data and alignment. ICLR Workshop on Navigating and Addressing Data Problems for Foundation Models (DPFM), 2024. URL https://iclr.cc/virtual/2024/workshop/20585.
  • Li and Flanigan (2024) Changmao Li and Jeffrey Flanigan. Task contamination: Language models may not be few-shot anymore. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 18471–18480, 2024.
  • Li et al. (2024) Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794, 2024.
  • Liang et al. (2023) Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. Holistic evaluation of language models. Transactions on Machine Learning Research, 2023.
  • Loshchilov and Hutter (2018) Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2018.
  • Lu et al. (2023) Sheng Lu, Irina Bigoulaeva, Rachneet Sachdeva, Harish Tayyar Madabushi, and Iryna Gurevych. Are emergent abilities in large language models just in-context learning? arXiv preprint arXiv:2309.01809, 2023.
  • MetaAI (2024) MetaAI. Llama 3: Advancing open foundation models, 2024. URL https://ai.meta.com/blog/meta-llama-3/.
  • Mitra et al. (2024) Arindam Mitra, Hamed Khanpour, Corby Rosset, and Ahmed Awadallah. Orca-math: Unlocking the potential of slms in grade school math. arXiv preprint arXiv:2402.14830, 2024.
  • Mukherjee et al. (2023) Subhabrata Mukherjee, Arindam Mitra, Ganesh Jawahar, Sahaj Agarwal, Hamid Palangi, and Ahmed Awadallah. Orca: Progressive learning from complex explanation traces of gpt-4. arXiv preprint arXiv:2306.02707, 2023.
  • OpenLlama (2023) OpenLlama. Openllama, 2023. URL https://github.com/openlm-research/open_llama.
  • Pearl (2009) Judea Pearl. Causality. Cambridge university press, 2009.
  • Pearl (2013) Judea Pearl. Linear models: A useful “microscope” for causal analysis. Journal of Causal Inference, 1(1):155–170, 2013.
  • Penedo et al. (2024) Guilherme Penedo, Hynek Kydlíček, Leandro von Werra, and Thomas Wolf. Fineweb, 2024. URL https://huggingface.co/datasets/HuggingFaceFW/fineweb.
  • Peters et al. (2018) Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. NAACL, 2018.
  • Radford et al. (2019) Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
  • Raffel et al. (2020) Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1–67, 2020.
  • Rajbhandari et al. (2020) Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. Zero: Memory optimizations toward training trillion parameter models. In SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, pages 1–16. IEEE, 2020.
  • Rein et al. (2023) David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.
  • Roberts et al. (2023) Manley Roberts, Himanshu Thakur, Christine Herlihy, Colin White, and Samuel Dooley. Data contamination through the lens of time. arXiv preprint arXiv:2310.10628, 2023.
  • Sang and De Meulder (2003) Erik F Tjong Kim Sang and Fien De Meulder. Introduction to the conll-2003 shared task: Language-independent named entity recognition. Development, 922:1341, 2003.
  • Schaeffer et al. (2024a) Rylan Schaeffer, Brando Miranda, and Sanmi Koyejo. Are emergent abilities of large language models a mirage? Advances in Neural Information Processing Systems, 36, 2024a.
  • Schaeffer et al. (2024b) Rylan Schaeffer, Hailey Schoelkopf, Brando Miranda, Gabriel Mukobi, Varun Madan, Adam Ibrahim, Herbie Bradley, Stella Biderman, and Sanmi Koyejo. Why has predicting downstream capabilities of frontier ai models with scale remained elusive? arXiv preprint arXiv:2406.04391, 2024b.
  • Sprague et al. (2023) Zayne Rea Sprague, Xi Ye, Kaj Bostrom, Swarat Chaudhuri, and Greg Durrett. Musr: Testing the limits of chain-of-thought with multistep soft reasoning. In The Twelfth International Conference on Learning Representations, 2023.
  • Srivastava et al. (2022) Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022.
  • Srivastava et al. (2023) Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adri Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. Transactions on machine learning research, 2023.
  • StabilityAI (2023) StabilityAI. Stablelm, 2023. URL https://github.com/Stability-AI/StableLM.
  • Storks et al. (2019) Shane Storks, Qiaozi Gao, and Joyce Y Chai. Recent advances in natural language inference: A survey of benchmarks, resources, and approaches. arXiv preprint arXiv:1904.01172, 2019.
  • Suzgun et al. (2023) Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc Le, Ed Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051, 2023.
  • Taori et al. (2023) Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B Hashimoto. Stanford alpaca: An instruction-following llama model, 2023.
  • TogetherWeCompute (2023) TogetherWeCompute. Redpajama incite, 2023. URL https://www.together.ai/blog/redpajama-models-v1.
  • Touvron et al. (2023a) Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023a.
  • Touvron et al. (2023b) Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023b.
  • Wang et al. (2018) Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353–355, 2018.
  • Wang and Komatsuzaki (2021) Ben Wang and Aran Komatsuzaki. GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model. https://github.com/kingoflolz/mesh-transformer-jax, May 2021.
  • Wang et al. (2022) Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Atharva Naik, Arjun Ashok, Arut Selvan Dhanasekaran, Anjana Arunkumar, David Stap, et al. Super-naturalinstructions: Generalization via declarative instructions on 1600+ nlp tasks. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 5085–5109, 2022.
  • Wang et al. (2024) Yubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming Ren, Aaran Arulraj, Xuan He, Ziyan Jiang, et al. Mmlu-pro: A more robust and challenging multi-task language understanding benchmark. arXiv preprint arXiv:2406.01574, 2024.
  • Wei et al. (2021) Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations, 2021.
  • Wei et al. (2022) Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. arXiv preprint arXiv:2206.07682, 2022.
  • Wei et al. (2023) Tianwen Wei, Liang Zhao, Lichang Zhang, Bo Zhu, Lijie Wang, Haihua Yang, Biye Li, Cheng Cheng, Weiwei Lü, Rui Hu, et al. Skywork: A more open bilingual foundation model. arXiv preprint arXiv:2310.19341, 2023.
  • Wu et al. (2023) Zhaofeng Wu, Linlu Qiu, Alexis Ross, Ekin Akyürek, Boyuan Chen, Bailin Wang, Najoung Kim, Jacob Andreas, and Yoon Kim. Reasoning or reciting? exploring the capabilities and limitations of language models through counterfactual tasks. arXiv preprint arXiv:2307.02477, 2023.
  • Yang et al. (2023a) Aiyuan Yang, Bin Xiao, Bingning Wang, Borong Zhang, Ce Bian, Chao Yin, Chenxu Lv, Da Pan, Dian Wang, Dong Yan, et al. Baichuan 2: Open large-scale language models. arXiv preprint arXiv:2309.10305, 2023a.
  • Yang et al. (2023b) Shuo Yang, Wei-Lin Chiang, Lianmin Zheng, Joseph E. Gonzalez, and Ion Stoica. Rethinking benchmark and contamination for language models with rephrased samples, 2023b.
  • Young et al. (2024) Alex Young, Bei Chen, Chao Li, Chengen Huang, Ge Zhang, Guanwei Zhang, Heng Li, Jiangcheng Zhu, Jianqun Chen, Jing Chang, et al. Yi: Open foundation models by 01. ai. arXiv preprint arXiv:2403.04652, 2024.
  • Yu et al. (2023a) Dingli Yu, Simran Kaur, Arushi Gupta, Jonah Brown-Cohen, Anirudh Goyal, and Sanjeev Arora. Skill-mix: A flexible and expandable family of evaluations for ai models. arXiv preprint arXiv:2310.17567, 2023a.
  • Yu et al. (2023b) Longhui Yu, Weisen Jiang, Han Shi, YU Jincheng, Zhengying Liu, Yu Zhang, James Kwok, Zhenguo Li, Adrian Weller, and Weiyang Liu. Metamath: Bootstrap your own mathematical questions for large language models. In The Twelfth International Conference on Learning Representations, 2023b.
  • Zellers et al. (2019) Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, 2019.
  • Zeng et al. (2022) Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, et al. Glm-130b: An open bilingual pre-trained model. arXiv preprint arXiv:2210.02414, 2022.
  • Zhang et al. (2024) Ge Zhang, Scott Qu, Jiaheng Liu, Chenchen Zhang, Chenghua Lin, Chou Leuang Yu, Danny Pan, Esther Cheng, Jie Liu, Qunshu Lin, Raven Yuan, Tuney Zheng, Wei Pang, Xinrun Du, Yiming Liang, Yinghao Ma, Yizhi Li, Ziyang Ma, Bill Lin, Emmanouil Benetos, Huan Yang, Junting Zhou, Kaijing Ma, Minghao Liu, Morry Niu, Noah Wang, Quehry Que, Ruibo Liu, Sine Liu, Shawn Guo, Soren Gao, Wangchunshu Zhou, Xinyue Zhang, Yizhi Zhou, Yubo Wang, Yuelin Bai, Yuhan Zhang, Yuxiang Zhang, Zenith Wang, Zhenzhu Yang, Zijian Zhao, Jiajun Zhang, Wanli Ouyang, Wenhao Huang, and Wenhu Chen. Map-neo: Highly capable and transparent bilingual large language model series. arXiv preprint arXiv: 2405.19327, 2024.
  • Zhou et al. (2023a) Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023a.
  • Zhou et al. (2023b) Kun Zhou, Yutao Zhu, Zhipeng Chen, Wentong Chen, Wayne Xin Zhao, Xu Chen, Yankai Lin, Ji-Rong Wen, and Jiawei Han. Don’t make your LLM an evaluation benchmark cheater. arXiv preprint arXiv:2311.01964, 2023b.

Appendix A Additional experimental details

A.1 Models considered

Model size in billions of parameters is indicated by N𝑁Nitalic_N and pretraining data size in trillions of tokens is indicated by D𝐷Ditalic_D. Model weights were retrieved from the corresponding HuggingFace (HF) repositories.

Name Train date 𝐍𝐍\mathbf{N}bold_N 𝐃𝐃\mathbf{D}bold_D HF repository Citation
baichuan-13b 2023-06 13 1.4 baichuan-inc/Baichuan-13B-Base Yang et al. (2023a)
baichuan-7b 2023-06 7 1.2 baichuan-inc/Baichuan2-7B-Base Yang et al. (2023a)
baichuan2-13b 2023-09 13 2.6 baichuan-inc/Baichuan2-13B-Base Yang et al. (2023a)
baichuan2-7b 2023-09 7 2.6 baichuan-inc/Baichuan2-7B-Base Yang et al. (2023a)
falcon-11b 2024-05 11 5.0 tiiuae/falcon-11B Almazrouei et al. (2023)
falcon-7b 2023-04 7 1.5 tiiuae/falcon-7b Almazrouei et al. (2023)
gemma-2b 2024-02 2 2.0 google/gemma-2b Gemma et al. (2024)
gemma-7b 2024-02 7 6.0 google/gemma-7b Gemma et al. (2024)
gpt-j-6b 2021-03 6 0.4 EleutherAI/gpt-j-6b Wang and Komatsuzaki (2021)
internlm-20b 2023-09 20 2.3 internlm/internlm-20b InternLM (2023)
internlm-7b 2023-07 7 1.0 internlm/internlm-7b InternLM (2023)
internlm2-base-20b 2024-01 20 2.6 internlm/internlm2-base-20b Cai et al. (2024)
internlm2-base-7b 2024-01 7 2.6 internlm/internlm2-base-7b Cai et al. (2024)
llama-13b 2023-02 13 1.0 None Touvron et al. (2023a)
llama-2-13b 2023-07 13 2.0 meta-llama/Llama-2-13b-hf Touvron et al. (2023b)
llama-2-70b 2023-07 70 2.0 meta-llama/Llama-2-70b-hf Touvron et al. (2023b)
llama-2-7b 2023-07 7 2.0 meta-llama/Llama-2-7b-hf Touvron et al. (2023b)
llama-3-8b 2024-04 8 15.0 meta-llama/Meta-Llama-3-8B MetaAI (2024)
llama-30b 2023-02 32.5 1.4 None Touvron et al. (2023a)
llama-65b 2023-02 65.2 1.4 None Touvron et al. (2023a)
llama-7b 2023-02 7 1.0 None Touvron et al. (2023a)
map-neo-7b 2024-05 7 4.5 m-a-p/neo_7b Zhang et al. (2024)
olmo-1.7-7b 2024-04 7 2.05 allenai/OLMo-1.7-7B-hf Groeneveld et al. (2024)
olmo-1b 2024-01 1 2.0 allenai/OLMo-1B-hf Groeneveld et al. (2024)
olmo-7b 2024-01 7 2.46 allenai/OLMo-7B-hf Groeneveld et al. (2024)
openllama-13b 2023-06 13 1.0 openlm-research/open_llama_13b OpenLlama (2023)
openllama-3b 2023-06 3 1.0 openlm-research/open_llama_3b OpenLlama (2023)
openllama-3b-v2 2023-07 3 1.0 openlm-research/open_llama_3b_v2 OpenLlama (2023)
openllama-7b 2023-06 7 1.0 openlm-research/open_llama_7b OpenLlama (2023)
openllama-7b-v2 2023-07 7 1.0 openlm-research/open_llama_7b_v2 OpenLlama (2023)
pythia-1.4b 2023-02 1.4 0.3 EleutherAI/pythia-1.4b Biderman et al. (2023)
pythia-12b 2023-02 12 0.3 EleutherAI/pythia-12b Biderman et al. (2023)
pythia-160m 2023-02 0.16 0.3 EleutherAI/pythia-160m Biderman et al. (2023)
pythia-1b 2023-02 1 0.3 EleutherAI/pythia-1b Biderman et al. (2023)
pythia-2.8b 2023-02 2.8 0.3 EleutherAI/pythia-2.8b Biderman et al. (2023)
pythia-410m 2023-02 0.41 0.3 EleutherAI/pythia-410m Biderman et al. (2023)
pythia-6.9b 2023-02 6.9 0.3 EleutherAI/pythia-6.9b Biderman et al. (2023)
pythia-70m 2023-02 0.07 0.3 EleutherAI/pythia-70m Biderman et al. (2023)
qwen-1.5-0.5b 2024-01 0.5 2.4 Qwen/Qwen1.5-0.5B Bai et al. (2023)
qwen-1.5-1.8b 2024-01 1.8 2.4 Qwen/Qwen1.5-1.8B Bai et al. (2023)
qwen-1.5-14b 2024-01 14 4.0 Qwen/Qwen1.5-14B Bai et al. (2023)
qwen-1.5-4b 2024-01 4 2.4 Qwen/Qwen1.5-4B Bai et al. (2023)
qwen-1.5-7b 2024-01 7 4.0 Qwen/Qwen1.5-7B Bai et al. (2023)
redpajama-3b 2023-05 3 0.8 togethercomputer/RedPajama-INCITE-Base-3B-v1 TogetherWeCompute (2023)
redpajama-7b 2023-05 7 1.0 togethercomputer/RedPajama-INCITE-7B-Base TogetherWeCompute (2023)
skywork-13b 2023-10 13 3.2 Skywork/Skywork-13B-base Wei et al. (2023)
stablelm-2-1.6b 2024-01 1.6 2.0 stabilityai/stablelm-2-1_6b Bellagente et al. (2024)
stablelm-2-12b 2024-03 12.1 2.0 stabilityai/stablelm-2-12b Bellagente et al. (2024)
stablelm-3b-4e1t 2023-09 2.8 4.0 stabilityai/stablelm-3b-4e1t StabilityAI (2023)
stablelm-base-alpha-3b-v2 2023-08 2.8 1.1 stabilityai/stablelm-base-alpha-3b-v2 StabilityAI (2023)
stablelm-base-alpha-7b-v2 2023-08 7 1.1 stabilityai/stablelm-base-alpha-7b-v2 StabilityAI (2023)
yi-6b 2023-11 6 3.0 01-ai/Yi-1.5-6B Young et al. (2024)
ziya2-13b-base 2023-11 13 2.65 IDEA-CCNL/Ziya2-13B-Base Gan et al. (2023)

A.2 Fine-tuning hyperparameters

We fine-tune all model parameters. For models with less than 10101010B parameters, we fine-tune on a single GPU with BF16 precision. For models between 10101010B and 30303030B parameters, we train on a single H100 node using DeepSpeed ZeRO-3 (Rajbhandari et al., 2020) and full precision. For models with more than 30303030B parameters, we train on two H100 nodes using DeepSpeed ZeRO-3 and full precision. Due to the large compute cost of the experiments, we perform minimal hyperparameter tuning and use standard hyperparameter choices throughout. We use a learning rate of 21052superscript1052\cdot 10^{-5}2 ⋅ 10 start_POSTSUPERSCRIPT - 5 end_POSTSUPERSCRIPT for models with fewer than 10101010B parameters and a learning rate of 21062superscript1062\cdot 10^{-6}2 ⋅ 10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT for models with more than 10101010B parameters. For four of the 7777B models –Gemma 7B, Olmo 7B, Olmo 1.7 7B, and Llama 3 8B– benchmark accuracy heavily degraded after fine-tuning. For these models, we use a peak learning rate of 21062superscript1062\cdot 10^{-6}2 ⋅ 10 start_POSTSUPERSCRIPT - 6 end_POSTSUPERSCRIPT instead. These four models were all released after November 2023. We use a cosine learning rate schedule with linear warm-up for 50 steps and decay to 10%percent1010\%10 % of the peak learning rate. We use AdamW (Loshchilov and Hutter, 2018) as the optimizer, with β1=0.9subscript𝛽10.9\beta_{1}=0.9italic_β start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = 0.9, β2=0.95subscript𝛽20.95\beta_{2}=0.95italic_β start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 0.95, and ϵ=108italic-ϵsuperscript108\epsilon=10^{-8}italic_ϵ = 10 start_POSTSUPERSCRIPT - 8 end_POSTSUPERSCRIPT. We fine-tune with batch size 64. We use a weight decay rate of 0.1 and clip gradients at 1.0. We verify that the training loss decreases for all models on both of the fine-tuning datasets. To reduce the computation burden of fine-tuning, we train with context size 600. We verify that less than 5% of the fine-tuning examples have context length above 600.

We use an internal cluster of A100 and H100 GPUs. Fine-tuning all models required approximately 10,000 H100 GPU hours, whereas evaluating all models in the different benchmarks required approximately 400 H100 GPU hours.

Appendix B Causal interpretation of our findings

In Section 2.2 we demonstrated that models trained after November 2023 significantly outperform those trained before November 2023 for both MMLU and GSM8K. We now seek to determine how much of the benchmark improvements of newer models is attributable to newer models training more on the test task. That is, the extent to which the effect of model recency N𝑁Nitalic_N on benchmark accuracy A𝐴Aitalic_A is mediated by training on the test task T𝑇Titalic_T. The key obstacle to our analysis is that test task training T𝑇Titalic_T is unobservable. Firstly, because practitioners are typically not transparent about their designs choices (e.g., pretraining data). Secondly, because the extent to which different training practices might amount to test task training is unclear. However, we are able to intervene on T𝑇Titalic_T by fine-tuning on the test task.

AC𝐶Citalic_CN𝑁Nitalic_NT𝑇Titalic_T
Figure 10: Whether a model was trained after November 2023 (N𝑁Nitalic_N) influences its pretraining compute (C𝐶Citalic_C) and how much it trains on the test task (T𝑇Titalic_T). All three influence the benchmark accuracy (A𝐴Aitalic_A) of the model.

Figure 10 summarizes our causal assumption. The time at which a model was trained determines the design choices made, such as its pretraining data or pretraining compute C𝐶Citalic_C. These design choices in turn affect how much the model trains on the test task. All these factors ultimately influence the pretrained model and thus its benchmark performance. We assume that test task training does not causally influence pretraining compute, but compute might influence test task training. For instance, training on larger datasets may lead to training more on the test task.

We intervene on test task training T𝑇Titalic_T by fine-tuning all models on the same, sufficient amount of task-specific data before evaluation. That is, we apply the adjustment proposed in Section 2.1. The external validity of our analysis hinges on the assumption that our experimental setting –fine-tuning models after the pretraining stage– is reasonably similar to the natural settings in which practitioners might train on the test task during pretraining (e.g., by including instruction data in the pretraining data mixture). We provide evidence in Appendix B.2 that this is the case.

We model fine-tuning as a hard intervention do(T=t)do𝑇𝑡\textrm{do}(T=t)do ( italic_T = italic_t ) (Pearl, 2009). The specific magnitude of the intervention t𝑡titalic_t need not be quantified. Instead, the key assumption is that by fine-tuning on the same, sufficient amount of task data, all models will have received the same amount of test task training. Since some base models may have already trained on the test task prior to fine-tuning, our assumption will only hold if test task training saturates and we train on enough task data to reach saturation. We find evidence of saturation for both MMLU and GSM8K, see Appendix B.3.

We draw inspiration from scaling laws (Kaplan et al., 2020) and model relationship between pretraining compute and its causal descendants as pice-wise log-linear:

f(C,α)=α0+i=1|α|αilogC[C>ci]𝑓𝐶𝛼subscript𝛼0superscriptsubscript𝑖1𝛼subscript𝛼𝑖𝐶delimited-[]𝐶subscript𝑐𝑖f(C,\alpha)=\alpha_{0}+\sum_{i=1}^{|\alpha|}\alpha_{i}\log C\cdot[C>c_{i}]italic_f ( italic_C , italic_α ) = italic_α start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT + ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT | italic_α | end_POSTSUPERSCRIPT italic_α start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT roman_log italic_C ⋅ [ italic_C > italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ] (2)

For simplicity, we consider three fixed knots at c1=0subscript𝑐10c_{1}=0italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = 0, c2=1022subscript𝑐2superscript1022c_{2}=10^{22}italic_c start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT, and c3=1023subscript𝑐3superscript1023c_{3}=10^{23}italic_c start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT = 10 start_POSTSUPERSCRIPT 23 end_POSTSUPERSCRIPT FLOPs. We assume all other variable relationships to be linear, resulting in the structural assignments:

T𝑇\displaystyle Titalic_T :=f(C,β)+ϕN+δ,δ𝒩(0,σδ2)formulae-sequenceassignabsent𝑓𝐶𝛽italic-ϕ𝑁𝛿similar-to𝛿𝒩0subscriptsuperscript𝜎2𝛿\displaystyle:=f(C,\beta)+\phi N+\delta,\quad\delta\sim\mathcal{N}(0,\sigma^{2% }_{\delta}):= italic_f ( italic_C , italic_β ) + italic_ϕ italic_N + italic_δ , italic_δ ∼ caligraphic_N ( 0 , italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_δ end_POSTSUBSCRIPT ) (3)
A𝐴\displaystyle Aitalic_A :=f(C,α)+ψN+γT+η+ϵ,ϵ𝒩(0,σϵ2)formulae-sequenceassignabsent𝑓𝐶𝛼𝜓𝑁𝛾𝑇𝜂italic-ϵsimilar-toitalic-ϵ𝒩0subscriptsuperscript𝜎2italic-ϵ\displaystyle:=f(C,\alpha)+\psi N+\gamma T+\eta+\epsilon,\quad\epsilon\sim% \mathcal{N}(0,\sigma^{2}_{\epsilon}):= italic_f ( italic_C , italic_α ) + italic_ψ italic_N + italic_γ italic_T + italic_η + italic_ϵ , italic_ϵ ∼ caligraphic_N ( 0 , italic_σ start_POSTSUPERSCRIPT 2 end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_ϵ end_POSTSUBSCRIPT ) (4)

We denote benchmark accuracy after fine-tuning as A|do(T=t)evaluated-at𝐴do𝑇𝑡A|_{\textrm{do}(T=t)}italic_A | start_POSTSUBSCRIPT do ( italic_T = italic_t ) end_POSTSUBSCRIPT. To estimate the direct effect NA𝑁𝐴N\rightarrow Aitalic_N → italic_A of model recency on accuracy, we regress the linear model

A|do(T=t)evaluated-at𝐴do𝑇𝑡\displaystyle A|_{\textrm{do}(T=t)}italic_A | start_POSTSUBSCRIPT do ( italic_T = italic_t ) end_POSTSUBSCRIPT =f(C,α)+ψN+γt+η+ϵabsent𝑓𝐶𝛼𝜓𝑁𝛾𝑡𝜂italic-ϵ\displaystyle=f(C,\alpha)+\psi N+\gamma t+\eta+\epsilon= italic_f ( italic_C , italic_α ) + italic_ψ italic_N + italic_γ italic_t + italic_η + italic_ϵ
=f(C,α)+ψN+η+ϵ,η=η+γtformulae-sequenceabsent𝑓𝐶𝛼𝜓𝑁superscript𝜂italic-ϵsuperscript𝜂𝜂𝛾𝑡\displaystyle=f(C,\alpha)+\psi N+\eta^{\prime}+\epsilon,\quad\eta^{\prime}=% \eta+\gamma t= italic_f ( italic_C , italic_α ) + italic_ψ italic_N + italic_η start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT + italic_ϵ , italic_η start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = italic_η + italic_γ italic_t (5)

where α,ψ,η𝛼𝜓superscript𝜂\alpha,\psi,\eta^{\prime}italic_α , italic_ψ , italic_η start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT are the fit’s parameters and ϵitalic-ϵ\epsilonitalic_ϵ is random noise. The coefficient ψ𝜓\psiitalic_ψ corresponds to the direct effect NA𝑁𝐴N\rightarrow Aitalic_N → italic_A of model recency on benchmark accuracy. We additionally regress on the difference in accuracy pre and post intervention

AA|do(T=t)𝐴evaluated-at𝐴do𝑇𝑡\displaystyle A-A|_{\textrm{do}(T=t)}italic_A - italic_A | start_POSTSUBSCRIPT do ( italic_T = italic_t ) end_POSTSUBSCRIPT =(f(C,α)+ψN+γT+η+ϵ1)(f(C,α)+ψN+γt+η+ϵ2)absent𝑓𝐶𝛼𝜓𝑁𝛾𝑇𝜂subscriptitalic-ϵ1𝑓𝐶𝛼𝜓𝑁𝛾𝑡𝜂subscriptitalic-ϵ2\displaystyle=\left(f(C,\alpha)+\psi N+\gamma T+\eta+\epsilon_{1}\right)-\left% (f(C,\alpha)+\psi N+\gamma t+\eta+\epsilon_{2}\right)= ( italic_f ( italic_C , italic_α ) + italic_ψ italic_N + italic_γ italic_T + italic_η + italic_ϵ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ) - ( italic_f ( italic_C , italic_α ) + italic_ψ italic_N + italic_γ italic_t + italic_η + italic_ϵ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT )
=γTγt+ϵ1ϵ2absent𝛾𝑇𝛾𝑡subscriptitalic-ϵ1subscriptitalic-ϵ2\displaystyle=\gamma T-\gamma t+\epsilon_{1}-\epsilon_{2}= italic_γ italic_T - italic_γ italic_t + italic_ϵ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT - italic_ϵ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT
=f(C,γβ)+γϕN+γδγt+ϵ1ϵ2absent𝑓𝐶𝛾𝛽𝛾italic-ϕ𝑁𝛾𝛿𝛾𝑡subscriptitalic-ϵ1subscriptitalic-ϵ2\displaystyle=f(C,\gamma\beta)+\gamma\phi N+\gamma\delta-\gamma t+\epsilon_{1}% -\epsilon_{2}= italic_f ( italic_C , italic_γ italic_β ) + italic_γ italic_ϕ italic_N + italic_γ italic_δ - italic_γ italic_t + italic_ϵ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT - italic_ϵ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT
=f(C,β)+ϕN+b+ϵ,for β=γβ,ϕ=γϕ,b=γt,ϵ=ϵ1ϵ2+γδformulae-sequenceabsent𝑓𝐶superscript𝛽superscriptitalic-ϕ𝑁𝑏superscriptitalic-ϵformulae-sequencefor superscript𝛽𝛾𝛽formulae-sequencesuperscriptitalic-ϕ𝛾italic-ϕformulae-sequence𝑏𝛾𝑡superscriptitalic-ϵsubscriptitalic-ϵ1subscriptitalic-ϵ2𝛾𝛿\displaystyle=f(C,\beta^{\prime})+\phi^{\prime}N+b+\epsilon^{\prime},\quad% \textrm{for }\beta^{\prime}=\gamma\beta,\phi^{\prime}=\gamma\phi,b=-\gamma t,% \epsilon^{\prime}=\epsilon_{1}-\epsilon_{2}+\gamma\delta= italic_f ( italic_C , italic_β start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) + italic_ϕ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT italic_N + italic_b + italic_ϵ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT , for italic_β start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = italic_γ italic_β , italic_ϕ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = italic_γ italic_ϕ , italic_b = - italic_γ italic_t , italic_ϵ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = italic_ϵ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT - italic_ϵ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT + italic_γ italic_δ (6)

where βsuperscript𝛽\beta^{\prime}italic_β start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT, ϕsuperscriptitalic-ϕ\phi^{\prime}italic_ϕ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT, b𝑏bitalic_b are the fit’s parameters and ϵsuperscriptitalic-ϵ\epsilon^{\prime}italic_ϵ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT is random noise. The coefficient ϕsuperscriptitalic-ϕ\phi^{\prime}italic_ϕ start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT corresponds to the indirect effect NTA𝑁𝑇𝐴N\rightarrow T\rightarrow Aitalic_N → italic_T → italic_A of model recency N𝑁Nitalic_N on benchmark accuracy A𝐴Aitalic_A mediated by test task training T𝑇Titalic_T (Pearl, 2013). That is, the improvements in accuracy of recent models attributable to training on the test task.

Table 2: We find no evidence of a significant direct effect of model recency N𝑁Nitalic_N on accuracy A𝐴Aitalic_A: the improvements of newer models are not attributable to anything else other than training on the test task.
*MMLU* *GSM8K*
ψ^^𝜓\widehat{\psi}over^ start_ARG italic_ψ end_ARG -0.004 0.000
(0.009) (0.032)
R2 0.926 0.763

Standard errors in parentheses. Bold indicates p<0.05𝑝0.05p<0.05italic_p < 0.05.

Table 3: The indirect effect NTA𝑁𝑇𝐴N\rightarrow T\rightarrow Aitalic_N → italic_T → italic_A mediated by test task training T𝑇Titalic_T is positive, significant, and large: newer models attain much higher benchmark scores because of training on the test task.
*MMLU* *GSM8K*
ϕ^^italic-ϕ\widehat{\phi}over^ start_ARG italic_ϕ end_ARG 0.071 0.168
(0.018) (0.032)
R2 0.530 0.503

Standard errors in parentheses. Bold indicates p<0.05𝑝0.05p<0.05italic_p < 0.05.

We fit the models in Equation 5 and Equation 6, and we report the coefficients pertaining to NA𝑁𝐴N\rightarrow Aitalic_N → italic_A and NTA𝑁𝑇𝐴N\rightarrow T\rightarrow Aitalic_N → italic_T → italic_A in Table 3 and Table 3, respectively. We find no evidence of a significant direct effect NA𝑁𝐴N\rightarrow Aitalic_N → italic_A of model recency on accuracy. On the other hand, its indirect effect NTA𝑁𝑇𝐴N\rightarrow T\rightarrow Aitalic_N → italic_T → italic_A mediated by test task training T𝑇Titalic_T is significant, positive, and large.

Therefore, our analysis indicates that the differences in MMLU and GSM8K performance between newer and older models observed in Section 2.1 are primarily attributable to differences in test task training. That is, the mechanism by which newer models outperform older models is by training more on the test task.

B.1 Robustness check on the temporal split: EN vs CN language data

Refer to caption
Figure 11: Models trained on both English (EN) and Chinese (CN) language data outperform those trained primarily on English data. After adjusting for test task training, we find no evidence of a significant difference θ𝜃\thetaitalic_θ in performance between models trained on EN data and EN+CN data.

Instead of diving models using a temporal split, we divide models based on whether they were trained primarily on English (EN) data or on a mixture of English and Chinese (EN+CN) language data. While there is a considerable overlap between the temporal split and the EN/EN+CN model split, there are notable differences. In particular, the Baichuan, Baichuan 2, and InternLM, and Skywork families were trained before November 2023 and trained on EN+CN data. Conversely, Gemma, Llama 3, StableLM 2, Falcon 2, and Olmo were trained after November 2023 and trained on EN data.

We repeat the analysis of Section 2 for the EN and EN+CN model split. We observe that, controlling for pretraining compute, models trained on EN+CN language data outperform those trained primarily on EN by 9 accuracy points on MMLU and 12 accuracy points on GSM8K. After the proposed adjustment, however, the difference in performance between models trained on EN data and EN+CN data is small and not statistically significant.

The confounding and measured effect sizes for the EN and EN+CN model split resemble those obtained for the temporal split, which we interpret as a valuable robustness check of our results.

B.2 How similar are newer models to older, fine-tuned models?

In Section 3.1 we fine-tune older models on the test task and we demonstrate that the differences in benchmark performance between the fine-tuned and non fine-tuned models resemble those between newer and older models. In this section we provide further evidence that newer models resemble older, fine-tuned models.

Refer to caption
Figure 12: New models resemble old models that were fine-tuned. Temporal cut-off: November 2023.

We take the older models and we fine-tune them with 64,000 training examples from the auxiliary training sets introduced in Section 2.1. We plot in Figure 12 the benchmark scores of the older, fine-tuned models as well as that of the newer models. We qualitatively observe that both the older, fine-tuned models and the newer models exhibit similar scaling. That is, older fine-tuned models resemble newer models in terms of performance per compute.

We perform a quantitative analysis consisting in discriminating between the older models and the newer models based on their pretraining compute and benchmark accuracy. That is, we construct a tabular dataset where rows are models and columns are their corresponding pretraining compute, benchmark accuracy, and whether the model was trained after November 2023. We then train a classifier aiming to predict model recency from compute and accuracy. Intuitively, if the performance of older models is very different form that of newer models, then we would obtain high prediction accuracy (i.e., the two classes are highly separable). Note that prediction accuracy provides a lower bound on the total variation (TV) distance between the distributions of compute and accuracy of older and newer models.

Table 4: Accuracy in discriminating between older and newer models in terms of their pretraining compute and benchmark accuracy. Older, fine-tuned models are indistinguishable from newer models.
Discriminator test *MMLU* *GSM8K*
Older models vs 64.6% 73.9%
newer models
Fine-tuned, older models vs 52.2% 52.5%
newer models

Random chance accuracy is 50%.

We train XGBoost classifiers and report balanced accuracy for leave-one-out cross-validation in Table 4. We find that newer models are reasonable distinguishable from older models, with 63% accuracy for MMLU and 79% accuracy for GSM8K. In contrast, we obtain close to random-chance accuracy in discriminating between older, fine-tuned models and newer models. That is, older fine-tuned models are indistinguishable from newer models in terms of their performance.

B.3 Test task training and saturation

Refer to caption
Figure 13: Training on the test task saturates. The final 25% (MMLU) and 20% (GSM8K) optimization steps of the proposed adjustment result in almost no changes in benchmark accuracy.

We show that training on the test task saturates. We consider the intermediate checkpoints of the adjustment procedure, that is, fine-tuning for 3 epochs of the task datasets introduced in Section 2.1. We plot in Figure 13 the gain in benchmark accuracy from the first 75% (MMLU) and 80% (GSM8K) training steps, as well as the gain in benchmark accuracy from the remaining steps. Almost all of the performance improvements occur in the earlier training steps. In contrast, the final 25% (MMLU) and 20% (GSM8K) optimization steps result in almost no changes in benchmark accuracy. This indicates that training on the test task saturates, and we train for enough steps to reach saturation.

Note that while more training data might result in further benchmark improvements, we show that the task datasets that we use are sufficient for older models to reach the performance of newer models, see Appendix B.2.

Appendix C Results for the OpenLLM Leaderboard v2

HuggingFace released on June 2024 a revision of the OpenLLM Leaderboard (Fourrier et al., 2024a). The HF leaderboard v2 differs from v1 in the six benchmarks it considers: MMLU Pro (Wang et al., 2024), GPQA (Rein et al., 2023), BBH (Suzgun et al., 2023), MuSR (Sprague et al., 2023), the Level 5 subset of MATH (Hendrycks et al., 2021), and IFEval (Zhou et al., 2023a). MMLU and GPQA test for knowledge and are framed as multiple-choice questions. BBH and MuSR test for reasoning. MATH tests for mathematical reasoning. IFEval tests the ability of models to follow instructions.

The creators of the OpenLLM Leaderboard cite contamination as a key motivation for releasing the v2 revision. They note that a key criteria in choosing the benchmarks of the HF leaderboard v2 was lack of contamination in models as of today. In particular, Fourrier et al. (2024b) claim that current models are not contaminated for GPQA, MuSR, and MMLU Pro: GPQA due to the gating of the test set, and MuSR and MMLU Pro due to their “youth”. Fourrier et al. (2024b) succinctly express their concern as regards to data contamination in the HF leaderboard v1:

"Some newer models also showed signs of contamination. By this, we mean that models were possibly trained on benchmark data or on data very similar to benchmark data. As such, some scores stopped reflecting the general performance of the model and started to overfit on some evaluation datasets instead of reflecting the more general performance of the task being tested. This was, in particular, the case for GSM8K and TruthfulQA, which were included in some instruction fine-tuning sets."

Note that “models were possibly trained on benchmark data or on data very similar to benchmark data” encompasses not only test set contamination but more broadly training on the test task.

Refer to caption

Bold indicates statistical significance with p < 0.05.

Figure 14: Results for the OpenLLM Leaderboard v2. For all benchmarks, models trained after November 2023 significantly outperform models trained before November 2023 when controlling for pretraining compute. After fine-tuning models on multiple choice question answering and mathematical reasoning, differences in performance between newer and older models reduce for all five benchmarks. These differences are no longer significant for GPQA, MuSR and BBH, but remain significant for MMLU Pro and MATH Lvl 5.

We evaluate all 53 models on MMLU Pro, GPQA, BBH, MuSR and MATH Lvl 5. We use the LM Evaluation Harness library in identical fashion to the HF leaderboard v2. We do not evaluated on IFEval since it tests for instruction following and we evaluate base models. We additionally evaluate the models that we fine-tuned in Section 2.1 for multiple choice question answering and mathematical reasoning. This gives us models’ adjusted benchmark scores after training on multiple choice question answering and mathematical reasoning. For MATH Lvl 5, we use the models fine-tuned on mathematical data, whereas for MMLU Pro, GPQA, BBH and MuSR we use the models fine-tuned on multiple choice question answering. The fine-tuning datasets were not adapted to the new benchmarks in the HF leaderboard v2, thus giving a valuable insight into how well these task-relevant datasets generalize beyond MMLU and GSM8K.

We plot in Figure 14 models benchmark scores pre and post post adjustment. We find that newer models significantly outperform older ones in all five benchmarks after controlling for pretraining compute. The differences in performance are smaller in absolute terms than those measured for MMLU (0.068) and GSM8K (0.168). This is in part because these benchmarks are “harder”, meaning also smaller differences in performance between the best and worst model. For this reason, we also report the difference between newer and older models relative to the difference between the best and worst model. This relative difference is 13.7% for MMLU Pro, 14.5% for GPQA, 12.1% for MuSR, 9.7% for BBH, and 10.0% for MATH Lvl 5, compared to 15.3% for MMLU and 25.0% for GSM8K. Therefore, newer models overperform in MMLU Pro, GPQA and MuSR about as much as they do for MMLU, and somewhat less for BBH and MATH Lvl 5.

Fine-tuning on task-relevant data reduces the difference in performance between newer and older models for all five benchmarks. For GPQA and MuSR, the difference in performance after adjustment is small (|θ^|0.002^𝜃0.002|\widehat{\theta}|\leqslant 0.002| over^ start_ARG italic_θ end_ARG | ⩽ 0.002) and not statistically significant. For BBH, the estimated difference in performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG reduces by 40% to 0.015 and is no longer statistically significant. For MMLU Pro and MATH Lvl 5 the difference reduces by 19% and 33% respectively but remains reasonably large (θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG > 0.01) and statistically significant. Therefore, find evidence that training on the test task plays a substantial role in newer models outperforming older ones in the benchmarks of the HF Leaderboard v2.

Refer to caption

Bold indicates statistical significance with p<0.05𝑝0.05p<0.05italic_p < 0.05.

Figure 15: We modify MMLU Pro to only contain questions with 4 answer choices by for every question randomly discarding 6 of the incorrect answer choices. After adjustment, the difference in performance θ^^𝜃\widehat{\theta}over^ start_ARG italic_θ end_ARG between newer and older models is smaller and no longer statistically significant.

One possible reason for the fact that the adjustment for MMLU Pro and MATH Lvl 5 is not as effective as for MMLU and GSM8K is that the fine-tuning examples are simply not as relevant for MMLU Pro and MATH Lvl 5. For example, the questions in MATH Lvl 5 contain much more LaTeX equation formatting than our mathematical reasoning fine-tuning dataset. Note that the answers to many MATH Lvl 5 questions are precisely formatted as LaTeX equations. Regarding MMLU Pro, our multiple choice fine-tuning dataset contains mostly questions with 4 answer choices, whereas all MMLU Pro questions have 10 answer choices. Thus, models are primarily fine-tuned to answer “A”, “B”, “C”, and “D” but not “E”, “F”, “G”. We modify MMLU Pro to only contain questions with 4 answer choices by for every question randomly discarding 6 of the incorrect answer choices. We evaluate models pre and post adjustment and plot the results in Figure 15. We observe that the difference in performance between newer and older models after adjustment reduces from 0.024 to 0.016, and is no longer statistically significant. This observation suggests that fine-tuning one more relevant task-data might further reduce the gap between newer and older models.

Discussion.

Fourrier et al. (2024b) cite newer models overperforming in the HF leaderboard v1 due to being “possibly trained on benchmark data or on data very similar to benchmark data” as a major reason for the HF leaderboard v2 revision. We however find evidence that training on the test task is also a confounder for the newly included benchmarks. Specifically, the difference in performance between newer and older models is significant for MMLU Pro, GPQA, MuSR, BBH and MATH Lvl 5, and these differences reduce after adjusting by fine-tuning on the test task.

Fourrier et al. (2024b) explicitly highlight GPQA and MuSR as benchmarks likely unaffected by contamination, the former due to being gated and latter due to its “youth”. Not only do newer models significantly outperform older ones in GPQA and MuSR, but these differences in performance fully vanish after fine-tuning on the test task. That is, newer models likely overperform in GPQA and MuSR precisely due to training on the test task.

These findings highlight that training on the test task is a distinct phenomenon from test set leakage. Strategies that aim to mitigate data contamination –e.g., dynamic benchmarks– might not be effective in mitigating the confounding effect of training on the test task. In contrast, we extensively demonstrated the effectiveness of our proposed adjustment procedure, that is, fine-tuning on sufficient task-relevant data before evaluation.

Appendix D Additional figures

In Figure 16 we show that ARC and HellaSwag do not exhibit emergence when using the standard cloze evaluation. When reformulating the task as multiple choice in the style of MMLU, however, we observe emergence around 1022superscript102210^{22}10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT to 1023superscript102310^{23}10 start_POSTSUPERSCRIPT 23 end_POSTSUPERSCRIPT FLOPs, similarly to MMLU. Emergence in this range of compute persists even when changing the evaluation metric from accuracy to Brier score –a continuous metric–, as suggested by Schaeffer et al. (2024a).

Refer to caption
Figure 16: ARC and HellaSwag scores of models trained () before November 2023 and () after. Middle: reformulating the test task as multiple-choice leads to emergence around 1022superscript102210^{22}10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT to 1023superscript102310^{23}10 start_POSTSUPERSCRIPT 23 end_POSTSUPERSCRIPT FLOPs. Right: when using Brier score as the metric, we similarly observe sharp changes in performance around 1022superscript102210^{22}10 start_POSTSUPERSCRIPT 22 end_POSTSUPERSCRIPT to 1023superscript102310^{23}10 start_POSTSUPERSCRIPT 23 end_POSTSUPERSCRIPT FLOPs.