arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.09063cs.LG
收藏

软提示威胁:通过嵌入空间攻击开源LLM的安全对齐与遗忘功能

Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space

Technical University of Munich(慕尼黑工业大学);Munich Data Science Institute(慕尼黑数据科学研究所);Mila(米拉研究所);Université de Montréal(蒙特利尔大学)

Leo Schwinn, David Dobre, Sophie Xhonneux, Gauthier Gidel, Stephan Gunnemann

AI总结:

针对开源LLM的安全对齐与遗忘功能,提出嵌入空间攻击,直接操纵输入token的连续嵌入表示,可更高效绕过对齐触发有害行为,并能从遗忘后模型中提取删除信息,揭示其为重要威胁模型。

摘要:

当前LLM对抗鲁棒性研究聚焦于自然语言空间中的离散输入操纵,这类攻击可直接迁移至闭源模型。但该方法忽视了开源模型的持续发展:随着开源模型能力提升,保障其安全性愈发关键,而针对开源LLM、利用完整模型访问权限的定制化攻击仍未充分探索。为此,我们提出嵌入空间攻击,直接攻击输入token的连续嵌入表示。研究发现,嵌入空间攻击比离散攻击或模型微调更高效地绕过模型对齐并触发有害行为;我们还提出遗忘场景下的新型威胁模型,证明该攻击能从多个数据集和模型的遗忘后LLM中提取本应删除的信息。研究表明嵌入空间攻击是开源LLM的重要威胁模型。警告:附录包含LLM生成的暴力与骚扰文本。

英文摘要:

Current research in adversarial robustness of LLMs focuses on discrete input manipulations in the natural language space, which can be directly transferred to closed-source models. However, this approach neglects the steady progression of open-source models. As open-source models advance in capability, ensuring their safety also becomes increasingly imperative. Yet, attacks tailored to open-source LLMs that exploit full model access remain largely unexplored. We address this research gap and propose the embedding space attack, which directly attacks the continuous embedding representation of input tokens. We find that embedding space attacks circumvent model alignments and trigger harmful behaviors more efficiently than discrete attacks or model fine-tuning. Furthermore, we present a novel threat model in the context of unlearning and show that embedding space attacks can extract supposedly deleted information from unlearned LLMs across multiple datasets and models. Our findings highlight embedding space attacks as an important threat model in open-source LLMs. Trigger Warning: the appendix contains LLM-generated text with violence and harassment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑