When Benchmarks Leak: Inference-Time Decontamination for LLMs
Jianzhe Chai, Yu Zhe, Jun Sakuma
TL;DR
This work addresses benchmark contamination in open-weight LLMs, where test items leak into training and inflate scores. It introduces DeconIEP, an inference-time method that applies small, bounded embedding perturbations guided by a less-contaminated reference model to suppress memorization-driven shortcuts without modifying model weights. By training a lightweight perturbation generator under a KL-divergence surrogate, DeconIEP demonstrates strong decontamination (low residual contamination) with minimal benign-utility loss across multiple benchmarks and model scales, including code-generation tasks. The approach preserves semantics better than rewriting or patching strategies and offers a controllable RC–BUD trade-off via the perturbation budget, making it practical for robust, reproducible evaluation in open-weight LLM ecosystems.
Abstract
Benchmark-based evaluation is the de facto standard for comparing large language models (LLMs). However, its reliability is increasingly threatened by test set contamination, where test samples or their close variants leak into training data and artificially inflate reported performance. To address this issue, prior work has explored two main lines of mitigation. One line attempts to identify and remove contaminated benchmark items before evaluation, but this inevitably alters the evaluation set itself and becomes unreliable when contamination is moderate or severe. The other line preserves the benchmark and instead suppresses contaminated behavior at evaluation time; however, such interventions often interfere with normal inference and lead to noticeable performance degradation on clean inputs. We propose DeconIEP, a decontamination framework that operates entirely during evaluation by applying small, bounded perturbations in the input embedding space. Guided by a relatively less-contaminated reference model, DeconIEP learns an instance-adaptive perturbation generator that steers the evaluated model away from memorization-driven shortcut pathways. Across multiple open-weight LLMs and benchmarks, extensive empirical results show that DeconIEP achieves strong decontamination effectiveness while incurring only minimal degradation in benign utility.
