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

越狱防御如何工作与集成?一项机制研究

How Jailbreak Defenses Work and Ensemble? A Mechanistic Investigation

Fudan University(复旦大学);University of Southern California(南加州大学)

Zhuohang Long, Siyuan Wang, Shujun Liu, Yuhang Lai, Xuanjing Huang, Zhongyu Wei

AI总结:

本文将越狱防御重构为二分类问题,识别安全偏移与有害性判别两种机制,并提出机制间与机制内集成策略,在 LLaVA-1.5 上提升安全性或优化安全-有用性权衡。

摘要:

越狱攻击是指有害提示绕过生成模型内置安全机制的攻击,引发了人们对模型脆弱性的严重担忧。尽管已有许多防御方法被提出,但安全性与有用性之间的权衡,以及这些方法在大型视觉-语言模型(LVLMs)上的应用,仍未得到充分理解。本文通过将标准生成任务重构为二分类问题,以评估模型对有害和良性查询的拒绝倾向,从而系统地考察越狱防御。我们识别出两种关键防御机制:安全偏移,即提高所有查询的拒绝率;以及有害性判别,即增强模型区分有害与良性输入的能力。利用这些机制,我们开发了两种集成防御策略——机制间集成与机制内集成——以平衡安全性和有用性。在 MM-SafetyBench 和 MOSSBench 数据集上使用 LLaVA-1.5 模型进行的实验表明,这些策略有效提升了模型安全性,或优化了安全性与有用性之间的权衡。

英文摘要:

Jailbreak attacks, where harmful prompts bypass generative models' built-in safety, raise serious concerns about model vulnerability. While many defense methods have been proposed, the trade-offs between safety and helpfulness, and their application to Large Vision-Language Models (LVLMs), are not well understood. This paper systematically examines jailbreak defenses by reframing the standard generation task as a binary classification problem to assess model refusal tendencies for both harmful and benign queries. We identify two key defense mechanisms: safety shift, which increases refusal rates across all queries, and harmfulness discrimination, which improves the model's ability to distinguish between harmful and benign inputs. Using these mechanisms, we develop two ensemble defense strategies-inter-mechanism ensembles and intra-mechanism ensembles-to balance safety and helpfulness. Experiments on the MM-SafetyBench and MOSSBench datasets with LLaVA-1.5 models show that these strategies effectively improve model safety or optimize the trade-off between safety and helpfulness.

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

↑