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

基于层次化上下文描述的类别可扩展分布外检测

Category-Extensible Out-of-Distribution Detection via Hierarchical Context Descriptions

Zhejiang University(浙江大学);Alibaba Cloud(阿里云)

Kai Liu, Zhihang Fu, Chao Chen, Sheng Jin, Ze Chen, Mingyuan Tao, Rongxin Jiang, Jieping Ye

AI总结:

提出CATEX方法,通过感知上下文和虚假上下文分层构建精确类别描述,实现类别可扩展的OOD检测,并在ImageNet-1K上大幅超越对手。

摘要:

OOD检测的关键在于两个方面:广义的特征表示和精确的类别描述。近期,CLIP等视觉-语言模型在这两个问题上取得了显著进展,但由于未见类别的缺失,构建精确的类别描述仍处于起步阶段。本工作引入了两种层次化上下文,即感知上下文和虚假上下文,通过自动提示调优来仔细描述精确的类别边界。具体而言,感知上下文感知当前分类任务的类间差异(例如猫与苹果),而虚假上下文进一步为每个单一类别识别虚假(相似但实际不是)的OOD样本(例如猫与黑豹,苹果与桃子)。这两种上下文分层构建了某一类别的精确描述,即首先将样本粗略分类到预测类别,然后精细地识别它是否真正是ID样本或实际上是OOD。此外,视觉-语言框架内这些类别的精确描述提出了一种新应用:类别可扩展OOD检测(CATEX)。通过简单合并在不同子任务设置下学习到的层次化上下文,可以高效扩展可识别类别集合。并且进行了大量实验以证明CATEX的有效性、鲁棒性和类别可扩展性。例如,在具有挑战性的ImageNet-1K数据集上,CATEX在多种协议下始终大幅超越竞争对手。此外,我们提供了关于如何高效扩展视觉-语言模型中的提示工程以识别数千个对象类别,以及如何结合大型语言模型(如GPT-3)来促进零样本应用的新见解。代码公开于https://github.com/alibaba/catex。

英文摘要:

The key to OOD detection has two aspects: generalized feature representation and precise category description. Recently, vision-language models such as CLIP provide significant advances in both two issues, but constructing precise category descriptions is still in its infancy due to the absence of unseen categories. This work introduces two hierarchical contexts, namely perceptual context and spurious context, to carefully describe the precise category boundary through automatic prompt tuning. Specifically, perceptual contexts perceive the inter-category difference (e.g., cats vs apples) for current classification tasks, while spurious contexts further identify spurious (similar but exactly not) OOD samples for every single category (e.g., cats vs panthers, apples vs peaches). The two contexts hierarchically construct the precise description for a certain category, which is, first roughly classifying a sample to the predicted category and then delicately identifying whether it is truly an ID sample or actually OOD. Moreover, the precise descriptions for those categories within the vision-language framework present a novel application: CATegory-EXtensible OOD detection (CATEX). One can efficiently extend the set of recognizable categories by simply merging the hierarchical contexts learned under different sub-task settings. And extensive experiments are conducted to demonstrate CATEX's effectiveness, robustness, and category-extensibility. For instance, CATEX consistently surpasses the rivals by a large margin with several protocols on the challenging ImageNet-1K dataset. In addition, we offer new insights on how to efficiently scale up the prompt engineering in vision-language models to recognize thousands of object categories, as well as how to incorporate large language models (like GPT-3) to boost zero-shot applications. Code is publicly available at https://github.com/alibaba/catex.

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

↑