arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12329cs.CLcs.AIcs.CRcs.LG
收藏

基于查询的对抗性提示生成

Query-Based Adversarial Prompt Generation

University of Washington(华盛顿大学);ETH Zürich(苏黎世联邦理工学院);Google Deepmind(谷歌DeepMind)

Jonathan Hayase, Ema Borevkovic, Nicholas Carlini, Florian Tramèr, Milad Nasr

AI总结:

该研究提出一种基于查询的对抗性提示生成攻击方法,利用语言模型的API访问构建对抗样本,在GPT-3.5和OpenAI安全分类器上验证了其比迁移攻击更高的有害内容诱导成功率与近乎100%的分类器绕过率。

摘要:

近期研究表明,构建能让经过对齐的语言模型输出有害字符串或实施有害行为的对抗样本是可行的。现有攻击要么在白盒场景(可完全访问模型权重)下生效,要么通过可迁移性实现:即针对一个模型构建的对抗样本通常对其他模型仍有效的现象。我们对先前研究进行改进,提出一种基于查询的攻击方法,该方法利用对远程语言模型的API访问来构建对抗样本,使模型输出有害字符串的概率远高于仅依赖可迁移性的攻击。我们在GPT-3.5和OpenAI的安全分类器上验证了该攻击:我们能让GPT-3.5输出当前迁移攻击无法诱导产生的有害字符串,还能以近100%的概率绕过安全分类器。

英文摘要:

Recent work has shown it is possible to construct adversarial examples that cause an aligned language model to emit harmful strings or perform harmful behavior. Existing attacks work either in the white-box setting (with full access to the model weights), or through transferability: the phenomenon that adversarial examples crafted on one model often remain effective on other models. We improve on prior work with a query-based attack that leverages API access to a remote language model to construct adversarial examples that cause the model to emit harmful strings with (much) higher probability than with transfer-only attacks. We validate our attack on GPT-3.5 and OpenAI's safety classifier; we can cause GPT-3.5 to emit harmful strings that current transfer attacks fail at, and we can evade the safety classifier with nearly 100% probability.

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

↑