cs.LGApr 7, 2026

VLMShield: Efficient and Robust Defense of Vision-Language Models against Malicious Prompts

Authors: Peigui Qi, Kunsheng Tang, Yanpu Yu, Jialin Wu, Yide Song, Wenbo Zhou, Zhicong Huang, Cheng Hong, 

Organizations: University of Science and Technology of China · Ant Group · University of Washington

Abstract

Vision-Language Models (VLMs) face significant safety vulnerabilities from malicious prompt attacks due to weakened alignment during visual integration. Existing defenses suffer from efficiency and robustness. To address these challenges, we first propose the Multimodal Aggregated Feature Extraction (MAFE) framework that enables CLIP to handle long text and fuse multimodal information into unified representations. Through empirical analysis of MAFE-extracted features, we discover distinct distributional patterns between benign and malicious prompts. Building upon this finding, we develop VLMShield, a lightweight safety detector that efficiently identifies multimodal malicious attacks as a plug-and-play solution. Extensive experiments demonstrate superior performance across multiple dimensions, including robustness, efficiency, and utility. Through our work, we hope to pave the way for more secure multimodal AI deployment. Code is available at this https URL.

Figures & tables

Appendix figures & tables23 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. VLMGuard: Bootstrapping Malicious Prompt Detectors from Unlabeled Vision-Language Prompts in the Wild

    Oct 1, 2024Junlin Fang, Wenyu Chen, Reshmi Ghosh +7VLM RobustnessVision-Language Models

  2. GuardAlign: Test-time Safety Alignment in Multimodal Large Language Models

    Feb 27, 2026Xingyu Zhu, Beier Zhu, Junfeng Fang +4VLM Safety AlignmentVLM Safety

  3. Breaking the weakest link to evade vision language models

    Aug 19, 2026Ilan Zini, Boussad Addad, Katarzyna KapustaVLM RobustnessAdversarial Attacks on VLMs