Quantifying the Effect of Test Set Contamination on Generative Evaluations

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Schaeffer, Rylan, Kazdan, Joshua, Abbasi, Baber, Liu, Ken Ziyu, Miranda, Brando, Ahmed, Ahmed, Berez, Fazl, Puri, Abhay, Biderman, Stella, Mireshghallah, Niloofar, Koyejo, Sanmi
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911426798419968
author Schaeffer, Rylan
Kazdan, Joshua
Abbasi, Baber
Liu, Ken Ziyu
Miranda, Brando
Ahmed, Ahmed
Berez, Fazl
Puri, Abhay
Biderman, Stella
Mireshghallah, Niloofar
Koyejo, Sanmi
author_facet Schaeffer, Rylan
Kazdan, Joshua
Abbasi, Baber
Liu, Ken Ziyu
Miranda, Brando
Ahmed, Ahmed
Berez, Fazl
Puri, Abhay
Biderman, Stella
Mireshghallah, Niloofar
Koyejo, Sanmi
contents As frontier AI systems are pretrained on web-scale data, test set contamination has become a critical concern for accurately assessing their capabilities. While research has thoroughly investigated the impact of test set contamination on discriminative evaluations like multiple-choice question-answering, comparatively little research has studied the impact of test set contamination on generative evaluations. In this work, we quantitatively assess the effect of test set contamination on generative evaluations through the language model lifecycle. We pretrain language models on mixtures of web data and the MATH benchmark, sweeping model sizes and number of test set replicas contaminating the pretraining corpus; performance improves with contamination and model size. Using scaling laws, we make a surprising discovery: including even a single test set replica enables models to achieve lower loss than the irreducible error of training on the uncontaminated corpus. We then study further training: overtraining with fresh data reduces the effects of contamination, whereas supervised finetuning on the training set can either increase or decrease performance on test data, depending on the amount of pretraining contamination. Finally, at inference, we identify factors that modulate memorization: high sampling temperatures mitigate contamination effects, and longer solutions are exponentially more difficult to memorize than shorter ones, presenting a contrast with discriminative evaluations, where solutions are only a few tokens in length. By characterizing how generation and memorization interact, we highlight a new layer of complexity for trustworthy evaluation of AI systems.
format Preprint
id arxiv_https___arxiv_org_abs_2601_04301
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Quantifying the Effect of Test Set Contamination on Generative Evaluations
Schaeffer, Rylan
Kazdan, Joshua
Abbasi, Baber
Liu, Ken Ziyu
Miranda, Brando
Ahmed, Ahmed
Berez, Fazl
Puri, Abhay
Biderman, Stella
Mireshghallah, Niloofar
Koyejo, Sanmi
Machine Learning
Computation and Language
As frontier AI systems are pretrained on web-scale data, test set contamination has become a critical concern for accurately assessing their capabilities. While research has thoroughly investigated the impact of test set contamination on discriminative evaluations like multiple-choice question-answering, comparatively little research has studied the impact of test set contamination on generative evaluations. In this work, we quantitatively assess the effect of test set contamination on generative evaluations through the language model lifecycle. We pretrain language models on mixtures of web data and the MATH benchmark, sweeping model sizes and number of test set replicas contaminating the pretraining corpus; performance improves with contamination and model size. Using scaling laws, we make a surprising discovery: including even a single test set replica enables models to achieve lower loss than the irreducible error of training on the uncontaminated corpus. We then study further training: overtraining with fresh data reduces the effects of contamination, whereas supervised finetuning on the training set can either increase or decrease performance on test data, depending on the amount of pretraining contamination. Finally, at inference, we identify factors that modulate memorization: high sampling temperatures mitigate contamination effects, and longer solutions are exponentially more difficult to memorize than shorter ones, presenting a contrast with discriminative evaluations, where solutions are only a few tokens in length. By characterizing how generation and memorization interact, we highlight a new layer of complexity for trustworthy evaluation of AI systems.
title Quantifying the Effect of Test Set Contamination on Generative Evaluations
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2601.04301