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

Adversarial Attacks Already Tell the Answer: Directional Bias-Guided Test-time Defense for Vision-Language Models

About

Vision-Language Models (VLMs), such as CLIP, have shown strong zero-shot generalization but remain highly vulnerable to adversarial perturbations, posing serious risks in real-world applications. Test-time defenses for VLMs have recently emerged as a promising and efficient approach to defend against adversarial attacks without requiring costly large-scale retraining. In this work, we uncover a surprising phenomenon: under diverse input transformations, adversarial images in CLIP's feature space consistently shift along a dominant direction, in contrast to the dispersed patterns of clean images. We hypothesize that this dominant shift, termed the Defense Direction, opposes the adversarial shift, pointing features back toward their correct class centers. Building on this insight, we propose Directional Bias-guided Defense (DBD), a test-time framework that estimates the Defense Direction and employs a DB-score-based two-stream reconstruction strategy to recover robust representations. Experiments on 15 datasets demonstrate that DBD not only achieves SOTA adversarial robustness while preserving clean accuracy, but also reveals the counterintuitive result that adversarial accuracy can even surpass clean accuracy. This demonstrates that adversarial perturbations inherently encode directional priors about the true decision boundary.

Liangsheng Liu, Si Chen, Jiamin Wu, Weiwei Feng, Zhixin Cheng, Xiaotian Yin, Wenfei Yang, Tianzhu Zhang• 2026

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet A
Accuracy52.1
98
Fine grained classificationUCF101--
98
Image ClassificationFGVC Aircraft
Robust Accuracy71.9
62
Fine-grained Image ClassificationOxford-IIIT Pets--
55
Image ClassificationEuroSAT
Top-1 Clean Accuracy44.9
53
Fine grained classificationFGVC Aircraft--
51
Image ClassificationImageNet-S
Accuracy51.1
46
Fine-grained Image ClassificationOxford Flowers 102--
45
Image ClassificationUCF101
Accuracy68.2
42
Image ClassificationCaltech101
Top-1 Robust Accuracy99.4
40
Showing 10 of 22 rows

Other info

Follow for update