Securing Vision-Language Models with a Robust Encoder Against Jailbreak and Adversarial Attacks
<|reference_start|>Securing Vision-Language Models with a Robust Encoder Against Jailbreak and Adversarial Attacks: 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.<|reference_end|>
@article{hossain2024securing,
    title={Securing Vision-Language Models with a Robust Encoder Against Jailbreak
  and Adversarial Attacks},
    author={Md Zarif Hossain, Ahmed Imteaj},
    journal={arXiv preprint arXiv:2409.07353},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.07353},
    primaryClass={cs.CV cs.AI}
}