arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.11211cs.CVcs.AIcs.CL
收藏

无约束开放词汇图像分类:通过CLIP逆变换实现从文本到图像的零样本迁移

Unconstrained Open Vocabulary Image Classification: Zero-Shot Transfer from Text to Image via CLIP Inversion

University of Hamburg(汉堡大学)

Philipp Allgeuer, Kyra Ahrens, Stefan Wermter

AI总结:

该研究提出NOVIC实时无约束开放词汇图像分类器,通过自回归Transformer生成分类标签,利用CLIP嵌入空间实现文本到图像的零样本迁移,解决传统CLIP需穷举标签的限制,在多数据集上取得87.5%的无提示预测分数。

摘要:

我们提出NOVIC,这是一种创新的实时无约束开放词汇图像分类器,它使用自回归Transformer以生成方式将分类标签作为语言输出。利用CLIP模型的广泛知识,NOVIC借助嵌入空间实现从纯文本到图像的零样本迁移。传统CLIP模型虽具备开放词汇分类能力,但需要穷举潜在类别标签的提示,限制其应用于已知内容或上下文的图像。为解决此问题,我们提出“对象解码器”模型,在包含9200万目标的大规模模板化对象名词集和LLM生成的描述上训练,以输出相关对象名词。这有效逆转CLIP文本编码器,允许从图像衍生的嵌入向量直接生成几乎整个英语语言的文本对象标签,无需图像潜在内容的先验知识,也无标签偏差。训练后的解码器在手动和网络 curated 数据集及标准图像分类基准上测试,实现高达87.5%的细粒度无提示预测分数,考虑到模型需适用于任何可想象的图像且无上下文线索,这是一个优异结果。

英文摘要:

We introduce NOVIC, an innovative real-time uNconstrained Open Vocabulary Image Classifier that uses an autoregressive transformer to generatively output classification labels as language. Leveraging the extensive knowledge of CLIP models, NOVIC harnesses the embedding space to enable zero-shot transfer from pure text to images. Traditional CLIP models, despite their ability for open vocabulary classification, require an exhaustive prompt of potential class labels, restricting their application to images of known content or context. To address this, we propose an "object decoder" model that is trained on a large-scale 92M-target dataset of templated object noun sets and LLM-generated captions to always output the object noun in question. This effectively inverts the CLIP text encoder and allows textual object labels from essentially the entire English language to be generated directly from image-derived embedding vectors, without requiring any a priori knowledge of the potential content of an image, and without any label biases. The trained decoders are tested on a mix of manually and web-curated datasets, as well as standard image classification benchmarks, and achieve fine-grained prompt-free prediction scores of up to 87.5%, a strong result considering the model must work for any conceivable image and without any contextual clues.

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

↑