Inference-Time Decontamination: Reusing Leaked Benchmarks for Large Language Model Evaluation
Qin Zhu, Qingyuan Cheng, Runyu Peng, Xiaonan Li, Tengxiao Liu, Ru Peng, Xipeng Qiu, Xuanjing Huang
TL;DR
This work tackles the problem of benchmark data contamination in large language model evaluations by proposing Inference-Time Decontamination (ITD), a three-stage framework that detects potentially leaked samples, rewrites them to preserve task difficulty, and re-evaluates with assurance checks. By applying MinKProb-based contamination detection and automated rewrite strategies for math (GSM8K) and knowledge-based (MMLU) tasks, ITD reduces artificial performance inflation without requiring the creation of new benchmarks. Proof-of-concept experiments show substantial reductions in inflated accuracy (GSM8K: 22.9%, MMLU: 19.0%), and real-model tests with Phi-3-mini and Mistral-7b-base demonstrate practical applicability, though detection effectiveness remains imperfect. Overall, ITD offers a scalable path to more truthful LLM evaluation and motivates further development of detection and rewriting techniques to curb benchmark leakage in real-world settings.
Abstract
The training process of large language models (LLMs) often involves varying degrees of test data contamination. Although current LLMs are achieving increasingly better performance on various benchmarks, their performance in practical applications does not always match their benchmark results. Leakage of benchmarks can prevent the accurate assessment of LLMs' true performance. However, constructing new benchmarks is costly, labor-intensive and still carries the risk of leakage. Therefore, in this paper, we ask the question, Can we reuse these leaked benchmarks for LLM evaluation? We propose Inference-Time Decontamination (ITD) to address this issue by detecting and rewriting leaked samples without altering their difficulties. ITD can mitigate performance inflation caused by memorizing leaked benchmarks. Our proof-of-concept experiments demonstrate that ITD reduces inflated accuracy by 22.9% on GSM8K and 19.0% on MMLU. On MMLU, using Inference-time Decontamination can lead to a decrease in the results of Phi3 and Mistral by 6.7% and 3.6% respectively. We hope that ITD can provide more truthful evaluation results for large language models.
