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

你不能既吃蛋糕又留蛋糕:越狱防御下大语言模型的性能退化

You Can't Eat Your Cake and Have It Too: The Performance Degradation of LLMs with Jailbreak Defense

Wuyuao Mai, Geng Hong, Pei Chen, Xudong Pan, Baojun Liu, Yuan Zhang, Haixin Duan, Min Yang

AI总结:

本研究构建USEBench基准与USEIndex指标,系统评估七种主流大语言模型在越狱防御下的效用退化、安全提升及过度安全升级,发现现有防御难以兼顾安全与性能,且开发者迭代时更重性能而非安全。

摘要:

随着生成式大语言模型(LLM)如LLaMA和ChatGPT的兴起,这些模型通过提供先进的见解,显著改变了日常生活和工作方式。然而,随着越狱攻击不断通过利用精心设计的场景或令牌来规避内置安全机制,大语言模型的安全风险已成为焦点。尽管已经提出了许多防御策略——如提示检测、修改和模型微调——来应对这些攻击,但一个关键问题随之而来:这些防御是否会损害合法用户对大语言模型的实用性和可用性?现有研究主要关注防御策略的有效性,而没有深入检查其对性能的影响,这导致在理解大语言模型安全与性能之间的权衡方面存在空白。我们的研究通过全面研究采用越狱防御策略的大语言模型的效用退化、安全提升和过度安全升级,填补了这一空白。我们提出了USEBench,一个旨在评估这些方面的新型基准,以及USEIndex,一个用于评估整体模型性能的综合指标。通过对七个最先进的大语言模型进行实验,我们发现主流的越狱防御无法同时确保安全性和性能。尽管模型微调整体表现最佳,但其有效性在不同大语言模型间存在差异。此外,纵向比较揭示,开发者在迭代或微调其大语言模型时,通常优先考虑性能而非安全性。

英文摘要:

With the rise of generative large language models (LLMs) like LLaMA and ChatGPT, these models have significantly transformed daily life and work by providing advanced insights. However, as jailbreak attacks continue to circumvent built-in safety mechanisms, exploiting carefully crafted scenarios or tokens, the safety risks of LLMs have come into focus. While numerous defense strategies--such as prompt detection, modification, and model fine-tuning--have been proposed to counter these attacks, a critical question arises: do these defenses compromise the utility and usability of LLMs for legitimate users? Existing research predominantly focuses on the effectiveness of defense strategies without thoroughly examining their impact on performance, leaving a gap in understanding the trade-offs between LLM safety and performance. Our research addresses this gap by conducting a comprehensive study on the utility degradation, safety elevation, and exaggerated-safety escalation of LLMs with jailbreak defense strategies. We propose USEBench, a novel benchmark designed to evaluate these aspects, along with USEIndex, a comprehensive metric for assessing overall model performance. Through experiments on seven state-of-the-art LLMs, we found that mainstream jailbreak defenses fail to ensure both safety and performance simultaneously. Although model-finetuning performs the best overall, their effectiveness varies across LLMs. Furthermore, vertical comparisons reveal that developers commonly prioritize performance over safety when iterating or fine-tuning their LLMs.

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

↑