arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07494cs.CL
收藏

快速响应:利用少量样本缓解 LLM 越狱

Rapid Response: Mitigating LLM Jailbreaks with a Few Examples

Anthropic(Anthropic公司);New York University(纽约大学);MATS

Alwin Peng, Julian Michael, Henry Sleight, Ethan Perez, Mrinank Sharma

AI总结:

本文提出利用少量样本快速响应以缓解 LLM 越狱攻击,开发了 RapidResponseBench 基准,并评估了五种基于越狱增殖的快速响应方法,其中微调输入分类器的最强方法在仅观察一个样本时显著降低了攻击成功率。

摘要:

随着大型语言模型(LLMs)变得越来越强大,确保其安全性以防止滥用变得至关重要。尽管研究人员一直致力于开发稳健的防御措施,但目前尚无方法能实现完全免受攻击。我们提出了一种替代方法:与其追求完美的对抗稳健性,不如开发快速响应技术,旨在仅观察到少数攻击后就能封锁整类越狱攻击。为研究这一设定,我们开发了 RapidResponseBench,这是一个用于衡量防御措施在适应少量观察样本后,对各种越狱策略稳健性的基准。我们评估了五种快速响应方法,这些方法均利用了越狱增殖(jailbreak proliferation)技术,即自动生成与观察样本相似的额外越狱攻击。我们最强的方法是微调一个输入分类器来拦截增殖的越狱攻击,在仅观察到每种越狱策略的一个样本的情况下,使在分布内越狱集上的攻击成功率降低了 240 倍以上,在分布外越狱集上降低了 15 倍以上。此外,进一步的研究表明,增殖模型的质量和增殖样本的数量在这种防御的有效性中起着关键作用。总体而言,我们的结果突显了快速响应新型越狱以限制 LLM 滥用的潜力。

英文摘要:

As large language models (LLMs) grow more powerful, ensuring their safety against misuse becomes crucial. While researchers have focused on developing robust defenses, no method has yet achieved complete invulnerability to attacks. We propose an alternative approach: instead of seeking perfect adversarial robustness, we develop rapid response techniques to look to block whole classes of jailbreaks after observing only a handful of attacks. To study this setting, we develop RapidResponseBench, a benchmark that measures a defense's robustness against various jailbreak strategies after adapting to a few observed examples. We evaluate five rapid response methods, all of which use jailbreak proliferation, where we automatically generate additional jailbreaks similar to the examples observed. Our strongest method, which fine-tunes an input classifier to block proliferated jailbreaks, reduces attack success rate by a factor greater than 240 on an in-distribution set of jailbreaks and a factor greater than 15 on an out-of-distribution set, having observed just one example of each jailbreaking strategy. Moreover, further studies suggest that the quality of proliferation model and number of proliferated examples play an key role in the effectiveness of this defense. Overall, our results highlight the potential of responding rapidly to novel jailbreaks to limit LLM misuse.

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

↑