Do We Really Need Curated Malicious Data for Safety Alignment in Multi-modal Large Language Models?

Yanbo Wang, Jiyang Guan, Jian Liang, Ran He
2/10/2026

No official code found. Best implementation: ybwang119/MLLM_safety_study (7 stars, last commit 2025-04-18).

Abstract

Multi-modal large language models (MLLMs) have made significant progress, yet their safety alignment remains limited. Typically, current open-source MLLMs rely on the alignment inherited from their language module to avoid harmful generations. However, the lack of safety measures specifically designed for multi-modal inputs creates an alignment gap, leaving MLLMs vulnerable to vision-domain attacks such as typographic manipulation. Current methods utilize a carefully designed safety dataset to enhance model defense capability, while the specific knowledge or patterns acquired from the high-quality dataset remain unclear. Through comparison experiments, we find that the alignment gap primarily arises from data distribution biases, while image content, response quality, or the contrastive behavior of the dataset makes little contribution to boosting multi-modal safety. To further investigate this and identify the key factors in improving MLLM safety, we propose finetuning MLLMs on a small set of benign instruct-following data with responses replaced by simple, clear rejection sentences. Experiments show that, without the need for labor-intensive collection of high-quality malicious data, model safety can still be significantly improved, as long as a specific fraction of rejection data exists in the finetuning set, indicating the security alignment is not lost but rather obscured during multi-modal pretraining or instruction finetuning. Simply correcting the underlying data bias could narrow the safety gap in the vision domain. Warning: This paper contains harmful images and AI-generated contents which may be offensive.

View on arXivView PDF

Code Implementations(1)

Official code for CVPR 2025 paper: Do we really need curated malicious data for safety alignment in multi-modal large language models?

70CSS, HTMLNov 26, 20241 years ago

Similar Papers

Cite this paper

@article{wang2026really,
  title  = {Do We Really Need Curated Malicious Data for Safety Alignment in Multi-modal Large Language Models?},
  author = {Yanbo Wang and Jiyang Guan and Jian Liang and Ran He},
  year   = {2026},
  eprint = {2504.10000},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.10000},
  journal = {CVPR 2025 2025}
}

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/2504.10000.svg)](https://codeofpaper.com/paper/2504.10000)

Discussion