Data Contamination Quiz: A Tool to Detect and Estimate Contamination in Large Language Models
Shahriar Golchin, Mihai Surdeanu
TL;DR
The paper tackles data contamination in LLMs by introducing DCQ, a quiz-based, fully black-box approach that detects and estimates verbatim memorization without access to training data or model weights. It frames detection as selecting the original dataset instance among word-level perturbed variants, using a Bias Detector Quiz to reveal positional biases and a Bias Compensator Quiz to robustly estimate contamination through permutation. The method yields contamination estimates that surpass replication-based approaches and can bypass safety filters, providing a scalable, task- and language-agnostic tool for real-world evaluations. This work advances benchmark integrity by turning memorization signals into quantitative contamination measurements, with practical implications for model evaluation and dataset governance.
Abstract
We propose the Data Contamination Quiz (DCQ), a simple and effective approach to detect data contamination in large language models (LLMs) and estimate the amount of it. Specifically, we frame data contamination detection as a series of multiple-choice questions, devising a quiz format wherein three perturbed versions of each instance, subsampled from a specific dataset partition, are created. These changes only include word-level perturbations. The generated perturbations, along with the original dataset instance, form the options in the DCQ, with an extra option accommodating the selection of none of the provided options. Given that the only distinguishing signal among the options is the exact wording with respect to the original dataset instance, an LLM, when tasked with identifying the original dataset instance, gravitates towards selecting the original one if it has been exposed to it. While accounting for positional biases in LLMs, the quiz performance reveals the contamination level for the tested model with the dataset partition to which the quiz pertains. Applied to various datasets and LLMs, under controlled and uncontrolled contamination, our findings, while fully lacking access to training data and model parameters, suggest that DCQ achieves state-of-the-art results and uncovers greater contamination levels through memorization compared to existing methods. Also, it proficiently bypasses more safety filters, especially those set to avoid generating copyrighted content.
