CLIP's Visual Embedding Projector is a Few-shot Cornucopia

Mohammad Fahes, Tuan-Hung Vu, Andrei Bursuc, Patrick Pérez, Raoul de Charette
10/7/2024
3 citations
cs.CV

Official code: astra-vision/ProLIP (41 stars, Shell, last commit 2025-04-17).

Abstract

We introduce ProLIP, a simple and architecture-agnostic method for adapting contrastively pretrained vision-language models, such as CLIP, to few-shot classification. ProLIP fine-tunes the vision encoder's projection matrix with Frobenius norm regularization on its deviation from the pretrained weights.

Show full abstract

It achieves state-of-the-art performance on 11 few-shot classification benchmarks under both ``few-shot validation'' and ``validation-free'' settings. Moreover, by rethinking the non-linear CLIP-Adapter through ProLIP's lens, we design a Regularized Linear Adapter (RLA) that performs better, requires no hyperparameter tuning, is less sensitive to learning rate values, and offers an alternative to ProLIP in black-box scenarios where model weights are inaccessible. Beyond few-shot classification, ProLIP excels in cross-dataset transfer, domain generalization, base-to-new class generalization, and test-time adaptation--where it outperforms prompt tuning while being an order of magnitude faster to train. Code is available at https://github.com/astra-vision/ProLIP .

View on arXivView PDF

Code Implementations(1)

[WACV 2026] An extremely simple method for validation-free efficient adaptation of CLIP-like VLMs that is robust to the learning rate.

413Shell, PythonOct 7, 20241 years ago
contrastive-language-image-pretrainingfew-shot-classifcationopen-classificationparameter-efficient-fine-tuningtest-time-adaptation+1 more

Similar Papers

Cite this paper

@article{fahes2024clips,
  title  = {CLIP's Visual Embedding Projector is a Few-shot Cornucopia},
  author = {Mohammad Fahes and Tuan-Hung Vu and Andrei Bursuc and Patrick Pérez and Raoul de Charette},
  year   = {2024},
  eprint = {2410.05270},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.05270v4}
}

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

Discussion