arXiv:2505.09921cs.CRcs.CL2025-05ACL被引 15

用梯度迭代优化攻击大模型隐私漏洞,高效提取敏感信息

PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization

  • 基于梯度迭代优化,在上下文中逐步构建隐私攻击提示
  • 在4个白盒和2个黑盒模型上均超越现有方法,达到最先进效果
  • 适合研究大模型安全与隐私防护的学者及工程师参考

大型语言模型在多个领域表现优异,但存在固有的隐私风险。现有评估隐私泄露的方法多依赖记忆前缀或简单指令,易被对齐模型阻断。同时,越狱攻击可绕过大模型安全机制生成有害内容,但在隐私场景中的作用尚未深入探索。本文研究越狱攻击在提取敏感信息方面的有效性,连接隐私泄露与越狱攻击问题。提出新型框架PIG,专门针对个人身份信息(PII),解决现有越狱方法的局限性。具体而言,PIG识别隐私查询中的PII实体及其类型,利用上下文学习构建隐私上下文,并通过三种基于梯度的策略迭代优化,诱导目标PII输出。我们在两个与隐私相关的数据集上评估PIG及现有越狱方法。在四个白盒和两个黑盒大模型上的实验表明,PIG优于基线方法,达到当前最优性能。结果凸显大模型中显著的隐私风险,强调亟需更强防护措施。代码已开源:https://github.com/redwyd/PrivacyJailbreak。

原文摘要 · Abstract (English)

Large Language Models (LLMs) excel in various domains but pose inherent privacy risks. Existing methods to evaluate privacy leakage in LLMs often use memorized prefixes or simple instructions to extract data, both of which well-alignment models can easily block. Meanwhile, Jailbreak attacks bypass LLM safety mechanisms to generate harmful content, but their role in privacy scenarios remains underexplored. In this paper, we examine the effectiveness of jailbreak attacks in extracting sensitive information, bridging privacy leakage and jailbreak attacks in LLMs. Moreover, we propose PIG, a novel framework targeting Personally Identifiable Information (PII) and addressing the limitations of current jailbreak methods. Specifically, PIG identifies PII entities and their types in privacy queries, uses in-context learning to build a privacy context, and iteratively updates it with three gradient-based strategies to elicit target PII. We evaluate PIG and existing jailbreak methods using two privacy-related datasets. Experiments on four white-box and two black-box LLMs show that PIG outperforms baseline methods and achieves state-of-the-art (SoTA) results. The results underscore significant privacy risks in LLMs, emphasizing the need for stronger safeguards. Our code is availble at https://github.com/redwyd/PrivacyJailbreak.

隐私安全越狱攻击大模型

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