arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.24038cs.CVcs.MA
收藏

通过跨模态对齐增强CLIP鲁棒性

Enhancing CLIP Robustness via Cross-Modality Alignment

University of Science and Technology of China(中国科学技术大学);Nanyang Technological University(南洋理工大学)

Xingyu Zhu, Beier Zhu, Shuo Wang, Kesen Zhao, Hanwang Zhang

AI总结:

COLA通过跨模态对齐提升CLIP对抗鲁棒性,有效缓解对抗扰动导致的特征不一致问题,提升零样本分类性能。

摘要:

视觉-语言模型(VLMs)如CLIP在零样本分类中表现出强大的泛化能力,但对对抗性扰动却极为敏感。现有方法主要集中在对抗性微调或提示优化;它们往往忽视了CLIP编码特征之间的差距,这表现为文本和图像特征彼此远离。这种不一致在对抗性扰动下显著加剧,导致分类性能严重下降。为了解决这个问题,我们提出了跨模态对齐(COLA),一种基于最优传输的框架,通过在特征空间中恢复全局图像-文本对齐和局部结构一致性来显式解决对抗性不一致。首先,COLA将对抗性图像嵌入投影到由类别文本特征张成的子空间中,有效过滤掉非语义扰动,同时保留判别信息。然后,它将图像和文本建模为多个增强视图上的离散分布,并通过最优传输优化其对齐。这种设计确保了即使在对抗条件下也能保持稳定的跨模态对齐。COLA是无需训练的,并且与现有微调模型兼容。在14个零样本分类基准上的广泛评估显示了COLA的有效性,特别是在ImageNet及其变体上,平均在PGD对抗攻击下提高了6.7%,同时在干净样本上保持高准确率。

英文摘要:

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 filtering out non-semantic distortions while preserving discriminative information. (2) It then models images and texts as discrete distributions over multiple augmented views and refines their alignment via OT, with the subspace projection seamlessly integrated into the cost computation. This design ensures stable cross-modal alignment even under adversarial conditions. COLA is training-free and compatible with existing fine-tuned models. Extensive evaluations across 14 zero-shot classification benchmarks demonstrate the effectiveness of COLA, especially with an average improvement of 6.7% on ImageNet and its variants under PGD adversarial attacks, while maintaining high accuracy on clean samples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑