Abstract
Data contamination hinders fair LLM evaluation by introducing test data into newer models’ training sets. Existing studies solve this challenge by updating benchmarks with newly collected data. However, they fail to guarantee contamination-free evaluation as the newly collected data may contain pre-existing knowledge, and their benchmark updates rely on intensive human labor. To address these issues, we in this paper propose AntiLeak-Bench, an automated anti-leakage benchmarking framework. Instead of simply using newly collected data, we construct samples with explicitly new knowledge absent from LLMs’ training sets, which thus ensures strictly contamination-free evaluation. We further design a fully automated workflow to build and update our benchmark without human labor. This significantly reduces the cost of benchmark maintenance to accommodate emerging LLMs. Through extensive experiments, we highlight that data contamination likely exists before LLMs’ cutoff time and demonstrate that AntiLeak-Bench effectively overcomes this challenge.
Introduction
As Large Language Models (LLMs) are trained on increasingly massive portions of the internet, they inevitably "see" the questions and answers from popular static benchmarks (like MMLU or GSM8K) during their pre-training. This data contamination leads to inflated performance scores; a model might appear to "reason" through a problem when it is actually just recalling a memorized answer.
While some researchers have tried to build "dynamic" benchmarks by collecting new data, these efforts face two major hurdles:
- Weak Guarantees: "New" data (like recent news or LeetCode problems) often contains old knowledge or is republished from older sources, meaning it might still be in the training set.
- High Labor Costs: Manually annotating new benchmarks is slow and expensive, making it impossible to keep pace with the rapid release cycle of new LLMs.
Methodology
AntiLeakBench introduces a fully automated pipeline to generate fresh, verified, and contamination-free test samples. The process follows three main steps:
- Identifying Updated Knowledge: The system monitors Wikidata for factual triplets (subject, relation, object) that have changed. For example, it identifies that Lionel Messi's "member of sports team" relation shifted from Paris Saint-Germain to Inter Miami after a specific date.
- Building Supporting Documents: To provide context, the framework retrieves Wikipedia articles. Crucially, it uses the revision history to find versions of the article updated after the model's knowledge cutoff, ensuring the model hasn't seen this specific text during training.
- Constructing Samples: It generates two types of tasks:
- Single-Hop: Direct questions based on the updated fact.
- Multi-Hop: Complex reasoning chains (e.g., "Who is the head coach of the team Messi plays for?").
- Distractors: To test long-context capabilities, the system can inject "noise" documents that don't contain the answer.
Experimental Setup
The framework uses Wikidata as the source of factual ground truth and Wikipedia for context documents. The authors evaluated 12 prominent LLMs, including:
- Open-source: Llama-2 (7B/13B), Llama-3.1 (8B), Mistral-7B, Phi-3.5-mini, Qwen-2-7B, Gemma-2-9B, etc.
- Proprietary: GPT-4o and GPT-4o-mini.
The benchmark includes thousands of samples divided into "Pre-cutoff" (likely contaminated) and "Post-cutoff" (strictly clean) sets to measure the performance gap.
Results and Discussion
One of the most striking findings is the "Outdated Knowledge" Trap: LLMs often favor "outdated" answers over the correct ones provided in the context. Even when the provided text explicitly states a new fact, models frequently default to the old information they memorized during pre-training.
Key observations include:
- Contamination Inflates Scores: There is a general performance decline for almost all models when moving from pre-cutoff to post-cutoff data. This confirms that current benchmark scores are likely overestimating model intelligence due to memorization.
- Reasoning vs. Retrieval: Multi-hop tasks proved significantly harder than single-hop tasks. This suggests that while models are getting better at finding information in a context window, their ability to link multiple new facts together remains a major bottleneck.
- Proprietary Dominance: GPT-4o significantly outperformed open-source models, achieving an average EM of 77.2%. It showed much higher resilience to distracting documents and complex multi-hop reasoning.
- Human-Level Quality: Human verification showed that the automated pipeline produces highly accurate data, with over 96% accuracy for both questions and contexts.
Conclusion and Future Work
AntiLeakBench provides a strictly contamination-free environment that forces models to rely on reasoning rather than memorization. However, limitations remain. Currently, the framework focuses primarily on Question Answering. Extending this automated approach to other tasks like summarization or code generation is challenging because identifying "new" knowledge in those domains is more complex. Additionally, the system is dependent on the accuracy and update frequency of Wikidata and Wikipedia. Future work will explore more diverse reasoning tasks and improve the automated synthesis of high-quality, complex samples.
Summary updated