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

在基于CLIP的零样本分类中使用层次感知语言提示犯更好的错误

Making Better Mistakes in CLIP-Based Zero-Shot Classification with Hierarchy-Aware Language Prompts

Ohio State University(俄亥俄州立大学)

Tong Liang, Jim Davis

AI总结:

本文提出HAPrompts方法,利用大型语言模型为CLIP生成层次感知的文本表示,在零样本图像分类中实现基于标签层次结构的“犯更好的错误”,并在五个数据集上优于相关方法。

摘要:

近期的研究正在利用在海量网络爬取文本数据上训练的大型语言模型(LLMs)的进展,为基于CLIP的零样本图像分类中的下游类别生成文本描述。虽然这些方法大多旨在提高准确率,但我们的工作聚焦于“犯更好的错误”,其中错误的严重程度由下游任务给定的标签层次结构推导得出。由于CLIP的图像编码器在语言监督信号下训练,它隐式地捕捉了不同类别之间的层次语义关系。这促使我们设定了在零样本分类中犯更好错误的目标,这是一项CLIP天然非常适合的任务。我们的方法(HAPrompts)查询语言模型为给定类别生成文本表示,作为CLIP的零样本分类器,在下游任务上执行图像分类。据我们所知,这是首项在基于CLIP的零样本分类中引入犯更好错误理念的工作。在实验中,我们的方法在五个具有不同规模和不同高度标签层次结构的数据集上的全面比较中,优于相关方法。我们的代码和LLM生成的图像提示:https://github.com/ltong1130ztr/HAPrompts。

英文摘要:

Recent studies are leveraging advancements in large language models (LLMs) trained on extensive internet-crawled text data to generate textual descriptions of downstream classes in CLIP-based zero-shot image classification. While most of these approaches aim at improving accuracy, our work focuses on ``making better mistakes", of which the mistakes' severities are derived from the given label hierarchy of downstream tasks. Since CLIP's image encoder is trained with language supervising signals, it implicitly captures the hierarchical semantic relationships between different classes. This motivates our goal of making better mistakes in zero-shot classification, a task for which CLIP is naturally well-suited. Our approach (HAPrompts) queries the language model to produce textual representations for given classes as zero-shot classifiers of CLIP to perform image classification on downstream tasks. To our knowledge, this is the first work to introduce making better mistakes in CLIP-based zero-shot classification. Our approach outperforms the related methods in a holistic comparison across five datasets of varying scales with label hierarchies of different heights in our experiments. Our code and LLM-generated image prompts: \href{https://github.com/ltong1130ztr/HAPrompts}{https://github.com/ltong1130ztr/HAPrompts}.

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

↑