arXiv:2506.04005cs.CV2025-06CVPR被引 1

不依赖类别名称,用相似度匹配实现视觉语言模型少样本学习

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

  • 通过通用提示词计算图像与类别的相似度进行分类
  • 单次学习耗时不足1秒,效率高且结果可解释
  • 适合类别名未知或难以定义的少样本场景

视觉语言模型(VLMs)的少样本适应近期取得显著进展,使其仅需少量标注样本即可跨任务泛化。然而,现有方法大多依赖模型的零样本先验,通过精心设计的任务特定提示词实现。这种对预定义类别名称的依赖限制了其在类别名不可用或难以确定场景中的应用。为此,本文提出无词汇少样本学习,即目标类别实例(图像)存在但对应名称未知。我们提出相似度映射(SiM),一种简单有效的基线方法,仅基于通用提示词(文本或视觉)与目标实例的相似度得分进行分类,无需手工设计提示词。尽管概念简单,SiM表现强劲,计算高效(学习映射通常不到1秒),且能通过关联目标类别与通用提示词提供可解释性。我们认为该方法可为未来无词汇少样本学习研究提供重要基线。代码已公开于 https://github.com/MaxZanella/vocabulary-free-FSL。

原文摘要 · Abstract (English)

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. 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.

少样本学习视觉语言模型无词汇相似度匹配

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。