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

Effective and Efficient Adversarial Detection for Vision-Language Models via A Single Vector

About

Visual Language Models (VLMs) are vulnerable to adversarial attacks, especially those from adversarial images, which is however under-explored in literature. To facilitate research on this critical safety problem, we first construct a new laRge-scale Adervsarial images dataset with Diverse hArmful Responses (RADAR), given that existing datasets are either small-scale or only contain limited types of harmful responses. With the new RADAR dataset, we further develop a novel and effective iN-time Embedding-based AdveRSarial Image DEtection (NEARSIDE) method, which exploits a single vector that distilled from the hidden states of VLMs, which we call the attacking direction, to achieve the detection of adversarial images against benign ones in the input. Extensive experiments with two victim VLMs, LLaVA and MiniGPT-4, well demonstrate the effectiveness, efficiency, and cross-model transferrability of our proposed method. Our code is available at https://github.com/mob-scu/RADAR-NEARSIDE

Youcheng Huang, Fengbin Zhu, Jingkun Tang, Pan Zhou, Wenqiang Lei, Jiancheng Lv, Tat-Seng Chua• 2024

Related benchmarks

TaskDatasetResultRank
Adversarial Attack DetectionNIPS M-Attack in-domain 17
Precision100
10
Adversarial DetectionNIPS to Medical cross-domain 17
Precision (SSA-CWA)95.8
10
Adversarial DetectionLLaVA to Medical cross-domain
SSA-CWA Precision80
10
SSA-CWA to FOA-Attack Cross-Attack DetectionNIPS 17
Precision100
6
SSA-CWA to FOA-Attack Cross-Attack Detectionllava
Precision99
6
SSA-CWA to FOA-Attack Cross-Attack Detectionmedical
Precision100
6
SSA-CWA to M-Attack Cross-Attack DetectionNIPS 17
Precision100
6
SSA-CWA to M-Attack Cross-Attack Detectionllava
Precision99
6
SSA-CWA to M-Attack Cross-Attack Detectionmedical
Precision100
6
Adversarial Attack DetectionNIPS17, LLaVA, and Medical In-domain (test)
Precision98.3
5
Showing 10 of 19 rows

Other info

Follow for update