Tag&Tab:基于关键词的成员推理攻击在大语言模型预训练数据检测中的应用
Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference Attack
AI总结:
本文提出Tag&Tab方法,通过关键词标注与平均对数似然计算改进大语言模型预训练数据检测,在多个基准上AUC提升5.3%-17.6%。
摘要:
大语言模型(LLMs)已成为数字任务辅助的重要工具。其训练高度依赖海量数据的收集,这些数据可能包含受版权保护或敏感信息。近期关于检测大语言模型预训练数据的研究主要集中在句子级或段落级成员推理攻击(MIAs)上,通常涉及对目标模型预测token的概率分析。然而,这些方法往往准确率较差,未能考虑文本内容的语义重要性和词语显著性。为解决这些不足,我们提出Tag&Tab,一种用于检测大语言模型预训练数据的新方法。我们的方法利用成熟的自然语言处理(NLP)技术对输入文本中的关键词进行标注,这一过程我们称之为Tagging。然后,使用大语言模型获取这些关键词的概率,并计算其平均对数似然以确定输入文本的成员身份,这一过程我们称之为Tabbing。我们在四个基准数据集(BookMIA、MIMIR、PatentMIA和Pile)以及多个不同规模的开源大语言模型上进行了实验,结果表明AUC分数平均比最先进方法提高了5.3%至17.6%。Tag&Tab不仅为大语言模型中的数据泄露检测设立了新标准,其卓越性能也证明了词语在大语言模型成员推理攻击中的重要性。
英文摘要:
Large language models (LLMs) have become essential tools for digital task assistance. Their training relies heavily on the collection of vast amounts of data, which may include copyright-protected or sensitive information. Recent studies on detecting pretraining data in LLMs have primarily focused on sentence- or paragraph-level membership inference attacks (MIAs), usually involving probability analysis of the target model's predicted tokens. However, these methods often exhibit poor accuracy, failing to account for the semantic importance of textual content and word significance. To address these shortcomings, we propose Tag&Tab, a novel approach for detecting data used in LLM pretraining. Our method leverages established natural language processing (NLP) techniques to tag keywords in the input text, a process we term Tagging. Then, the LLM is used to obtain probabilities for these keywords and calculate their average log-likelihood to determine input text membership, a process we refer to as Tabbing. Our experiments on four benchmark datasets (BookMIA, MIMIR, PatentMIA, and the Pile) and several open-source LLMs of varying sizes demonstrate an average increase in AUC scores ranging from 5.3% to 17.6% over state-of-the-art methods. Tag&Tab not only sets a new standard for data leakage detection in LLMs, but its outstanding performance is a testament to the importance of words in MIAs on LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。