Robustifying Zero-Shot Vision Language Models by Subspaces Alignment

Jun-Hao Dong, Piotr Koniusz, Liaoyuan Feng, Yifei Zhang, Hao Zhu +3 more
1/1/2025

No confident code implementation found for this paper.

Abstract

Vision-Language Models (VLMs) enjoy strong zero-shot performance but are vulnerable to adversarial attacks posing security risks. Adversarially robust fine-tuning enhances zero-shot robustness on new datasets while preserving the natural performance of pre-trained VLMs.

Show full abstract

However, prior methods use sample-wise adversarial fine-tuning, neglecting the underlying second-order statistics that represent entire groups of samples. This leads to a feature-level discrepancy between clean and adversarial samples of their augmented variants. Thus, we propose to represent groups of samples as subspaces to capture distributions and turn the traditional sample-wise adversarial fine-tuning into its distributional counterpart. For each image, we build distributions from (i) a clean sample with its augmentations and (ii) their adversarial counterparts. For text, we build distributions from (iii) a clean prompt and its synonymous prompts and (iv) their adversarial counterparts. We then perform alignment between image and text subspaces, and "adversarial" subspaces are also aligned toward "clean" subspaces. Thus, all samples underlying these distributions (think infinite number) also get aligned, leading to generalizable robustness. Evaluations on 15 datasets are provided.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dong2025robustifying,
  title  = {Robustifying Zero-Shot Vision Language Models by Subspaces Alignment},
  author = {Jun-Hao Dong and Piotr Koniusz and Liaoyuan Feng and Yifei Zhang and Hao Zhu and Weiming Liu and Xing-Hua Qu and Y. Ong},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:76fdf7c90d609f6e8d2136aff380342eb046da89},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/76fdf7c90d609f6e8d2136aff380342eb046da89.svg)](https://codeofpaper.com/paper/76fdf7c90d609f6e8d2136aff380342eb046da89)

Discussion