Generalizable Prompt Tuning for Vision-Language Models

Qian Zhang
2024-10-24
Abstract:Prompt tuning for vision-language models such as CLIP involves optimizing the text prompts used to generate image-text pairs for specific downstream tasks. While hand-crafted or template-based prompts are generally applicable to a wider range of unseen classes, they tend to perform poorly in downstream tasks (i.e., seen classes). Learnable soft prompts, on the other hand, often perform well in downstream tasks but lack generalizability. Additionally, prior research has predominantly concentrated on the textual modality, with very few studies attempting to explore the prompt's generalization potential from the visual modality. Keeping these limitations in mind, we investigate how to prompt tuning to obtain both a competitive downstream performance and generalization. The study shows that by treating soft and hand-crafted prompts as dual views of the textual modality, and maximizing their mutual information, we can better ensemble task-specific and general semantic information. Moreover, to generate more expressive prompts, the study introduces a class-wise augmentation from the visual modality, resulting in significant robustness to a wider range of unseen classes. Extensive evaluations on several benchmarks report that the proposed approach achieves competitive results in terms of both task-specific performance and general abilities.
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to simultaneously achieve high - performance in specific tasks and broad generalization ability through Prompt Tuning in Vision - Language Models (VLMs). Specifically, existing methods perform well when dealing with specific tasks, but have poor performance when facing unseen categories, or vice versa. They perform well when generalizing to unseen categories, but have poor performance on specific tasks. In addition, most research mainly focuses on the text modality, and there is less research on exploring the generalization potential of prompts from the visual modality. To overcome these limitations, the authors propose a new Prompt Tuning method. This method can not only combine specific - task and general - semantic information, but also improve the robustness to a wide range of unseen categories through category enhancement from the visual modality. By maximizing the mutual information between soft prompts and hand - designed prompts and introducing a category - based enhancement strategy, this method aims to balance task - specific performance and generalization ability, thereby achieving competitive results in multiple benchmark tests.