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

JAILJUDGE:一个具有多智能体增强解释评估框架的综合越狱判断基准

JAILJUDGE: A Comprehensive Jailbreak Judge Benchmark with Multi-Agent Enhanced Explanation Evaluation Framework

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Baidu Inc.(百度公司);The Hong Kong University of Science and Technology(香港科技大学);University of Birmingham(伯明翰大学)

Fan Liu, Yue Feng, Zhao Xu, Lixin Su, Xinyu Ma, Dawei Yin, Hao Liu

AI总结:

本文提出JAILJUDGE综合越狱判断基准及JailJudge MultiAgent可解释评估框架,并基于其构建JAILJUDGE Guard、JailBoost和GuardShield,在零样本场景下显著提升越狱攻击与防御性能。

摘要:

尽管在增强大语言模型(LLM)抵御越狱攻击的安全性方面取得了进展,但评估LLM防御能力仍然是一个挑战,当前方法往往缺乏可解释性和对复杂场景的泛化能力,导致评估不完整(例如,直接判断而不给出推理过程、GPT-4在复杂案例中的F1分数较低、多语言场景中存在偏差)。为了解决这一问题,我们提出了JAILJUDGE,这是一个综合基准,包含多样化的风险场景,包括合成、对抗、真实环境和多语言提示,以及高质量的人工标注数据集。JAILJUDGE数据集包含超过35k条带有推理可解释性的指令微调数据,以及JAILJUDGETEST,一个包含4.5k多条标注样本的风险场景测试集,还有一个覆盖十种语言的6k多条多语言数据集。为了通过显式推理增强评估,我们提出了JailJudge MultiAgent框架,该框架能够实现可解释的细粒度评分(1到10分)。该框架支持构建指令微调的真值数据,并促进了JAILJUDGE Guard的开发,这是一个端到端的判断模型,能够提供推理过程并消除API成本。此外,我们引入了JailBoost,一个与攻击者无关的攻击增强器,以及GuardShield,一个审核防御模块,两者都利用了JAILJUDGE Guard。我们的实验表明,JailJudge方法(JailJudge MultiAgent、JAILJUDGE Guard)在多种模型(例如GPT-4、Llama-Guard)和零样本场景下均取得了最先进的性能。JailBoost和GuardShield在零样本设置下显著改善了越狱攻击和防御任务,JailBoost将性能提升了29.24%,GuardShield将防御的攻击成功率(ASR)从40.46%降低到0.15%。

英文摘要:

Despite advancements in enhancing LLM safety against jailbreak attacks, evaluating LLM defenses remains a challenge, with current methods often lacking explainability and generalization to complex scenarios, leading to incomplete assessments (e.g., direct judgment without reasoning, low F1 score of GPT-4 in complex cases, bias in multilingual scenarios). To address this, we present JAILJUDGE, a comprehensive benchmark featuring diverse risk scenarios, including synthetic, adversarial, in-the-wild, and multilingual prompts, along with high-quality human-annotated datasets. The JAILJUDGE dataset includes over 35k+ instruction-tune data with reasoning explainability and JAILJUDGETEST, a 4.5k+ labeled set for risk scenarios, and a 6k+ multilingual set across ten languages. To enhance evaluation with explicit reasoning, we propose the JailJudge MultiAgent framework, which enables explainable, fine-grained scoring (1 to 10). This framework supports the construction of instruction-tuning ground truth and facilitates the development of JAILJUDGE Guard, an end-to-end judge model that provides reasoning and eliminates API costs. Additionally, we introduce JailBoost, an attacker-agnostic attack enhancer, and GuardShield, a moderation defense, both leveraging JAILJUDGE Guard. Our experiments demonstrate the state-of-the-art performance of JailJudge methods (JailJudge MultiAgent, JAILJUDGE Guard) across diverse models (e.g., GPT-4, Llama-Guard) and zero-shot scenarios. JailBoost and GuardShield significantly improve jailbreak attack and defense tasks under zero-shot settings, with JailBoost enhancing performance by 29.24% and GuardShield reducing defense ASR from 40.46% to 0.15%.

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

↑