Research Papers 论文研究 4h ago Updated 2h ago 更新于 2小时前 49

Leak It: A Probabilistic Approach to Training-Data Extraction from Black-Box Language Models 泄露它:从黑盒语言模型进行训练数据提取的概率方法

Aggregate ROC-AUC metrics for membership inference attacks on language models are misleading because blind bag-of-words baselines already achieve high AUC (0.97 on WikiMIA) without any model sampling, making sampling-based attacks appear effective when they are not. Black-box sampling can verbatim extract training data for a tail of documents that blind attacks cannot reach; on Pythia-6.9B, 16.6% of Pile documents with real identifiers were exactly reproduced and confirmed attributable to those 传统成员推理攻击(MIA)的ROC-AUC评估存在严重混淆,盲基线分类器仅从表面文本即可达到AUC 0.97,采样方法并未带来显著提升 黑盒采样方法可精确提取训练数据,Pythia-6.9B模型中16.6%的含标识符文档被完整复现,且泄露比例随模型规模从410M到6.9B从5.6%增至16.6% 代码领域的标识符泄露风险约为散文的3倍,任意续写恢复仅局限于代码领域(GitHub上成员差距+0.44 vs 散文最多+0.014) 温度采样和核采样对泄露影响甚微,仅需16个token前缀即可触发泄露,且语料去重未能减少泄露 研究发布leakit黑盒提取审计工具,建议隐私审计应报告按领域分解的逐文档

65
Hot 热度
75
Quality 质量
70
Impact 影响力

Analysis 深度分析

TL;DR

  • Aggregate ROC-AUC metrics for membership inference attacks on language models are misleading because blind bag-of-words baselines already achieve high AUC (0.97 on WikiMIA) without any model sampling, making sampling-based attacks appear effective when they are not.
  • Black-box sampling can verbatim extract training data for a tail of documents that blind attacks cannot reach; on Pythia-6.9B, 16.6% of Pile documents with real identifiers were exactly reproduced and confirmed attributable to those documents via mismatched-prefix controls.
  • Per-document disclosure scales with model capacity (5.6% to 16.6% from Pythia-410M to Pythia-6.9B) and is domain-dependent: identifier leakage is ~3x stronger in code than prose, and held-out continuation recovery is confined to code (+0.44 member gap on GitHub vs +0.014 on prose).
  • Sampling parameters (temperature, nucleus) have minimal impact on leakage, 16-token prefixes suffice for extraction, and corpus deduplication provides no measurable reduction in risk.
  • The authors release "leakit," a black-box extraction-audit tool, and argue privacy audits should report per-document extraction rates decomposed by domain rather than a single aggregate AUC.

Why It Matters

This work fundamentally challenges how the AI security community evaluates membership inference attacks, showing that widely cited aggregate metrics obscure real, document-level privacy harms that persist even when statistical tests appear non-significant. For AI practitioners deploying language models, it demonstrates that training-data leakage is not merely a statistical artifact but a concrete risk that scales with model size and varies significantly across domains, with code being particularly vulnerable.

Technical Details

  • The paper reframes black-box sampling-based leakage as a probabilistic problem, treating N samples from p(.|x) as estimates of the output distribution and casting leakage signals as functionals of that distribution.
  • On WikiMIA, a blind bag-of-words classifier achieves AUC 0.97 (TPR 0.90 at 5% FPR), and adding sampling provides no statistical improvement; on the IID Pile split (MIMIR), neither self-concentration nor gold-continuation recovery significantly outperforms the blind baseline (incremental AUC 95% CI includes zero).
  • Per-document analysis on Pythia-6.9B reveals 83 of 500 Pile documents with real identifiers (16.6%; 21.3% of those with email addresses) had exact identifiers reproduced and confirmed via mismatched-prefix controls, isolating leaks to specific documents rather than globally common strings.
  • Domain decomposition shows identifier leakage grows with capacity in both code (5.6% to 16.6%) and prose (4.0% to 12.1%), while arbitrary continuation recovery is nearly absent in prose (+0.014 max) but substantial in code (+0.44 member gap on GitHub).
  • Robustness checks find temperature and nucleus sampling parameters have little effect, 16-token prefixes are sufficient for extraction, and deduplication of the training corpus does not reduce leakage.

Industry Insight

  • Privacy audits for language models should abandon single aggregate AUC reports in favor of per-document extraction rates broken down by domain, as the latter reveals harms that aggregate metrics completely hide.
  • Organizations training on code-heavy datasets should treat model capacity scaling as a direct privacy risk multiplier, since code exhibits significantly stronger leakage signals than prose across all measured dimensions.
  • Deduplication alone is insufficient as a privacy mitigation; the absence of any measurable reduction from corpus deduplication suggests that complementary techniques (e.g., differential privacy, targeted sanitization of high-risk document tails) are necessary to address black-box extraction risks.

TL;DR

  • 传统成员推理攻击(MIA)的ROC-AUC评估存在严重混淆,盲基线分类器仅从表面文本即可达到AUC 0.97,采样方法并未带来显著提升
  • 黑盒采样方法可精确提取训练数据,Pythia-6.9B模型中16.6%的含标识符文档被完整复现,且泄露比例随模型规模从410M到6.9B从5.6%增至16.6%
  • 代码领域的标识符泄露风险约为散文的3倍,任意续写恢复仅局限于代码领域(GitHub上成员差距+0.44 vs 散文最多+0.014)
  • 温度采样和核采样对泄露影响甚微,仅需16个token前缀即可触发泄露,且语料去重未能减少泄露
  • 研究发布leakit黑盒提取审计工具,建议隐私审计应报告按领域分解的逐文档提取率而非单一AUC

为什么值得看

本文揭示了当前LLM隐私评估体系的重大缺陷——聚合指标(如ROC-AUC)会掩盖真实的训练数据泄露危害,为AI安全审计提供了更精确的评估框架。研究结果对模型开发者、隐私合规团队及AI政策制定者具有重要参考价值,尤其是在模型规模持续扩大的背景下,训练数据泄露风险呈非线性增长。

技术解析

  • 研究采用概率视角分析黑盒采样泄露,将N次采样视为输出分布p(.|x)的估计,将泄露信号建模为分布的泛函。通过不匹配前缀控制实验验证泄露的文档特异性,确保提取的标识符来自特定文档而非全局常见字符串。
  • 在Pythia-6.9B模型上测试500个含真实标识符的Pile文档,83个(16.6%,其中含邮箱的文档占21.3%)被精确复现且通过控制实验验证。泄露比例随模型规模从410M的5.6%增至6.9B的16.6%。
  • 领域差异显著:代码领域的标识符泄露强度约为散文的3倍,且任意续写恢复仅存在于代码领域(GitHub上成员差距+0.44,散文最多+0.014),但散文领域的泄露仍随模型规模增长(4.0%→12.1%)。
  • 采样参数(温度、核采样)对泄露影响不大,仅需16个token前缀即可触发泄露。语料去重策略未能有效减少训练数据泄露风险。

行业启示

  • 现有隐私评估标准(依赖单一AUC指标)存在系统性缺陷,无法反映逐文档级别的真实泄露风险。行业应建立更细粒度的审计框架,按领域分解报告提取率,而非仅依赖聚合指标。
  • 模型规模扩大带来的泄露风险呈非线性增长,开发者在扩大模型容量时需同步加强隐私保护机制。代码数据比自然语言文本面临更高的泄露威胁,应优先对代码类训练数据进行脱敏处理。
  • 语料去重等常见数据预处理策略对缓解训练数据泄露效果有限,行业需探索更有效的隐私保护技术(如差分隐私、数据遗忘等),并在模型发布前进行系统的黑盒提取审计。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Security 安全 Research 科学研究 Training 训练 Evaluation 评测