Dual Modality Prompt Tuning for Vision-Language Pre-Trained Model

Yinghui Xing,Qirui Wu,De Cheng,Shizhou Zhang,Guoqiang Liang,Peng Wang,Yanning Zhang.
DOI: https://doi.org/10.1109/tmm.2023.3291588
IF: 7.3
2023-01-01
IEEE Transactions on Multimedia
Abstract:With the emergence of large pretrained vison-language models such as CLIP, transferable representations can be adapted to a wide range of downstream tasks via prompt tuning. Prompt tuning probes for beneficial information for downstream tasks from the general knowledge stored in the pretrained model. A recently proposed method named Context Optimization (CoOp) introduces a set of learnable vectors as text prompts from the language side. However, tuning the text prompt alone can only adjust the synthesized “classifier”, while the computed visual features of the image encoder cannot be affected, thus leading to suboptimal solutions. In this paper, we propose a novel dual-modality prompt tuning (DPT) paradigm through learning text and visual prompts simultaneously. To make the final image feature concentrate more on the target visual concept, a class-aware visual prompt tuning (CAVPT) scheme is further proposed in our DPT. In this scheme, the class-aware visual prompt is generated dynamically by performing the cross attention between text prompt features and image patch token embeddings to encode both the downstream task-related information and visual instance information. Extensive experimental results on 11 datasets demonstrate the effectiveness and generalization ability of the proposed method. Our code is available in https://github.com/fanrena/DPT.
computer science, information systems,telecommunications, software engineering
What problem does this paper attempt to address?