发现大模型生成的合成数据会泄露训练数据隐私,提出更有效的审计方法
The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Text
- 用会员推理攻击检测合成数据中的训练样本泄露
- 发现传统外分布信标在合成数据中效果差,因影响输出有限
- 设计内分布前缀+高困惑度后缀的信标,提升隐私风险评估能力
大语言模型生成的合成数据中可能泄露多少训练样本信息?忽视合成数据生成流程中的信息流动细节,会导致对隐私保护的误判。本文假设攻击者可获取由大语言模型生成的合成数据,设计针对用于微调该模型的训练数据的会员推理攻击(MIAs)。实验表明,所提MIA表现显著,证明合成数据确实泄露了训练数据信息。进一步发现,为模型类MIA设计的信标在仅发布合成数据时效果不佳:这些外分布信标在生成有用、内分布的合成数据时对模型输出影响甚微,极大削弱其有效性。为此,我们利用自回归模型机制,设计具有内分布前缀和高困惑度后缀的信标,使其在合成数据中留下可检测痕迹。该方法显著增强了数据类MIA的威力,提供了对释放大模型生成合成数据隐私风险的更准确评估。
原文摘要 · Abstract (English)
How much information about training samples can be leaked through synthetic data generated by Large Language Models (LLMs)? Overlooking the subtleties of information flow in synthetic data generation pipelines can lead to a false sense of privacy. In this paper, we assume an adversary has access to some synthetic data generated by a LLM. We design membership inference attacks (MIAs) that target the training data used to fine-tune the LLM that is then used to synthesize data. The significant performance of our MIA shows that synthetic data leak information about the training data. Further, we find that canaries crafted for model-based MIAs are sub-optimal for privacy auditing when only synthetic data is released. Such out-of-distribution canaries have limited influence on the model's output when prompted to generate useful, in-distribution synthetic data, which drastically reduces their effectiveness. To tackle this problem, we leverage the mechanics of auto-regressive models to design canaries with an in-distribution prefix and a high-perplexity suffix that leave detectable traces in synthetic data. This enhances the power of data-based MIAs and provides a better assessment of the privacy risks of releasing synthetic data generated by LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。