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

学习检测未见过的大型视觉-语言模型中的对抗攻击

Learning to Detect Unseen Jailbreak Attacks in Large Vision-Language Models

Renmin University of China(中国人民大学);Alibaba Group(阿里巴巴集团)

Shuang Liang, Zhihao Xu, Jiaqi Weng, Jialing Tao, Hui Xue, Xiting Wang

AI总结:

LoD通过学习模型内部激活生成安全表示,实现对未见过的对抗攻击的高效检测,提升检测性能和效率。

摘要:

尽管进行了广泛的一致性努力,大型视觉-语言模型(LVLMs)仍然容易受到对抗攻击的攻击。为了减轻这些风险,现有的检测方法是必要的,但它们面临两个主要挑战:泛化和准确性。虽然基于学习的方法在特定攻击上训练失败于泛化到未见过的攻击,而基于手工制定启发式的无学习方法则受到有限的准确性和减少的效率的限制。为了解决这些限制,我们提出了学习检测(LoD),一个可学习的框架,它消除了任何攻击数据或手工制定启发式的需要。LoD通过首先使用多模态安全概念激活向量分类器从模型的内部激活中提取层级安全表示,然后通过安全模式自编码器将高维表示转换为一维异常分数进行检测。广泛的实验表明,LoD在多种LVLMs上对各种未见过的对抗攻击始终实现了最先进的检测性能(AUROC),同时显著提高了效率。代码可在https://anonymous.4open.science/r/Learning-to-Detect-51CB上获得。

英文摘要:

Despite extensive alignment efforts, Large Vision-Language Models (LVLMs) remain vulnerable to jailbreak attacks. To mitigate these risks, existing detection methods are essential, yet they face two major challenges: generalization and accuracy. While learning-based methods trained on specific attacks fail to generalize to unseen attacks, learning-free methods based on hand-crafted heuristics suffer from limited accuracy and reduced efficiency. To address these limitations, we propose Learning to Detect (LoD), a learnable framework that eliminates the need for any attack data or hand-crafted heuristics. LoD operates by first extracting layer-wise safety representations directly from the model's internal activations using Multi-modal Safety Concept Activation Vectors classifiers, and then converting the high-dimensional representations into a one-dimensional anomaly score for detection via a Safety Pattern Auto-Encoder. Extensive experiments demonstrate that LoD consistently achieves state-of-the-art detection performance (AUROC) across diverse unseen jailbreak attacks on multiple LVLMs, while also significantly improving efficiency. Code is available at https://github.com/ShuangLiangX/Learning-to-Detect.

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

↑