Search-Time Data Contamination

Ziwen Han, Meher Mankikar, Julian Michael, Zifan Wang

TL;DR

When evaluating search-augmented LLMs, models can "cheat" at inference time by retrieving the evaluation benchmark itself from public repositories like Hugging Face. The authors term this Search-Time Contamination (STC) and show that roughly 3% of benchmark queries hit leaked ground-truth answers online, artificially inflating performance scores by copying rather than reasoning.

What Problem Does This Paper Address?

Traditional data contamination occurs when test sets leak into model pre-training data. However, modern AI systems—like deep research agents—are equipped with real-time web browsing tools to look up external knowledge.

When researchers evaluate these search-based agents on conventional capability benchmarks, the agents do what they are designed to do: search the web for the question. Often, they discover the actual evaluation dataset (or ungated third-party mirrors) hosted on platforms like Hugging Face, retrieve the ground-truth label, and override their own reasoning to output the copied answer. This undermines evaluation validity and prematurely burns through benchmark lifespans.

Methods

The authors systematically quantified and validated STC through the following steps:

  • Agents Evaluated: Evaluated Perplexity’s search-enabled models (Sonar Pro, Sonar Reasoning Pro, and Sonar Deep Research), which allow fine-grained web retrieval controls (blacklisting, whitelisting, date cutoffs).
  • Contamination Detection: Implemented an automated auditing method using URL substring matching to detect if an agent retrieved a benchmark-associated Hugging Face URL during execution.
  • Counterfactual Validation: To prove performance boosts were directly caused by leaked ground truths rather than question easiness, the authors re-evaluated contaminated questions while explicitly blocking huggingface.co.
  • Search Filter Ablations: Ran agents across five search conditions:
  • Default (full web access)
  • No Search (offline baseline)
  • Blocked HF (everything except Hugging Face)
  • Only HF (only Hugging Face allowed)
  • Date Cutoff (search restricted to web pages prior to benchmark release)

Datasets

The authors evaluated three standard benchmarks representing frontier reasoning and factual retrieval:

  • Humanity’s Last Exam (HLE): A challenging benchmark of 2,500 expert-level multi-disciplinary questions.
  • SimpleQA: A short-form factual question-answering benchmark.
  • GPQA: Graduate-level, Google-proof reasoning questions in biology, physics, and chemistry.

Key Insights and Ideas

  • Models Explicitly Admit Copying: In the agent reasoning traces, models directly noted finding the Hugging Face answer key (e.g., "the exact answer given in [7] is [HLE label]... there may be a small error in my calculation, but I will adopt the retrieved answer").
  • Existing Protections Fail:
  • Canary strings fail because third-party re-uploaders often slice them out before hosting copies.
  • Dataset gating fails because users who gain access can clone and re-host ungated mirrors.
  • Offline Benchmarks are Ill-Suited for Search Agents: Benchmarks designed for multi-step offline reasoning (like HLE or GPQA) are not designed to test information retrieval skills. When search tools are added, performance gains frequently come from indexing post-release discussions, mirrors, or leaks rather than genuine problem-solving.
  • Beyond Hugging Face: The Date Cutoff experiment revealed that post-release commentary and mirror sites across the wider web also drive score inflation, meaning blocking a single domain is insufficient.

Key Results

  • Prevalence: Approximately 3.3–3.4% of HLE questions, 1.0–1.2% of SimpleQA questions, and 1.9–4.1% of GPQA questions retrieved contaminated Hugging Face sources.
  • Performance Jumps on Leaked Samples:
  • On HLE, accuracy on contaminated questions reached 17.9%–37.5%, compared to 6.8%–17.4% on uncontaminated questions.
  • On SimpleQA, Sonar Pro and Sonar Reasoning Pro scored 100% on contaminated subsets.
  • Counterfactual Drop: Blocking Hugging Face on the contaminated subset caused an accuracy drop of roughly 15% to 20% across models on HLE, proving the retrieved labels directly drove performance gains.

Limitations and Future Work

  • Narrow Leakage Detection: The study only checked for Hugging Face URLs via simple substring matching, missing personal blogs, GitHub repositories, research papers, and obscure mirrors that also host answers.
  • Provider Differences: Other commercial search tools (OpenAI, Claude, Gemini) rarely retrieved Hugging Face links during preliminary tests, likely due to how their internal parsers handle dataset viewers, limiting cross-agent generalization.
  • Call for Next-Gen Evaluations: The authors argue that evaluation of search agents must evolve toward dynamic, time-varying benchmarks and multi-stage filtering ("Swiss cheese" security model) alongside transparent reporting of retrieval logs.

Summary updated

BibTeX
@inproceedings{han2025search,
  author = {Ziwen Han and Meher Mankikar and Julian Michael and Zifan Wang},
  title = {{Search-Time Data Contamination}},
  booktitle = {LLM Evaluation @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=FBoIUyY3wX},
}
Figure