arXiv:2601.12104cs.CLcs.AI2026-01ACL被引 1

不需训练即可高效检测微调语言模型的隐私泄露风险。

Powerful Training-Free Membership Inference Against Autoregressive Language Models

  • 通过分析模型出错时的概率异常,设计无训练的漏洞探测方法。
  • 在1%假阳性率下,检测率比前人高3.8倍,AUC达0.98。
  • 适用于大模型,适合关注隐私审计与安全部署的研究者。

微调的语言模型可能记忆并泄露训练数据中的敏感信息,构成严重隐私风险。会员推理攻击(MIAs)为评估此类风险提供了有效框架,但现有方法在低误报率条件下检测能力有限。本文提出EZ-MIA,基于关键观察:记忆现象在错误预测位置最明显,即模型预测错误但仍对训练样本保持较高概率。引入误差区域(EZ)得分,衡量错误位置上概率变化的方向性不平衡,相对于预训练参考模型。该统计量仅需每查询两次前向传播,无需任何模型训练。在WikiText数据集上使用GPT-2,EZ-MIA在相同条件下(1%假阳性率)实现66.3%真正率,较之前最优方法(17.5%)提升3.8倍,AUC达0.98。在更严格的0.1%假阳性率阈值下,检测率提升8倍(14.0%对比1.8%),且无需参考模型训练。该优势扩展至更大模型:在AG News数据集上使用Llama-2-7B,真正率提升3倍(46.7%对比15.8%)。结果表明,微调语言模型的隐私风险远超此前认知,对隐私审计与部署决策具有深远影响。代码已开源:https://github.com/JetBrains-Research/ez-mia。

原文摘要 · Abstract (English)

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.

隐私安全会员攻击语言模型无训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。