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

用于评估大语言模型错误拒绝的自动伪有害提示生成方法

Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Models

University of Maryland, College Park(马里兰大学 College Park 分校);Adobe Research(Adobe 研究院);Capital One(Capital One 公司)

Bang An, Sicheng Zhu, Ruiyi Zhang, Michael-Andrei Panaitescu-Liess, Yuancheng Xu, Furong Huang

AI总结:

针对大语言模型常错误拒绝伪有害无害请求的问题,提出首个自动生成多样化可控伪有害提示的方法,构建规模十倍于现有数据集的PHTest,评估20款LLM发现安全防御与可用性存在权衡,助力研发更安全易用的模型。

摘要:

经过安全对齐的大语言模型(LLM)有时会错误拒绝伪有害提示,例如“如何杀死一只蚊子”这类实际无害的请求。频繁的错误拒绝不仅会让用户感到沮丧,还会引发公众对齐齐欲保护的价值观的抵触。本文提出了首个可自动生成多样化、内容可控且依赖于模型的伪有害提示的方法。利用该方法,我们构建了名为PHTest的评估数据集,其规模是现有数据集的十倍,覆盖更多错误拒绝模式,并对存在争议的提示进行了单独标注。我们在PHTest上评估了20个大语言模型,凭借数据集的规模和标注特性获得了新的发现。研究结果揭示了在减少错误拒绝与提升针对越狱攻击的安全性之间存在权衡关系。此外,我们发现许多越狱防御措施会显著提高错误拒绝率,从而损害可用性。我们的方法和数据集可帮助开发者评估并微调更安全、更易用的大语言模型。代码和数据集可在https://github.com/umd-huang-lab/FalseRefusal获取。

英文摘要:

Safety-aligned large language models (LLMs) sometimes falsely refuse pseudo-harmful prompts, like "how to kill a mosquito," which are actually harmless. Frequent false refusals not only frustrate users but also provoke a public backlash against the very values alignment seeks to protect. In this paper, we propose the first method to auto-generate diverse, content-controlled, and model-dependent pseudo-harmful prompts. Using this method, we construct an evaluation dataset called PHTest, which is ten times larger than existing datasets, covers more false refusal patterns, and separately labels controversial prompts. We evaluate 20 LLMs on PHTest, uncovering new insights due to its scale and labeling. Our findings reveal a trade-off between minimizing false refusals and improving safety against jailbreak attacks. Moreover, we show that many jailbreak defenses significantly increase the false refusal rates, thereby undermining usability. Our method and dataset can help developers evaluate and fine-tune safer and more usable LLMs. Our code and dataset are available at https://github.com/umd-huang-lab/FalseRefusal

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

↑