arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.02785cs.LGcs.AI
收藏

随机猴子在玩耍:随机增强能以低成本破坏 LLM 安全对齐

Stochastic Monkeys at Play: Random Augmentations Cheaply Break LLM Safety Alignment

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Zhejiang University(浙江大学);VMware Research(威睿研究)

Jason Vega, Junsheng Huang, Gaokai Zhang, Hangoo Kang, Minjia Zhang, Gagandeep Singh

AI总结:

本文评估 17 个 LLM,发现低资源攻击者只需对每个提示施加 25 种简单随机增强,即可低成本绕过安全对齐,并揭示模型规模、量化、防御和解码策略等因素的影响。

摘要:

大型语言模型(LLM)的安全对齐近来已成为模型开发者的关键目标。相应地,越来越多的研究一直在考察安全对齐如何通过各种越狱方法被绕过,例如对抗攻击。然而,这些越狱方法可能成本相当高,或需要大量创造力与投入,从而引入了恶意用户拥有高资源或经验丰富的假设。本文研究对输入提示进行简单随机增强会如何影响 Llama 3 和 Qwen 2 等最先进 LLM 的安全对齐有效性。我们对 17 个不同模型进行了深入评估,并从多个维度考察随机增强下安全性的交叉影响:增强类型、模型规模、量化、基于微调的防御,以及解码策略(例如采样温度)。我们表明,低资源且缺乏经验的攻击者,即“随机猴子”,仅通过每个提示使用 25 种随机增强,就能显著提高绕过对齐的机会。源代码和数据:https://github.com/uiuc-focal-lab/stochastic-monkeys/

英文摘要:

Safety alignment of Large Language Models (LLMs) has recently become a critical objective of model developers. In response, a growing body of work has been investigating how safety alignment can be bypassed through various jailbreaking methods, such as adversarial attacks. However, these jailbreak methods can be rather costly or involve a non-trivial amount of creativity and effort, introducing the assumption that malicious users are high-resource or sophisticated. In this paper, we study how simple random augmentations to the input prompt affect safety alignment effectiveness in state-of-the-art LLMs, such as Llama 3 and Qwen 2. We perform an in-depth evaluation of 17 different models and investigate the intersection of safety under random augmentations with multiple dimensions: augmentation type, model size, quantization, fine-tuning-based defenses, and decoding strategies (e.g., sampling temperature). We show that low-resource and unsophisticated attackers, i.e. $\textit{stochastic monkeys}$, can significantly improve their chances of bypassing alignment with just 25 random augmentations per prompt. Source code and data: https://github.com/uiuc-focal-lab/stochastic-monkeys/

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

↑