arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.18110cs.LG
收藏

通过注意力信号进行大语言模型成员推断攻击:AttenMIA

AttenMIA: LLM Membership Inference Attack through Attention Signals

CSE Department, University of California, Riverside, USA(加州大学河滨分校计算机科学与工程系);CSIT, Queen’s University Belfast, UK(贝尔法斯特女王大学计算机科学与信息技术系)

Pedram Zaree, Md Abdullah Al Mamun, Yue Dong, Ihsen Alouani, Nael Abu-Ghazaleh

AI总结:

AttenMIA通过分析Transformer中的注意力信号,提出了一种更有效的成员推断攻击方法,展示了其在提升攻击性能和揭示隐私风险方面的贡献。

摘要:

大型语言模型(LLMs)越来越多地被部署以启用或改进多种现实应用。鉴于其训练数据集的规模庞大,其倾向于记忆训练数据的倾向引发了严重的隐私和知识产权问题。主要威胁是成员推断攻击(MIA),其旨在确定给定样本是否包含在模型的训练集中。现有的LLM MIA主要依赖于输出置信度分数或基于嵌入的特征,但这些信号往往脆弱,导致攻击成功率有限。我们引入了AttenMIA,一种新的MIA框架,利用Transformer模型内部的自我注意力模式来推断成员身份。注意力控制Transformer内部的信息流,暴露了不同的记忆模式,可用于识别数据集的成员。我们的方法利用跨层的注意力头信息,并将其与基于扰动的分歧度度量结合,以训练一个有效的MIA分类器。在大量实验中,我们使用开源模型,包括LLaMA-2、Pythia和Opt模型,证明了基于注意力的特征在基线上表现一致,特别是在低假阳性指标下(例如,在WikiMIA-32基准测试中,使用Llama2-13b时,达到高达0.996 ROC AUC和87.9% TPR@1%FPR)。我们展示了注意力信号在不同数据集和架构上的泛化能力,并提供了层和头级别的分析,以确定成员泄露最显著的地方。我们还展示了在数据提取框架中使用AttenMIA替代其他成员推断攻击,可以产生优于现有方法的数据提取攻击。我们的发现表明,注意力机制最初引入以增强可解释性,但可能无意中加剧了LLM中的隐私风险,凸显了需要新防御措施的必要性。

英文摘要:

Large Language Models (LLMs) are increasingly deployed to enable or improve a multitude of real-world applications. Given the large size of their training data sets, their tendency to memorize training data raises serious privacy and intellectual property concerns. A key threat is the membership inference attack (MIA), which aims to determine whether a given sample was included in the model's training set. Existing MIAs for LLMs rely primarily on output confidence scores or embedding-based features, but these signals are often brittle, leading to limited attack success. We introduce AttenMIA, a new MIA framework that exploits self-attention patterns inside the transformer model to infer membership. Attention controls the information flow within the transformer, exposing different patterns for memorization that can be used to identify members of the dataset. Our method uses information from attention heads across layers and combines them with perturbation-based divergence metrics to train an effective MIA classifier. Using extensive experiments on open-source models including LLaMA-2, Pythia, and Opt models, we show that attention-based features consistently outperform baselines, particularly under the important low-false-positive metric (e.g., achieving up to 0.996 ROC AUC & 87.9% TPR@1%FPR on the WikiMIA-32 benchmark with Llama2-13b). We show that attention signals generalize across datasets and architectures, and provide a layer- and head-level analysis of where membership leakage is most pronounced. We also show that using AttenMIA to replace other membership inference attacks in a data extraction framework results in training data extraction attacks that outperform the state of the art. Our findings reveal that attention mechanisms, originally introduced to enhance interpretability, can inadvertently amplify privacy risks in LLMs, underscoring the need for new defenses.

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

↑