Evading Data Contamination Detection for Language Models is (too) Easy

Jasper Dekoninck, Mark Niklas Müller, Maximilian Baader, Marc Fischer, Martin T. Vechev · DOI

Abstract

Current methods for detecting data contamination in Large Language Models (LLMs) are alarmingly easy to bypass. This paper introduces Evasive Augmentation Learning (EAL), a technique that rephrases benchmark questions to inflate scores while remaining invisible to existing detection tools. By evaluating EAL against popular benchmarks like MMLU and GSM8K, the authors demonstrate that malicious model providers can achieve significant performance gains (up to 15%) while reducing detection rates to near-random levels. These findings highlight the fragility of static public benchmarks and the need for more robust evaluation strategies.

Introduction

As Large Language Models (LLMs) become central to modern AI, public benchmarks such as MMLU and GSM8K serve as the primary yardsticks for performance. However, because these models are trained on massive internet-scale datasets, benchmark data often leaks into the training set—a phenomenon known as data contamination. While researchers have developed tools to detect accidental leakage, they typically assume the contamination is unintentional. This paper explores a more critical scenario: What if a model provider is actively trying to cheat? The authors demonstrate that a determined actor can deliberately include benchmark data to climb leaderboards while successfully evading all current detection methods.

The Four Archetypes of Contamination

To analyze the landscape of data contamination, the authors categorize model providers into four distinct archetypes based on their intent and actions:

  1. Proactive: These providers actively decontaminate their training data to ensure benchmark integrity.
  2. Honest-but-negligent: These providers do not check for contamination but have no intent to cheat.
  3. Openly Malicious: These providers train on benchmark data verbatim to boost scores, making no effort to hide it.
  4. Evasively Malicious: These providers train on benchmark data but use sophisticated techniques to hide the contamination from detection tools.
Conceptual overview of model provider archetypes and the contamination pipeline.

To represent the "Evasively Malicious" actor, the researchers introduce Evasive Augmentation Learning (EAL). Instead of training on the exact text of a benchmark, EAL uses a powerful model (e.g., GPT-4) to rephrase questions and answers. This preserves the semantic knowledge required to pass the test while altering the "fingerprint" of the data, making it difficult for similarity-based detectors to flag.

Experimental Setup

The EAL attack was evaluated across four diverse and popular benchmarks: GSM8K, TruthfulQA, MMLU, and ARC-Challenge. The models were finetuned using the OpenOrca dataset as the "clean" background data. The effectiveness of EAL was tested against three levels of detection: Black-box (comparing performance across benchmarks), Grey-box (analyzing model perplexity), and Oracle (full access to training data for similarity checks).

Results: The Fragility of Detection

The results indicate a significant vulnerability in current evaluation pipelines.

Total Evasion of Detection

Against all tested sample-level detection methods, EAL reduced the detection rate to approximately 1% (True Positive Rate at 1% False Positive Rate). This performance is essentially no better than random guessing, rendering existing tools ineffective against evasive contamination.

Comparison of detection rates between openly and evasively malicious contamination.

Significant Performance Inflation

Despite the rephrasing, models trained with EAL saw substantial performance boosts—up to 15% on contaminated benchmarks. This suggests that the semantic content remains intact enough to significantly game the leaderboards. Furthermore, even state-of-the-art benchmark-level detectors like "CleanEval" failed to distinguish EAL-contaminated models from clean ones.

Discussion and Future Directions

The primary takeaway is that current detection methods rely heavily on the assumption that contaminated data is included verbatim. EAL breaks this assumption by decoupling the underlying logic from the surface-level text. The authors argue that finetuning is a particularly attractive stage for malicious contamination because it is cost-effective and harder to detect than pretraining-level contamination.

To protect the integrity of AI evaluation, the paper suggests several paths forward:

  • Dynamic Benchmarks: Moving away from static question sets toward benchmarks that are periodically updated or generated on the fly.
  • Private Benchmarks: Keeping evaluation data strictly confidential, though this introduces challenges regarding transparency.
  • Human Evaluation: While expensive, human-in-the-loop testing remains significantly harder to game than automated benchmarks.

Ultimately, as long as benchmarks remain static and public, they will be vulnerable to those determined to exploit them for leaderboard gains.

Summary updated

BibTeX
@misc{dekoninck2024evading,
  author = {Jasper Dekoninck and Mark Niklas Müller and Maximilian Baader and Marc Fischer and Martin T. Vechev},
  title = {{Evading Data Contamination Detection for Language Models is (too) Easy}},
  year = {2024},
  eprint = {2402.02823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.02823},
}
Figure