arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.15570cs.CRcs.AIcs.CL
收藏

针对语言模型的快速对抗攻击:一个GPU分钟即可完成

Fast Adversarial Attacks on Language Models In One GPU Minute

Department of Computer Science;Department of Electrical \& Computer Engineering

Vinu Sankar Sadasivan, Shoumik Saha, Gaurang Sriramanan, Priyatham Kattakinda, Atoosa Chegini, Soheil Feizi

AI总结:

本文提出基于束搜索的快速对抗攻击方法BEAST,可在约一分钟内以高成功率越狱对齐语言模型,并能诱发幻觉和增强成员推断攻击,为语言模型安全研究提供高效工具。

摘要:

在本文中,我们提出了一类新颖的、基于束搜索的快速对抗攻击方法(BEAST),用于语言模型(LMs)。BEAST采用可解释的参数,使攻击者能够在攻击速度、成功率和对抗性提示的可读性之间进行权衡。BEAST的计算效率使我们能够研究其在语言模型越狱、诱发幻觉和隐私攻击方面的应用。我们的无梯度定向攻击能够在一分钟内以高攻击成功率越狱对齐的语言模型。例如,BEAST可以在不到一分钟的时间内越狱Vicuna-7B-v1.5,成功率达到89%,而基于梯度的基线方法使用单个Nvidia RTX A6000 48GB GPU需要超过一小时才能达到70%的成功率。此外,我们发现了一个独特的结果,即我们的非定向攻击会诱导语言模型聊天机器人产生幻觉。通过人工评估,我们发现与未受到攻击时的语言模型输出相比,我们的非定向攻击使Vicuna-7B-v1.5产生约15%更多的错误输出。我们还了解到,在22%的情况下,BEAST会使Vicuna生成与原始提示不相关的输出。此外,我们使用BEAST在几秒钟内生成对抗性提示,这些提示可以提升现有语言模型成员推断攻击的性能。我们相信,我们的快速攻击方法BEAST有潜力加速语言模型安全与隐私领域的研究。我们的代码库已在https://github.com/vinusankars/BEAST公开提供。

英文摘要:

In this paper, we introduce a novel class of fast, beam search-based adversarial attack (BEAST) for Language Models (LMs). BEAST employs interpretable parameters, enabling attackers to balance between attack speed, success rate, and the readability of adversarial prompts. The computational efficiency of BEAST facilitates us to investigate its applications on LMs for jailbreaking, eliciting hallucinations, and privacy attacks. Our gradient-free targeted attack can jailbreak aligned LMs with high attack success rates within one minute. For instance, BEAST can jailbreak Vicuna-7B-v1.5 under one minute with a success rate of 89% when compared to a gradient-based baseline that takes over an hour to achieve 70% success rate using a single Nvidia RTX A6000 48GB GPU. Additionally, we discover a unique outcome wherein our untargeted attack induces hallucinations in LM chatbots. Through human evaluations, we find that our untargeted attack causes Vicuna-7B-v1.5 to produce ~15% more incorrect outputs when compared to LM outputs in the absence of our attack. We also learn that 22% of the time, BEAST causes Vicuna to generate outputs that are not relevant to the original prompt. Further, we use BEAST to generate adversarial prompts in a few seconds that can boost the performance of existing membership inference attacks for LMs. We believe that our fast attack, BEAST, has the potential to accelerate research in LM security and privacy. Our codebase is publicly available at https://github.com/vinusankars/BEAST.

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

↑