Data Contamination Calibration for Black-box LLMs
Wentao Ye, Jiaqi Hu, Liyao Li, Haobo Wang, Gang Chen, Junbo Zhao
TL;DR
This work tackles the data contamination problem in large-language-model pretraining by extending Membership Inference Attacks into a practical, black-box detector called Polarized Augment Calibration (PAC). PAC uses adjacent-sample augmentation and a novel polarized distance to detect overfitted, memorized training samples without relying on external proxy models, and it includes a probabilistic tracking method for API-based LLMs. The authors introduce StackMIA, a dynamic benchmark for timely contamination evaluation, and demonstrate that PAC consistently outperforms baselines (average gains of 4.5% on WikiMIA and 5.9% on StackMIAsub in AUC) across ten models and multiple data formats, including synonym-rewritten data. Case studies on real-world models (e.g., GPT-3, ChatGPT, GPT-4) highlight substantial contamination and ethical-bias risks, underscoring the need for safer data curation and model deployment practices.
Abstract
The rapid advancements of Large Language Models (LLMs) tightly associate with the expansion of the training data size. However, the unchecked ultra-large-scale training sets introduce a series of potential risks like data contamination, i.e. the benchmark data is used for training. In this work, we propose a holistic method named Polarized Augment Calibration (PAC) along with a new to-be-released dataset to detect the contaminated data and diminish the contamination effect. PAC extends the popular MIA (Membership Inference Attack) -- from machine learning community -- by forming a more global target at detecting training data to Clarify invisible training data. As a pioneering work, PAC is very much plug-and-play that can be integrated with most (if not all) current white- and black-box LLMs. By extensive experiments, PAC outperforms existing methods by at least 4.5%, towards data contamination detection on more 4 dataset formats, with more than 10 base LLMs. Besides, our application in real-world scenarios highlights the prominent presence of contamination and related issues.
