arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.19936cs.LGcs.AIcs.CL
收藏

Gap-K%: 通过测量 Top-1 预测差距检测预训练数据

Gap-K%: Measuring Top-1 Prediction Gap for Detecting Pretraining Data

Yonsei University(延世大学)

Minseo Kwak, Jaehyung Kim

AI总结:

提出 Gap-K% 方法,利用 LLM 的 top-1 预测与目标 token 的对数概率差距及滑动窗口策略,在 WikiMIA 和 MIMIR 基准上实现预训练数据检测的最优性能。

摘要:

大型语言模型(LLM)中大规模预训练语料库的不透明性引发了严重的隐私和版权问题,使得预训练数据检测成为一项关键挑战。现有的最先进方法通常依赖于 token 似然,但它们往往忽略了目标 token 与模型 top-1 预测之间的差距,以及相邻 token 之间的局部相关性。在这项工作中,我们提出了 Gap-K%,一种基于 LLM 预训练优化动态的新型预训练数据检测方法。通过分析下一个 token 预测目标,我们观察到模型 top-1 预测与目标 token 之间的差异会引发强烈的梯度信号,这些信号在训练过程中被明确惩罚。受此启发,Gap-K% 利用 top-1 预测 token 与目标 token 之间的对数概率差距,并结合滑动窗口策略来捕获局部相关性并缓解 token 级别的波动。在 WikiMIA 和 MIMIR 基准上的大量实验表明,Gap-K% 实现了最先进的性能,在各种模型大小和输入长度上始终优于先前的基线方法。

英文摘要:

The opacity of massive pretraining corpora in Large Language Models (LLMs) raises significant privacy and copyright concerns, making pretraining data detection a critical challenge. Existing state-of-the-art methods typically rely on token likelihoods, yet they often overlook the gap between the target token and the model's top-1 prediction, as well as local correlations between adjacent tokens. In this work, we propose Gap-K%, a novel pretraining data detection method grounded in the optimization dynamics of LLM pretraining. By analyzing the next-token prediction objective, we observe that discrepancies between the model's top-1 prediction and the target token induce strong gradient signals, which are explicitly penalized during training. Motivated by this, Gap-K% leverages the log probability gap between the top-1 predicted token and the target token, incorporating a sliding window strategy to capture local correlations and mitigate token-level fluctuations. Extensive experiments on the WikiMIA and MIMIR benchmarks demonstrate that Gap-K% achieves state-of-the-art performance, consistently outperforming prior baselines across various model sizes and input lengths.

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

↑