arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.10468cs.LGcs.CLcs.CR
收藏

通过调整后的影响函数追踪语言模型到训练数据的隐私泄露

Tracing Privacy Leakage of Language Models to Training Data via Adjusted Influence Functions

Huawei Technologies Canada Co. Ltd(华为技术加拿大有限公司)

Jinxin Liu, Zao Yang

AI总结:

本文提出启发式调整影响函数HAIF,通过降低大梯度范数token的权重来更准确地追溯语言模型隐私泄露至训练数据,并在多个数据集和模型上显著优于现有方法。

摘要:

大型语言模型(LLMs)生成的回复可能包含来自个人和组织的敏感信息,从而导致潜在的隐私泄露。本研究实现了影响函数(Influence Functions, IFs),将隐私泄露追溯到训练数据,从而缓解语言模型(LMs)的隐私问题。然而,我们注意到当前的影响函数难以准确估计具有较大梯度范数的token的影响,可能会高估其影响。在追溯最具影响力的样本时,这会导致频繁追溯到包含大梯度范数token的样本,从而掩盖了实际最具影响力的样本,即使它们的影响被准确估计。为了解决这一问题,我们提出了启发式调整影响函数(Heuristically Adjusted IF, HAIF),该方法降低具有较大梯度范数的token的权重,从而显著提高追溯最具影响力样本的准确性。为了为追溯隐私泄露建立易于获取的真值,我们构建了两个数据集,PII-E和PII-CR,分别代表两种不同的场景:一种是模型输出与预训练数据中存在相同文本,另一种是模型利用其推理能力生成与预训练数据不同的文本。HAIF显著提高了追溯准确性,在PII-E数据集上提升了20.96%至73.71%,在PII-CR数据集上提升了3.21%至45.93%,相较于针对各种GPT-2和QWen-1.5模型的最佳SOTA影响函数。HAIF还在真实世界预训练数据CLUECorpus2020上优于SOTA影响函数,展示了无论提示和回复长度如何都具有很强的鲁棒性。

英文摘要:

The responses generated by Large Language Models (LLMs) can include sensitive information from individuals and organizations, leading to potential privacy leakage. This work implements Influence Functions (IFs) to trace privacy leakage back to the training data, thereby mitigating privacy concerns of Language Models (LMs). However, we notice that current IFs struggle to accurately estimate the influence of tokens with large gradient norms, potentially overestimating their influence. When tracing the most influential samples, this leads to frequently tracing back to samples with large gradient norm tokens, overshadowing the actual most influential samples even if their influences are well estimated. To address this issue, we propose Heuristically Adjusted IF (HAIF), which reduces the weight of tokens with large gradient norms, thereby significantly improving the accuracy of tracing the most influential samples. To establish easily obtained groundtruth for tracing privacy leakage, we construct two datasets, PII-E and PII-CR, representing two distinct scenarios: one with identical text in the model outputs and pre-training data, and the other where models leverage their reasoning abilities to generate text divergent from pre-training data. HAIF significantly improves tracing accuracy, enhancing it by 20.96% to 73.71% on the PII-E dataset and 3.21% to 45.93% on the PII-CR dataset, compared to the best SOTA IFs against various GPT-2 and QWen-1.5 models. HAIF also outperforms SOTA IFs on real-world pretraining data CLUECorpus2020, demonstrating strong robustness regardless prompt and response lengths.

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

↑