LatestEval: Addressing Data Contamination in Language Model Evaluation through Dynamic and Time-Sensitive Test Construction

Yucheng Li, Frank Guerin, Chenghua Lin

Introduction

As Large Language Models (LLMs) are trained on increasingly massive crawls of the entire internet, the boundary between "training data" and "evaluation data" has blurred. Many standard benchmarks, such as SQuAD or BoolQ, are years old and have likely been ingested by models during pre-training. This leads to data contamination, where a model achieves high scores through memorization rather than actual linguistic capability. This creates a "credibility crisis": is a model actually reasoning, or is it simply reciting the answer key from its training run?

LatestEval addresses this by introducing a dynamic evaluation framework. By automatically generating reading comprehension tests from the most recent 7 days of internet content (arXiv, BBC, and GitHub), LatestEval ensures models are tested on truly "unseen" information, forcing them to reason rather than recite.

Methodology: A Dynamic Evaluation Pipeline

The authors propose an automated, three-stage pipeline to create a "moving target" for evaluation, ensuring the content is too new to have been in any model's training set.

The LatestEval pipeline for dynamic test generation, involving source collection, information extraction, and query finalization.
  1. Dynamic Collection: The system scrapes the latest texts from three distinct sources: arXiv (academic papers), BBC (news), and GitHub (project READMEs).
  2. Information Extraction: Instead of random questions, the authors analyzed real-world Human-AI chat logs to identify what users actually ask. They focus on five categories: Terminology, Summarization, Purpose, Examples, and Future Predictions.
  3. Question Construction & Context Cleaning: Using a hybrid of templates and GPT-4, the system generates questions. Crucially, it removes the explicit answer from the source text and replaces it with a placeholder (e.g., "The reason for X is explained here"). This prevents the model from simply "copy-pasting" a string from the text and forces it to infer the answer from the surrounding context.

Datasets and Contamination Detection

The primary benchmark, LatestEval, consisted of 6,899 reading comprehension tests derived from 1,500 recent documents (as of July 2023). To demonstrate the extent of contamination in existing benchmarks, the authors compared LatestEval against SQuADv2, BoolQ, and QuAC.

They utilized perplexity—a measure of how "surprised" a model is by text—as a proxy for contamination. Lower perplexity typically indicates that the model has seen the text before during training.

Key Results and Insights

The results confirm that standard benchmarks are heavily contaminated. Models like Llama-30B exhibited significantly lower perplexity on older benchmarks compared to LatestEval.

Perplexity analysis showing that models are less 'surprised' by older benchmarks (like BoolQ and QuAC) compared to LatestEval and new Wikipedia articles.

Key findings include:

  • Contamination Proof: Perplexity analysis showed that while models have clearly "seen" older benchmarks, their perplexity on LatestEval remains high, similar to brand-new Wikipedia articles (NewWiki).
  • Model Performance: GPT-4 and GPT-3.5-turbo significantly outperformed other models. Interestingly, foundation models (those without instruction tuning) performed very poorly on LatestEval, suggesting they rely heavily on memorization for older benchmarks.
  • Human Validation: Human annotators found the automated pipeline to be highly effective, with only 4.5% of questions being "unfaithful" to the source.

Discussion and Future Work

While LatestEval provides a robust solution to contamination, it has limitations. The use of GPT-4 in the generation loop might introduce specific biases. Additionally, the "context cleaning" process occasionally makes questions unanswerable even for humans (approx. 5.7%).

The authors emphasize that LatestEval is not a static dataset but a continuous pipeline. A test set created today will eventually become contaminated as models are updated, necessitating a permanent, time-sensitive evaluation strategy.

Summary updated

BibTeX
@inproceedings{li2024latesteval,
  author = {Yucheng Li and Frank Guerin and Chenghua Lin},
  title = {{LatestEval: Addressing Data Contamination in Language Model Evaluation through Dynamic and Time-Sensitive Test Construction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29822},
}
Figure