SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.06233 · 2023

Data Contamination Quiz: A Tool to Detect and Estimate Contamination in Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
shahriargolchin/dcq canonical 3 of 3
FunctionStatusWhere it lives
calculate_non_preferred_options Ran shahriargolchin/dcq/src/helpers/option_counter.py
code served (permissive licence) · get_code("5ea98af5a84594d4")
configure_logger Ran shahriargolchin/dcq/src/helpers/logging_config.py
code served (permissive licence) · get_code("aa8eed3cb8bda704")
letter_counter Ran shahriargolchin/dcq/src/helpers/option_counter.py
code served (permissive licence) · get_code("29d82676d66c2275")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.06233")
get_code_for_paper("2311.06233")
have("2311.06233")

Connect an agent — have() is free.