Selective Vision-Language Subspace Projection for Few-shot CLIP

Xingyu Zhu, Beier Zhu, Yi Tan, Shuo Wang, Yanbin Hao +1 more
7/24/2024
cs.CVcs.MM

Official code: zhuhsingyuu/SSP (8 stars, last commit 2023-11-17).

Abstract

Vision-language models such as CLIP are capable of mapping the different modality data into a unified feature space, enabling zero/few-shot inference by measuring the similarity of given images and texts. However, most existing methods overlook modality gaps in CLIP's encoded features, which is shown as the text and image features lie far apart from each other, resulting in limited classification performance. To tackle this issue, we introduce a method called Selective Vision-Language Subspace Projection (SSP), which incorporates local image features and utilizes them as a bridge to enhance the alignment between image-text pairs. Specifically, our SSP framework comprises two parallel modules: a vision projector and a language projector. Both projectors utilize local image features to span the respective subspaces for image and texts, thereby projecting the image and text features into their respective subspaces to achieve alignment. Moreover, our approach entails only training-free matrix calculations and can be seamlessly integrated into advanced CLIP-based few-shot learning frameworks. Extensive experiments on 11 datasets have demonstrated SSP's superior text-image alignment capabilities, outperforming the state-of-the-art alignment methods. The code is available at https://github.com/zhuhsingyuu/SSP

View on arXivView PDF

Code Implementations(1)

zhuhsingyuu/SSPOfficial100%

Our Implement for SSP

80PythonNov 17, 20232 years ago

Similar Papers

Cite this paper

@article{zhu2024selective,
  title  = {Selective Vision-Language Subspace Projection for Few-shot CLIP},
  author = {Xingyu Zhu and Beier Zhu and Yi Tan and Shuo Wang and Yanbin Hao and Hanwang Zhang},
  year   = {2024},
  eprint = {2407.16977},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.16977v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.16977.svg)](https://codeofpaper.com/paper/2407.16977)

Discussion