用自适应记忆检测视觉语言模型的越狱攻击,无需有害数据也能高效识别。
JailDAM: Jailbreak Detection with Adaptive Memory for Vision-Language Model
- 基于策略驱动的危险知识记忆,动态更新检测能力。
- 在多个基准上准确率领先,检测速度比现有方法快3倍以上。
- 适合部署在真实场景中,无需白盒访问或标注数据。
多模态大语言模型(MLLM)在视觉-语言任务中表现优异,但也存在生成有害内容的重大风险,尤其是通过越狱攻击绕过安全机制。越狱攻击指有意操纵模型以生成不当或不安全内容。检测此类攻击对确保MLLM负责任部署至关重要。现有方法面临三大挑战:(1) 多数依赖模型隐藏状态或梯度,仅适用于白盒模型;(2) 基于不确定性的分析带来高计算开销,难以实现实时检测;(3) 需要完全标注的有害数据集,而这类数据在实际中常稀缺。为此,我们提出一种测试时自适应框架JAILDAM。该方法采用由策略驱动的危险知识表示的记忆机制,无需显式接触有害数据即可实现检测。通过在测试时动态更新危险知识,该框架提升了对未见越狱策略的泛化能力,同时保持高效率。在多个视觉语言模型越狱检测基准上的实验表明,JAILDAM在有害内容检测上达到当前最优性能,兼具高准确率与高检测速度。
原文摘要 · Abstract (English)
Multimodal large language models (MLLMs) excel in vision-language tasks but also pose significant risks of generating harmful content, particularly through jailbreak attacks. Jailbreak attacks refer to intentional manipulations that bypass safety mechanisms in models, leading to the generation of inappropriate or unsafe content. Detecting such attacks is critical to ensuring the responsible deployment of MLLMs. Existing jailbreak detection methods face three primary challenges: (1) Many rely on model hidden states or gradients, limiting their applicability to white-box models, where the internal workings of the model are accessible; (2) They involve high computational overhead from uncertainty-based analysis, which limits real-time detection, and (3) They require fully labeled harmful datasets, which are often scarce in real-world settings. To address these issues, we introduce a test-time adaptive framework called JAILDAM. Our method leverages a memory-based approach guided by policy-driven unsafe knowledge representations, eliminating the need for explicit exposure to harmful data. By dynamically updating unsafe knowledge during test-time, our framework improves generalization to unseen jailbreak strategies while maintaining efficiency. Experiments on multiple VLM jailbreak benchmarks demonstrate that JAILDAM delivers state-of-the-art performance in harmful content detection, improving both accuracy and speed.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。