[Paper Review] Investigating Data Contamination in Modern Benchmarks for Large Language Models
The paper introduces IR-based contamination detection and a TS-Guessing protocol to assess potential data leakage in LLM benchmarks, showing that commercial models can guess missing benchmark information, implying possible data contamination.
Recent observations have underscored a disparity between the inflated benchmark scores and the actual performance of LLMs, raising concerns about potential contamination of evaluation benchmarks. This issue is especially critical for closed-source models and certain open-source models where training data transparency is lacking. In this paper we study data contamination by proposing two methods tailored for both open-source and proprietary LLMs. We first introduce a retrieval-based system to explore potential overlaps between evaluation benchmarks and pretraining corpora. We further present a novel investigation protocol named extbf{T}estset extbf{S}lot Guessing ( extit{TS-Guessing}), applicable to both open and proprietary models. This approach entails masking a wrong answer in a multiple-choice question and prompting the model to fill in the gap. Additionally, it involves obscuring an unlikely word in an evaluation example and asking the model to produce it. We find that certain commercial LLMs could surprisingly guess the missing option in various test sets. Specifically, in the TruthfulQA benchmark, we find that LLMs exhibit notable performance improvement when provided with additional metadata in the benchmark. Further, in the MMLU benchmark, ChatGPT and GPT-4 demonstrated an exact match rate of 52\% and 57\%, respectively, in guessing the missing options in benchmark test data. We hope these results underscore the need for more robust evaluation methodologies and benchmarks in the field.
Motivation & Objective
- Motivate robust evaluation benchmarks amid concerns about benchmark data leakage into pretraining data.
- Develop methods to detect contamination for both open-source and closed-source LLMs.
- Quantify overlap between pretraining corpora and popular benchmarks.
- Assess how additional benchmark metadata affects model performance on contamination tests.
Proposed method
- Build a Pyserini-based BM25 retrieval system to identify overlaps between pretraining corpora (The Pile, C4) and benchmarks (MMLU, TruthfulQA, HellaSwag, WindoGrande, OpenbookQA, PIQA).
- Propose TS-Guessing: (i) Question-based guessing by masking a key word and prompting the model to fill it; (ii) Question-Multichoice guessing by masking an incorrect option and prompting for the missing piece.
- Evaluate three top-k retrieval settings (k=1,5,10) and use 13-gram tokenization to assess overlap.
- Use prompt templates and metadata hints (e.g., type, category, URL) to test whether models exploit benchmark data.
- Apply filtering to reduce trivial correlations (e.g., Yes/No options, Rouge-L similarity thresholds).
- Report outcomes using metrics such as BM25, Avg. F1, SacreBLEU, Rouge-L, BLEURT, and GPTscore-based semantic similarity.
Experimental results
Research questions
- RQ1Can modern benchmarks overlap with pretraining corpora enough to contaminate evaluations?
- RQ2Do open-source and closed-source LLMs exhibit contamination in TS-Guessing across common benchmarks?
- RQ3Does adding benchmark metadata (type, category, URL) aid model performance in contamination scenarios?
- RQ4How do TS-Guessing results correlate with actual benchmark task performance across models?
Key findings
- There is detectable overlap between pretraining corpora and benchmarks, not fully captured by n-gram methods alone.
- TS-Guessing reveals that commercial LLMs can often guess missing benchmark elements, suggesting potential contamination.
- In TruthfulQA, metadata improves model guessing performance, indicating leakage risk when benchmarks expose rich metadata.
- In MMLU, ChatGPT and GPT-4 achieved 57% and 57% Exact Match respectively for guessing missing options under certain setups.
- GPTscore-based text similarity aligns more closely with human judgments than traditional surface metrics, though it is more resource-intensive.
- TS-Guessing results show small performance gaps between model versions (e.g., GPT-4 vs. ChatGPT) suggesting contamination is not strictly tied to model scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.