Adversarial attacks have given the answer: CLIP's directional bias guides the test-time defense DBDAdversarial Attacks Already Tell the Answer: Directional Bias-Guided Test-time Defense for Vision-Language Models
Translation in progress — untranslated text is omitted.
The DBD (Directional Bias-guided Defense) test-time defense exploits the phenomenon that adversarial images shift consistently along a dominant direction in CLIP feature space, estimates a defense direction and uses DB-score dual-stream reconstruction to recover robust representations. On 15 datasets, DBD achieves SOTA adversarial robustness while maintaining clean accuracy, with adversarial accuracy even exceeding clean accuracy, indicating that adversarial perturbations themselves encode a directional prior of the true decision boundary.
- Vision-language models such as CLIP are vulnerable to adversarial perturbations, while adversarial-training-based defenses rely on labeled data and are costly; existing test-time defenses either have high inference overhead or harm clean-sample accuracy, and the mechanism by which transformations mitigate attacks is unclear.
- The authors find that the feature shifts of adversarial images under multiple transformations are directionally concentrated, and propose DBD: estimate a Defense Direction, use DB-score to distinguish adversarial from clean inputs, linearly shift high-score samples along that direction, and reconstruct low-score samples using averaged transformed features.
- On 15 datasets and three attack settings, DBD has the highest average robust accuracy at 97.7% (CLIP-ViT-B/16, PGD-100), surpassing R-TPT and even exceeding clean accuracy; however, under the BPDA+EOT adaptive attack, robust accuracy drops to 1.29% (Caltech101, PGD-100).
- The paper has no dedicated limitations section; experiments cover only three CLIP backbones and the image classification task, the adaptive attack is evaluated only on Caltech101 and can break the defense, and the paper does not report statistical significance tests or numbers of repetitions.
Related papers
Both use: ImageNet-S
Both use: Flower102
Show 3 more papers
Both use: Cars
Both use: ImageNet-A
Both use: ImageNet-V2
- GeoDetect: Geometric Adversarial Detection for VLPsDefensesarXiv