Towards Data Contamination Detection for Modern Large Language Models: Limitations, Inconsistencies, and Oracle Challenges

Vinay Samuel, Yue Zhou, Henry Peng Zou

Abstract

As large language models (LLMs) achieve increasingly impressive results, questions arise about whether such performance stems from generalizability or mere data memorization. Consequently, numerous data contamination detection methods have been proposed. However, these approaches are often validated with traditional benchmarks and early-stage LLMs, leaving uncertainty about their effectiveness when evaluating state-of-the-art (SOTA) LLMs on more challenging benchmarks. To address this gap, we evaluate five contamination detection approaches with four SOTA LLMs across eight challenging datasets. Our analysis reveals that: (1) Current methods have non-trivial limitations in assumptions and practical applications; (2) Notable difficulties exist in detecting contamination introduced during instruction fine-tuning with answer augmentation; and (3) There is limited consistency between SOTA contamination detection techniques. These findings highlight the complexity of contamination detection and the urgent need for further research on robust, generalizable evaluation frameworks.

Introduction

As LLMs post increasingly high scores on benchmarks, a critical question looms: is the model actually reasoning, or has it simply memorized the test questions during training? This phenomenon, known as data contamination, threatens the validity of performance metrics. While several methods exist to detect this, a significant research gap remains. Most detection techniques were validated on older models (e.g., GPT-J) and simpler datasets. Modern SOTA models are evaluated on complex benchmarks like GSM8K (math) or HumanEval (code). Furthermore, most research focuses on contamination during pre-training, often ignoring the nuances of instruction fine-tuning, where data might be subtly modified (e.g., adding Chain-of-Thought reasoning) before being fed to the model.

Methodology

This study conducts a dual investigation into the robustness of detection methods and the contamination status of SOTA models. We compare five distinct approaches:

  1. Token Completion Overlap: Prompts the model to complete a segment of a test instance and checks for exact or near-exact matches.
  2. Min-K% Prob: A probability-based method that identifies sequences where the model is unusually confident about "rare" tokens.
  3. Word Perturbation Quiz (WPQ): Asks the model to choose between an original sentence and a version where words have been replaced with synonyms.
  4. Instance Local Order Quiz: A proposed pilot method where the model identifies which specific example followed another in the original dataset.
  5. Canonical Order Statistical Testing: Checks if a model prefers the original "canonical" order of a dataset over a shuffled version.
Overview of the five data contamination detection methods evaluated in the study, ranging from token overlap to order-based quizzes.

To establish a ground truth, we created an "Oracle" setup by intentionally contaminating a LLaMA-2-70B model with specific portions of datasets using instruction fine-tuning to see which methods could successfully identify the known contamination.

Key Insights and Challenges

The Inconsistency Crisis

Perhaps the most striking finding is the lack of agreement between methods. Techniques suggesting that a model like GPT-4 is contaminated on a specific dataset are frequently contradicted by other methods on that same dataset. As shown in the correlation matrix below, there is virtually no statistical agreement between the different "smoking gun" techniques.

Correlation matrix showing the lack of agreement between different contamination detection methods, highlighting the inconsistency crisis.

The Fine-Tuning Blind Spot

Current detection methods are reasonably effective at catching raw text memorization from pre-training. However, when data is introduced via instruction fine-tuning with augmented answers (such as adding "Let's think step by step"), the contamination becomes nearly invisible to existing tools. In our Oracle experiment, when 100% of the MMLU test set was leaked via fine-tuning, the Canonical Order and Min-K% methods failed to produce a clear signal.

The "Fluency" Trap

In the Word Perturbation Quiz, models often correctly identify the original text. While this is usually cited as evidence of contamination, our analysis suggests it might simply reflect the model's sensitivity to linguistic nuance—it picks the original because it is more fluent than the perturbed version, not necessarily because it was seen during training.

Results and Discussion

  • SOTA Model Status: GPT-4 and Claude 3 showed high accuracy on the WPQ across almost all benchmarks (often >70%), which could suggest widespread contamination. However, other metrics like Token Overlap showed almost zero "exact matches," complicating the verdict.
  • IMDB Contamination: All three SOTA models (GPT-4, Claude 3, LLaMA-3) showed significant evidence of contamination on the IMDB dataset across multiple methods, suggesting this traditional benchmark is likely part of most modern training sets.
  • Probability Counter-intuition: In the Oracle experiment, Min-K% probability values actually decreased after fine-tuning. This suggests that the way fine-tuning modifies data distribution makes standard probability-based detection unreliable for modern training pipelines.

Conclusion

The overarching conclusion is that the field lacks a robust, unified framework for contamination detection. Future work must move beyond simple "exact match" or "fluency" checks to develop methods that are invariant to the formatting changes common in modern instruction fine-tuning. Until such frameworks are established, the community should treat SOTA benchmark scores with a healthy dose of skepticism.

Summary updated

BibTeX
@inproceedings{samuel2025towards,
  author = {Vinay Samuel and Yue Zhou and Henry Peng Zou},
  title = {{Towards Data Contamination Detection for Modern Large Language Models: Limitations, Inconsistencies, and Oracle Challenges}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=vNOUdqWXcl},
}
Figure