Vocabulary-free few-shot learning for Vision-Language Models

Maxime Zanella, Clément Fuchs, Ismail Ben Ayed, Christophe De Vleeschouwer
6/4/2025
1 citation
cs.CV

Official code: MaxZanella/vocabulary-free-FSL (22 stars, Python, AGPL-3.0, last commit 2025-06-06).

Abstract

Recent advances in few-shot adaptation for Vision-Language Models (VLMs) have greatly expanded their ability to generalize across tasks using only a few labeled examples. However, existing approaches primarily build upon the strong zero-shot priors of these models by leveraging carefully designed, task-specific prompts.

Show full abstract

This dependence on predefined class names can restrict their applicability, especially in scenarios where exact class names are unavailable or difficult to specify. To address this limitation, we introduce vocabulary-free few-shot learning for VLMs, a setting where target class instances - that is, images - are available but their corresponding names are not. We propose Similarity Mapping (SiM), a simple yet effective baseline that classifies target instances solely based on similarity scores with a set of generic prompts (textual or visual), eliminating the need for carefully handcrafted prompts. Although conceptually straightforward, SiM demonstrates strong performance, operates with high computational efficiency (learning the mapping typically takes less than one second), and provides interpretability by linking target classes to generic prompts. We believe that our approach could serve as an important baseline for future research in vocabulary-free few-shot learning. Code is available at https://github.com/MaxZanella/vocabulary-free-FSL.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

[CVPRW 2025] Official implementation of the paper "Vocabulary-free few-shot learning for Vision-Language Models".

220Python, ShellApr 14, 20251 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{zanella2025vocabularyfree,
  title  = {Vocabulary-free few-shot learning for Vision-Language Models},
  author = {Maxime Zanella and Clément Fuchs and Ismail Ben Ayed and Christophe De Vleeschouwer},
  year   = {2025},
  eprint = {2506.04005},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.04005v1}
}

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

Discussion