English

Zero-Shot Robustness of Vision Language Models Via Confidence-Aware Weighting

Computer Vision and Pattern Recognition 2025-10-06 v1

Abstract

Vision-language models like CLIP demonstrate impressive zero-shot generalization but remain highly vulnerable to adversarial attacks. In this work, we propose Confidence-Aware Weighting (CAW) to enhance zero-shot robustness in vision-language models. CAW consists of two components: (1) a Confidence-Aware loss that prioritizes uncertain adversarial examples by scaling the KL divergence between clean and adversarial predictions, and (2) a feature alignment regularization that preserves semantic consistency by minimizing the distance between frozen and fine-tuned image encoder features on adversarial inputs. These components work jointly to improve both clean and robust accuracy without sacrificing generalization. Extensive experiments on TinyImageNet and 14 additional datasets show that CAW outperforms recent methods such as PMG-AFT and TGA-ZSR under strong attacks like AutoAttack, while using less memory.

Keywords

Cite

@article{arxiv.2510.02913,
  title  = {Zero-Shot Robustness of Vision Language Models Via Confidence-Aware Weighting},
  author = {Nikoo Naghavian and Mostafa Tavassolipour},
  journal= {arXiv preprint arXiv:2510.02913},
  year   = {2025}
}

Comments

Accepted to the NeurIPS 2025 Workshop on Reliable ML from Unreliable Data