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

WildGuard:面向 LLM 安全风险、越狱与拒绝的开放式一站式审核工具

WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs

Seoul National University(首尔大学);Allen Institute for AI(艾伦人工智能研究所);University of Washington(华盛顿大学)

Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, Nouha Dziri

AI总结:

本文提出开放轻量的一站式 LLM 安全审核工具 WildGuard,并构建 9.2 万样本的 WildGuardMix;其在三项审核任务上达到开源 SOTA,部分超过 GPT-4,并显著降低越狱成功率。

摘要:

我们推出 WildGuard——一种开放、轻量级的 LLM 安全审核工具,实现三个目标:(1)识别用户提示中的恶意意图;(2)检测模型响应的安全风险;(3)确定模型拒绝率。WildGuard 共同满足了对 LLM 交互进行自动化安全审核与评估日益增长的需求,提供了一个准确性更高、覆盖 13 个风险类别的一站式工具。尽管 Llama-Guard2 等现有开放审核工具在对直接的模型交互进行分类时表现尚可,但它们远落后于经提示的 GPT-4,尤其是在识别对抗性越狱以及评估模型拒绝方面;拒绝是评估模型响应中安全行为的一项关键指标。为应对这些挑战,我们构建了 WildGuardMix,这是一个大规模且经过仔细平衡的多任务安全审核数据集,包含 9.2 万个标注样本,覆盖普通(直接)提示和对抗性越狱,并配有各种拒绝与服从响应。WildGuardMix 由 WildGuardTrain(WildGuard 的训练数据)和 WildGuardTest 组合而成;后者是一个高质量人工标注审核测试集,包含 5000 个标注项目,覆盖广泛风险场景。通过在 WildGuardTest 和十个现有公开基准上进行大量评估,我们表明,与十个强大的现有开源审核模型相比,WildGuard 在所有三项任务上都确立了开源安全审核的最先进性能(例如,拒绝检测最高提升 26.4%)。重要的是,WildGuard 达到、有时甚至超过 GPT-4 的性能(例如,提示有害性识别最高提升 3.9%)。WildGuard 可在 LLM 界面中充当高效安全审核器,将越狱攻击成功率从 79.8% 降至 2.4%。

英文摘要:

We introduce WildGuard -- an open, light-weight moderation tool for LLM safety that achieves three goals: (1) identifying malicious intent in user prompts, (2) detecting safety risks of model responses, and (3) determining model refusal rate. Together, WildGuard serves the increasing needs for automatic safety moderation and evaluation of LLM interactions, providing a one-stop tool with enhanced accuracy and broad coverage across 13 risk categories. While existing open moderation tools such as Llama-Guard2 score reasonably well in classifying straightforward model interactions, they lag far behind a prompted GPT-4, especially in identifying adversarial jailbreaks and in evaluating models' refusals, a key measure for evaluating safety behaviors in model responses. To address these challenges, we construct WildGuardMix, a large-scale and carefully balanced multi-task safety moderation dataset with 92K labeled examples that cover vanilla (direct) prompts and adversarial jailbreaks, paired with various refusal and compliance responses. WildGuardMix is a combination of WildGuardTrain, the training data of WildGuard, and WildGuardTest, a high-quality human-annotated moderation test set with 5K labeled items covering broad risk scenarios. Through extensive evaluations on WildGuardTest and ten existing public benchmarks, we show that WildGuard establishes state-of-the-art performance in open-source safety moderation across all the three tasks compared to ten strong existing open-source moderation models (e.g., up to 26.4% improvement on refusal detection). Importantly, WildGuard matches and sometimes exceeds GPT-4 performance (e.g., up to 3.9% improvement on prompt harmfulness identification). WildGuard serves as a highly effective safety moderator in an LLM interface, reducing the success rate of jailbreak attacks from 79.8% to 2.4%.

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

↑