arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.27055cs.CLcs.AI
收藏

通过上下文学习检测大语言模型中的数据污染

Detecting Data Contamination in LLMs via In-Context Learning

NVIDIA

Michał Zawalski, Meriem Boubdir, Klaudia Bałazy, Besmira Nushi, Pablo Ribalta

AI总结:

本文提出CoDeC方法,通过测量上下文学习对模型性能的影响,检测并量化大语言模型训练数据污染,揭示开放权重模型中的记忆现象。

摘要:

我们提出Contamination Detection via Context (CoDeC),一种实用且准确的方法,用于检测和量化大语言模型中的训练数据污染。CoDeC通过测量上下文学习如何影响模型性能,区分训练期间记忆的数据和训练分布外的数据。我们发现,上下文示例通常会提升对未见数据集的置信度,但当数据集属于训练数据时,可能会降低置信度,因为记忆模式被破坏。实验表明,CoDeC产生可解释的污染分数,能够清晰地区分已见和未见数据集,并揭示开放权重模型中强记忆证据,尽管训练语料库不透明。该方法简单、自动化,且对模型和数据集都无偏见,易于集成到基准评估中。

英文摘要:

We present Contamination Detection via Context (CoDeC), a practical and accurate method to detect and quantify training data contamination in large language models. CoDeC distinguishes between data memorized during training and data outside the training distribution by measuring how in-context learning affects model performance. We find that in-context examples typically boost confidence for unseen datasets but may reduce it when the dataset was part of training, due to disrupted memorization patterns. Experiments show that CoDeC produces interpretable contamination scores that clearly separate seen and unseen datasets, and reveals strong evidence of memorization in open-weight models with undisclosed training corpora. The method is simple, automated, and both model- and dataset-agnostic, making it easy to integrate with benchmark evaluations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑