English

Towards Robust Prompts on Vision-Language Models

Computer Vision and Pattern Recognition 2023-04-18 v1

Abstract

With the advent of vision-language models (VLMs) that can perform in-context and prompt-based learning, how can we design prompting approaches that robustly generalize to distribution shift and can be used on novel classes outside the support set of the prompts? In this work, we first define two types of robustness to distribution shift on VLMs, namely, robustness on base classes (the classes included in the support set of prompts) and robustness on novel classes. Then, we study the robustness of existing in-context learning and prompt learning approaches, where we find that prompt learning performs robustly on test images from base classes, while it does not generalize well on images from novel classes. We propose robust prompt learning by integrating multiple-scale image features into the prompt, which improves both types of robustness. Comprehensive experiments are conducted to study the defined robustness on six benchmarks and show the effectiveness of our proposal.

Keywords

Cite

@article{arxiv.2304.08479,
  title  = {Towards Robust Prompts on Vision-Language Models},
  author = {Jindong Gu and Ahmad Beirami and Xuezhi Wang and Alex Beutel and Philip Torr and Yao Qin},
  journal= {arXiv preprint arXiv:2304.08479},
  year   = {2023}
}
R2 v1 2026-06-28T10:08:45.646Z