用Siamese结构强化CLIP编码器,防御视觉语言模型的越狱和对抗攻击。
Securing Vision-Language Models with a Robust Encoder Against Jailbreak and Adversarial Attacks
- 通过孪生网络对抗性微调视觉编码器,提升对扰动的鲁棒性。
- 在COCO和OKVQA上保持高准确率的同时,显著增强抗攻击能力。
- 无需修改原模型结构,可直接接入现有系统,适合部署安全应用。
大型视觉语言模型(LVLM)在多模态大数据集上训练后,在视觉-语言任务中表现卓越,但依然易受对抗攻击,尤其是越狱攻击——这类攻击可绕过安全机制,诱导模型生成误导或有害内容。漏洞源于大语言模型的内在脆弱性以及视觉模态带来的攻击面扩展。本文提出Sim-CLIP+,一种基于孪生架构的新型防御机制,通过对CLIP视觉编码器进行对抗性微调,最大化扰动样本与原始样本间的余弦相似度,从而提升对对抗操纵的抵抗能力。Sim-CLIP+作为即插即用的解决方案,可无缝集成至现有LVLM架构中,无需修改模型结构,计算开销极小。实验验证其对梯度攻击及多种越狱策略均有效。在三个越狱攻击策略下测试,并使用标准下游数据集(包括用于图像描述的COCO和用于视觉问答的OKVQA)进行清洁评估。结果表明,Sim-CLIP+在保持高干净准确率的同时,显著提升了对梯度攻击和越狱技术的鲁棒性。代码与鲁棒编码器已开源:https://github.com/speedlab-git/Robust-Encoder-against-Jailbreak-attack.git。
原文摘要 · Abstract (English)
Large Vision-Language Models (LVLMs), trained on multimodal big datasets, have significantly advanced AI by excelling in vision-language tasks. However, these models remain vulnerable to adversarial attacks, particularly jailbreak attacks, which bypass safety protocols and cause the model to generate misleading or harmful responses. This vulnerability stems from both the inherent susceptibilities of LLMs and the expanded attack surface introduced by the visual modality. We propose Sim-CLIP+, a novel defense mechanism that adversarially fine-tunes the CLIP vision encoder by leveraging a Siamese architecture. This approach maximizes cosine similarity between perturbed and clean samples, facilitating resilience against adversarial manipulations. Sim-CLIP+ offers a plug-and-play solution, allowing seamless integration into existing LVLM architectures as a robust vision encoder. Unlike previous defenses, our method requires no structural modifications to the LVLM and incurs minimal computational overhead. Sim-CLIP+ demonstrates effectiveness against both gradient-based adversarial attacks and various jailbreak techniques. We evaluate Sim-CLIP+ against three distinct jailbreak attack strategies and perform clean evaluations using standard downstream datasets, including COCO for image captioning and OKVQA for visual question answering. Extensive experiments demonstrate that Sim-CLIP+ maintains high clean accuracy while substantially improving robustness against both gradient-based adversarial attacks and jailbreak techniques. Our code and robust vision encoders are available at https://github.com/speedlab-git/Robust-Encoder-against-Jailbreak-attack.git.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。