CLIP Adaptation by Intra-modal Overlap Reduction

Alexey Kravets, Vinay Namboodiri
9/17/2024
cs.CV

No official code found. Best implementation: akres001/CLIP_fewshot_imo (1 star, last commit 2024-11-23).

Abstract

Numerous methods have been proposed to adapt a pre-trained foundational CLIP model for few-shot classification. As CLIP is trained on a large corpus, it generalises well through adaptation to few-shot classification. In this work, we analyse the intra-modal overlap in image space in terms of embedding representation. Our analysis shows that, due to contrastive learning, embeddings from CLIP model exhibit high cosine similarity distribution overlap in the image space between paired and unpaired examples affecting the performance of few-shot training-free classification methods which rely on similarity in the image space for their predictions. To tackle intra-modal overlap we propose to train a lightweight adapter on a generic set of samples from the Google Open Images dataset demonstrating that this improves accuracy for few-shot training-free classification. We validate our contribution through extensive empirical analysis and demonstrate that reducing the intra-modal overlap leads to a) improved performance on a number of standard datasets, b) increased robustness to distribution shift and c) higher feature variance rendering the features more discriminative for downstream tasks.

View on arXivView PDF

Code Implementations(1)

CLIP Adaptation by Intra-modal Overlap Correction (BMVC 2024 Oral)

10Shell, PythonJul 20, 20241 years ago

Similar Papers

Cite this paper

@article{kravets2024clip,
  title  = {CLIP Adaptation by Intra-modal Overlap Reduction},
  author = {Alexey Kravets and Vinay Namboodiri},
  year   = {2024},
  eprint = {2409.11338},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.11338v1}
}

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/2409.11338.svg)](https://codeofpaper.com/paper/2409.11338)

Discussion