arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17012cs.CRcs.AIcs.LG
收藏

潘多拉的白盒:大语言模型中的精准训练数据检测与提取

Pandora's White-Box: Precise Training Data Detection and Extraction in Large Language Models

Jeffrey G. Wang, Jason Wang, Marvin Li, Seth Neel

AI总结:

本文针对大语言模型提出性能远超基线的新型成员推断攻击,结合模型窃取等技术实现预训练数据成员检测,还可从微调模型中提取超半数微调数据集,推进了LLM隐私攻击领域的研究。

摘要:

本文针对大语言模型(Large Language Models, LLMs)开发了当前最先进的隐私攻击方法,即具备一定模型访问权限的攻击者试图获取底层训练数据相关信息的攻击。我们的核心成果包括:针对预训练LLM的新型成员推断攻击(membership inference attacks, MIAs),其性能比基线攻击高出数百倍;以及一套攻击流程,证明在自然场景下可从微调后的LLM中提取超过50%的微调数据集。我们考虑了对底层模型、预训练与微调数据的不同访问权限级别,同时研究了成员推断攻击与训练数据提取两类攻击。针对预训练数据,我们提出两种新型成员推断攻击:一种是有监督神经网络分类器,基于(降维后的)模型梯度预测训练数据的成员身份;另一种是该攻击的变体,利用近期关于LLM的模型窃取研究成果,仅需访问模型的logit即可实现。据我们所知,这是首个明确结合模型窃取信息的成员推断攻击。两种攻击的性能均优于现有黑盒基线,其中我们的有监督攻击缩小了LLM上成员推断攻击的成功率与其他机器学习模型上已知最强攻击之间的差距。在微调场景下,我们发现基于基础模型与微调模型损失值比值的简单攻击就能实现近乎完美的成员推断攻击性能;随后我们利用该成员推断攻击,从微调后的Pythia和Llama模型中提取了大部分微调数据集。我们的代码可在github.com/safr-ai-lab/pandora-llm获取。

英文摘要:

In this paper we develop state-of-the-art privacy attacks against Large Language Models (LLMs), where an adversary with some access to the model tries to learn something about the underlying training data. Our headline results are new membership inference attacks (MIAs) against pretrained LLMs that perform hundreds of times better than baseline attacks, and a pipeline showing that over 50% (!) of the fine-tuning dataset can be extracted from a fine-tuned LLM in natural settings. We consider varying degrees of access to the underlying model, pretraining and fine-tuning data, and both MIAs and training data extraction. For pretraining data, we propose two new MIAs: a supervised neural network classifier that predicts training data membership on the basis of (dimensionality-reduced) model gradients, as well as a variant of this attack that only requires logit access to the model by leveraging recent model-stealing work on LLMs. To our knowledge this is the first MIA that explicitly incorporates model-stealing information. Both attacks outperform existing black-box baselines, and our supervised attack closes the gap between MIA attack success against LLMs and the strongest known attacks for other machine learning models. In fine-tuning, we find that a simple attack based on the ratio of the loss between the base and fine-tuned models is able to achieve near-perfect MIA performance; we then leverage our MIA to extract a large fraction of the fine-tuning dataset from fine-tuned Pythia and Llama models. Our code is available at github.com/safr-ai-lab/pandora-llm.

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

↑