arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12095cs.CV
收藏

用于视觉-语言模型的判别-生成式自定义 Token

Descriminative-Generative Custom Tokens for Vision-Language Models

AWS AI Labs(亚马逊人工智能实验室)

Pramuditha Perera, Matthew Trager, Luca Zancato, Alessandro Achille, Stefano Soatto

AI总结:

本文提出在 CLIP 中结合文本反演与分类损失学习自定义 token,并通过属性子空间约束提升概念组合、生成可视化与图像检索效果,在 DeepFashion2 上使 MRR 提升 7%。

摘要:

本文探索了在视觉-语言模型(VLM)中学习自定义 token 以表示新概念的可能性。我们的目标是学习对判别任务和生成任务都有效的 token,同时使其能够很好地与词语组合以形成新的输入查询。目标概念由一小组图像以及用文本描述的父概念指定。我们在 CLIP 文本特征上开展研究,并提出结合使用文本反演损失和分类损失,以确保所学 token 的文本特征在 CLIP 嵌入空间中与该概念的图像特征对齐。我们将所学 token 限制在一个低维子空间中,该子空间由适合给定超类的属性 token 张成。这些改进提升了所学 token 与自然语言组合以生成新场景的质量。此外,我们表明,学习到的自定义 token 可用于构成文到图检索任务的查询,并且还具有一个重要优势:复合查询可以被可视化,以确保期望的概念得到忠实编码。基于此,我们提出了生成辅助图像检索方法,在推理时修改查询,以更好地匹配搜索意图。在 DeepFashion2 数据集上,我们的方法相比相关基线将平均倒数检索排名(MRR)提高了 7%。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑