Enhancing CLIP Robustness via Cross-Modality Alignment
Xingyu Zhu, Beier Zhu, Shuo Wang, Kesen Zhao, Hanwang Zhang

TL;DR
This paper introduces COLA, a training-free, optimal transport-based method that improves CLIP's robustness to adversarial attacks by enhancing cross-modal alignment between image and text features.
Contribution
The paper proposes COLA, a novel framework that restores global and local feature alignment in CLIP using optimal transport, significantly boosting adversarial robustness without additional training.
Findings
Average 6.7% accuracy improvement on ImageNet under PGD attacks.
Maintains high accuracy on clean samples.
Effective across 14 zero-shot classification benchmarks.
Abstract
Vision-language models (VLMs) such as CLIP demonstrate strong generalization in zero-shot classification but remain highly vulnerable to adversarial perturbations. Existing methods primarily focus on adversarial fine-tuning or prompt optimization; they often overlook the gaps in CLIP's encoded features, which is shown as the text and image features lie far apart from each other. This misalignment is significantly amplified under adversarial perturbations, leading to severe degradation in classification performance. To address this problem, we propose Cross-modality Alignment, dubbed COLA, an optimal transport-based framework that explicitly addresses adversarial misalignment by restoring both global image-text alignment and local structural consistency in the feature space. (1) COLA first projects adversarial image embeddings onto a subspace spanned by class text features, effectively…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
