Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

VLMGuard: Defending VLMs against Malicious Prompts via Unlabeled Data

About

Vision-language models (VLMs) are essential for contextual understanding of both visual and textual information. However, their vulnerability to adversarially manipulated inputs presents significant risks, leading to compromised outputs and raising concerns about the reliability in VLM-integrated applications. Detecting these malicious prompts is thus crucial for maintaining trust in VLM generations. A major challenge in developing a safeguarding prompt classifier is the lack of a large amount of labeled benign and malicious data. To address the issue, we introduce VLMGuard, a novel learning framework that leverages the unlabeled user prompts in the wild for malicious prompt detection. These unlabeled prompts, which naturally arise when VLMs are deployed in the open world, consist of both benign and malicious information. To harness the unlabeled data, we present an automated maliciousness estimation score for distinguishing between benign and malicious samples within this unlabeled mixture, thereby enabling the training of a binary prompt classifier on top. Notably, our framework does not require extra human annotations, offering strong flexibility and practicality for real-world applications. Extensive experiment shows VLMGuard achieves superior detection results, significantly outperforming state-of-the-art methods. Disclaimer: This paper may contain offensive examples; reader discretion is advised.

Xuefeng Du, Reshmi Ghosh, Robert Sim, Ahmed Salem, Vitor Carvalho, Emily Lawton, Yixuan Li, Jack W. Stokes• 2024

Related benchmarks

TaskDatasetResultRank
Direct MaliciousMM-SafetyBench OOD
ASR9.05
16
Image-based JailbreakJailbreakV_28K IND
ASR11.82
16
Image-based JailbreakFigStep OOD
ASR9.46
16
Malicious Prompt DetectionJailbreakV_28K Image-based (test)
FNR11.82
16
Malicious Prompt DetectionJailbreakV_28K Text-based (test)
FNR5.72
16
Direct MaliciousVLSafe OOD
ASR15.27
16
Image-based JailbreakHADES OOD
Attack Success Rate (ASR)22.95
16
Text-based JailbreakJailbreakV_28K IND
Attack Success Rate (ASR)9.26
16
Text-based JailbreakAdvBench-M OOD
ASR (OOD)9.84
16
Malicious Prompt DetectionMM-Vet OOD
FPR3.92
14
Showing 10 of 18 rows

Other info

Follow for update