arXiv:2502.12095cs.CV2025-02被引 1

为视觉语言模型定制可生成可检索的新概念令牌,提升图文组合效果。

Descriminative-Generative Custom Tokens for Vision-Language Models

  • 结合文本反演与分类损失,在CLIP空间中对齐新概念图文特征。
  • 在DeepFashion2上实现7%的均倒数排名提升,优于基线方法。
  • 支持生成辅助检索,可可视化验证概念编码是否准确。

本文探索在视觉语言模型中学习用于表示新概念的自定义令牌。目标是使这些令牌既能有效用于判别和生成任务,又能与自然语言良好组合形成新查询。通过少量图像和文本描述的父类指定目标概念,我们在CLIP文本特征基础上,采用文本反演损失与分类损失的组合,确保所学令牌的文本特征与概念图像特征在CLIP嵌入空间中对齐。我们限制学习令牌位于与给定超类相关的属性令牌所张成的低维子空间内,从而提升令牌与自然语言组合生成新场景的质量。此外,我们证明所学自定义令牌可用于文本到图像检索任务,并具备重要优势:复合查询可被可视化,以确保目标概念被忠实编码。基于此,我们提出生成辅助图像检索方法,在推理时动态优化查询以更好匹配搜索意图。在DeepFashion2数据集上,该方法相比相关基线提升了7%的均倒数排名(MRR)。

原文摘要 · Abstract (English)

This paper explores the possibility of learning custom tokens for representing new concepts in Vision-Language Models (VLMs). Our aim is to learn tokens that can be effective for both discriminative and generative tasks while composing well with words to form new input queries. The targeted concept is specified in terms of a small set of images and a parent concept described using text. We operate on CLIP text features and propose to use a combination of a textual inversion loss and a classification loss to ensure that text features of the learned token are aligned with image features of the concept in the CLIP embedding space. We restrict the learned token to a low-dimensional subspace spanned by tokens for attributes that are appropriate for the given super-class. These modifications improve the quality of compositions of the learned token with natural language for generating new scenes. Further, we show that learned custom tokens can be used to form queries for text-to-image retrieval task, and also have the important benefit that composite queries can be visualized to ensure that the desired concept is faithfully encoded. Based on this, we introduce the method of Generation Aided Image Retrieval, where the query is modified at inference time to better suit the search intent. On the DeepFashion2 dataset, our method improves Mean Reciprocal Retrieval (MRR) over relevant baselines by 7%.

视觉语言模型自定义令牌生成检索概念学习

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