Abstract
As Large Language Models (LLMs) continue to dominate the AI landscape, the validity of their performance on standardized benchmarks has come under scrutiny. This paper addresses the issue of benchmark leakage—the inclusion of evaluation data in a model's training set—which leads to inflated scores and a distorted view of model capabilities. We present a scalable detection pipeline based on Perplexity (PPL) and N-gram accuracy metrics. By comparing model performance on original benchmarks versus paraphrased versions, we calculate a disparity score ($\delta_{train-test}$) to identify contamination. Our evaluation of 31 popular open-source models reveals that approximately 50% show significant signs of leakage on the GSM8K and MATH datasets. We conclude by advocating for increased transparency through standardized disclosure.
Introduction
The "secret sauce" behind the success of modern LLMs is often a massive, opaque mixture of training data. While this scale enables impressive capabilities, it creates a significant integrity issue: benchmark leakage. Leakage occurs when data from evaluation benchmarks, such as GSM8K (grade school math) or MATH (advanced mathematics), is inadvertently or intentionally included in a model's training corpus. When a model "cheats" by memorizing test questions, its leaderboard scores become inflated, leading to unfair comparisons and a fundamental misunderstanding of the model's actual reasoning and generalization abilities. Detecting this is difficult because training sets are rarely public, and models are designed to generalize, making it hard to distinguish true learning from mere memorization.
Methods
Our detection pipeline relies on two "atomic" metrics to identify statistical footprints of training:
- Perplexity (PPL): A continuous measure of how "surprised" a model is by a sequence of text. Lower perplexity on a benchmark compared to a control set suggests prior exposure.
- N-gram Accuracy: A discrete measure of the model's ability to predict exact sequences of words (e.g., 5-grams). High accuracy in this metric is considered a "smoking gun" for verbatim memorization.
To create a robust control group, we employed a Paraphrase Strategy. Using GPT-3.5, we generated three paraphrased versions of the GSM8K and MATH datasets. These versions maintain the original mathematical logic and difficulty but utilize different wording. We then calculate the relative performance drop ($\delta$) between the original benchmark and its paraphrased counterparts. By comparing the drop on the training set ($\delta_{train}$) versus the test set ($\delta_{test}$), we derive a disparity score ($\delta_{train-test}$). A high disparity indicates that the model is disproportionately familiar with the specific phrasing of the benchmark data, suggesting leakage.
Key Results
Our analysis of 31 prominent open-source LLMs—including the Qwen, InternLM, and Aquila2 families—revealed widespread contamination. Approximately 50% of the evaluated models showed clear signs of leakage.
Key findings include:
- Verbatim Memorization: Qwen-1.8B demonstrated extreme memorization, accurately predicting all 5-grams in 223 examples from the GSM8K training set and 67 from the MATH training set.
- High Disparity: Models such as Aquila2-7B and InternLM2-20B exhibited the highest $\delta_{train-test}$ scores, indicating significant exposure to benchmark data during development.
- Clean Models: In contrast, the Llama series (7B and 3-8B) and Mistral-7B-v0.1 showed near-zero disparity scores, suggesting they were trained without exposure to these specific benchmarks. These models demonstrated a consistent ability to handle both original and paraphrased questions, reflecting genuine reasoning capabilities.
Discussion and Conclusion
The prevalence of benchmark leakage highlights a critical need for transparency in the LLM community. While using benchmark data to enhance model capabilities is not inherently wrong, the lack of documentation is problematic. We propose the adoption of a "Benchmark Transparency Card"—a standardized document for developers to disclose which benchmarks were included in training.
Furthermore, our study identifies limitations in current detection methods. For instance, if a model is trained on both training and test splits simultaneously, or on paraphrased data (data augmentation), the disparity metric may fail to flag the leakage. To address this, the community should move toward dynamic benchmarks—evaluations that are updated frequently to stay ahead of training data collection. Ensuring the integrity of benchmarks is essential for the continued, honest progress of generative AI research.
Summary updated