针对自回归语言模型的强大无训练成员推断
Powerful Training-Free Membership Inference Against Autoregressive Language Models
AI总结:
本文提出EZ-MIA方法,通过分析错误位置的概率偏差来检测细调语言模型的隐私风险,实验表明其在WikiText和AG News数据集上显著提高了检测率,为隐私审计提供了更有效的工具。
摘要:
细调语言模型对隐私构成重大风险,因为它们可能记住并暴露训练数据中的敏感信息。成员推断攻击(MIAs)提供了一个审计这些风险的框架,但现有方法在实际隐私审计所需的低误报率阈值下检测率有限。我们提出了EZ-MIA,利用关键观察:记忆在错误位置最明显,即模型预测错误但对训练示例仍有较高概率的token。我们引入了误差区(EZ)分数,该分数衡量误差位置的概率偏移方向性不平衡相对于预训练参考模型。这个原理性统计量仅需每个查询两次前向传递,无需任何模型训练。在WikiText与GPT-2上,EZ-MIA在相同条件下检测率比先前最佳方法高3.8倍(66.3% vs 17.5%在1%误报率下的真阳性率),具有几乎完美的区分能力(AUC 0.98)。在对现实世界审计至关重要的严格0.1% FPR阈值下,我们比先前工作高8倍(14.0% vs 1.8%),无需参考模型训练。这些成果扩展到更大架构:在AG News与Llama-2-7B上,我们实现3倍更高的检测率(46.7% vs 15.8%在1% FPR下的真阳性率)。这些结果表明,细调语言模型的隐私风险比之前理解的要大得多,对隐私审计和部署决策有影响。代码可在https://github.com/JetBrains-Research/ez-mia获取。
英文摘要:
Fine-tuned language models pose significant privacy risks, as they may memorize and expose sensitive information from their training data. Membership inference attacks (MIAs) provide a principled framework for auditing these risks, yet existing methods achieve limited detection rates, particularly at the low false-positive thresholds required for practical privacy auditing. We present EZ-MIA, a membership inference attack that exploits a key observation: memorization manifests most strongly at error positions, specifically tokens where the model predicts incorrectly yet still shows elevated probability for training examples. We introduce the Error Zone (EZ) score, which measures the directional imbalance of probability shifts at error positions relative to a pretrained reference model. This principled statistic requires only two forward passes per query and no model training of any kind. On WikiText with GPT-2, EZ-MIA achieves 3.8x higher detection than the previous state-of-the-art under identical conditions (66.3% versus 17.5% true positive rate at 1% false positive rate), with near-perfect discrimination (AUC 0.98). At the stringent 0.1% FPR threshold critical for real-world auditing, we achieve 8x higher detection than prior work (14.0% versus 1.8%), requiring no reference model training. These gains extend to larger architectures: on AG News with Llama-2-7B, we achieve 3x higher detection (46.7% versus 15.8% TPR at 1% FPR). These results establish that privacy risks of fine-tuned language models are substantially greater than previously understood, with implications for both privacy auditing and deployment decisions. Code is available at https://github.com/JetBrains-Research/ez-mia.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。