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

从陌生到熟悉:通过梯度偏差检测大型语言模型中的预训练数据

From Unfamiliar to Familiar: Detecting Pre-training Data via Gradient Deviations in Large Language Models

Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, Beihang University(北京未来区块链与隐私计算先进创新中心,北京航空航天大学);School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院)

Ruiqi Zhang, Lingxiang Wang, Hainan Zhang, Zhiming Zheng, Yanyan Lan

AI总结:

提出GDS方法,通过分析目标样本的梯度偏差分数(包括更新幅度、位置和神经元激活集中度)来区分预训练成员与非成员数据,实现高效且跨数据集迁移的预训练数据检测。

摘要:

大型语言模型的预训练数据检测对于解决版权问题和减轻基准污染至关重要。现有方法主要关注微调前后的基于似然的统计特征或启发式信号,但前者易受语料库中词频偏差的影响,后者强烈依赖于微调数据的相似性。从优化角度,我们观察到在训练过程中,样本从陌生到熟悉的转变方式体现在梯度行为的系统性差异上。熟悉样本表现出更小的更新幅度、模型组件中不同的更新位置以及更尖锐激活的神经元。基于这一洞察,我们提出GDS,一种通过探测目标样本的梯度偏差分数来识别预训练数据的方法。具体来说,我们首先使用梯度轮廓表示每个样本,该轮廓捕获跨FFN和注意力模块的参数更新的幅度、位置和集中度,揭示成员与非成员数据之间的一致区别。然后将这些特征输入轻量级分类器进行二值成员推断。在五个公共数据集上的实验表明,GDS在强基线上实现了最先进的性能,并显著提高了跨数据集的可迁移性。进一步的可解释性分析揭示了梯度分布的差异,半监督结果为检测预训练数据提供了一种实用方法。

英文摘要:

Pre-training data detection for LLMs is essential for addressing copyright concerns and mitigating benchmark contamination. Existing methods mainly focus on the likelihood-based statistical features or heuristic signals before and after fine-tuning, but the former are susceptible to word frequency bias in corpora, and the latter strongly depend on the similarity of fine-tuning data. From an optimization perspective, we observe that during training, samples transition from unfamiliar to familiar in a manner reflected by systematic differences in gradient behavior. Familiar samples exhibit smaller update magnitudes, distinct update locations in model components, and more sharply activated neurons. Based on this insight, we propose GDS, a method that identifies pre-training data by probing Gradient Deviation Scores of target samples. Specifically, we first represent each sample using gradient profiles that capture the magnitude, location, and concentration of parameter updates across FFN and Attention modules, revealing consistent distinctions between member and non-member data. These features are then fed into a lightweight classifier to perform binary membership inference. Experiments on five public datasets show that GDS achieves state-of-the-art performance with significantly improved cross-dataset transferability over strong baselines. Further interpretability analyses reveal differences in gradient distributions, and the semi-supervised results offer a practical way to detect pre-training data.

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

↑