Towards Robust Multimodal Large Language Models Against Jailbreak Attacks

Zi-Yi Yin, Yuan-Pu Cao, Han Liu, Ting Wang, Jing-Hui Chen +1 more
2/1/2025

No confident code implementation found for this paper.

Abstract

While multimodal large language models (MLLMs) have achieved remarkable success in recent advancements, their susceptibility to jailbreak attacks has come to light. In such attacks, adversaries exploit carefully crafted prompts to coerce models into generating harmful or undesirable content.

Show full abstract

Existing defense mechanisms often rely on external inference steps or safety alignment training, both of which are less effective and impractical when facing sophisticated adversarial perturbations in white-box scenarios. To address these challenges and bolster MLLM robustness, we introduce SafeMLLM by adopting an adversarial training framework that alternates between an attack step for generating adversarial noise and a model updating step. At the attack step, SafeMLLM generates adversarial perturbations through a newly proposed contrastive embedding attack (CoE-Attack), which optimizes token embeddings under a contrastive objective. SafeMLLM then updates model parameters to neutralize the perturbation effects while preserving model utility on benign inputs. We evaluate SafeMLLM across six MLLMs and six jailbreak methods spanning multiple modalities. Experimental results show that SafeMLLM effectively defends against diverse attacks, maintaining robust performance and utilities.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yin2025towards,
  title  = {Towards Robust Multimodal Large Language Models Against Jailbreak Attacks},
  author = {Zi-Yi Yin and Yuan-Pu Cao and Han Liu and Ting Wang and Jing-Hui Chen and Feng-Long Ma},
  year   = {2025},
  eprint = {2502.00653},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2502.00653},
  url    = {https://doi.org/10.48550/arXiv.2502.00653},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.00653.svg)](https://codeofpaper.com/paper/2502.00653)

Discussion