arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.20149cs.CVcs.AIcs.LG
收藏

AdaNeg:由视觉-语言模型实现的自适应负代理引导 OOD 检测

AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Models

The Hong Kong Polytechnic University(香港理工大学)

Yabin Zhang, Lei Zhang

AI总结:

本文提出 AdaNeg,在测试时基于 OOD 图像构建任务级与样本级自适应负代理,并结合静态负标签,实现免训练、免标注的视觉-语言模型 OOD 检测,在 ImageNet 上显著提升性能。

摘要:

近期研究表明,预训练视觉-语言模型能够通过使用负标签作为引导,有效识别分布外(OOD)样本。然而,在不同 OOD 数据集上采用一致的负标签通常会导致语义错位,因为这些文本标签可能无法准确反映 OOD 图像的实际空间。为克服这一问题,我们引入了自适应负代理;这些代理在测试期间通过探索实际 OOD 图像动态生成,以更紧密地对齐潜在 OOD 标签空间,并增强负代理引导的效果。具体而言,我们的方法利用特征记忆库,有选择地缓存来自测试图像的判别性特征,用以表示目标 OOD 分布。这有助于生成能够更好地对齐特定 OOD 数据集的代理。任务自适应代理通过对特征求平均来反映每个数据集的独特特征,而样本自适应代理则根据特征与单个测试样本的相似性对其加权,以探索细致的样本级差异。用于识别 OOD 样本的最终分数将静态负标签与我们提出的自适应代理相结合,有效融合文本知识和视觉知识以提升性能。我们的方法无需训练、无需标注,并保持较快的测试速度。在多个基准上进行的大量实验证明了我们方法(简称为 AdaNeg)的有效性。值得注意的是,在大规模 ImageNet 基准上,我们的 AdaNeg 显著优于现有方法,AUROC 提升 2.45%,FPR95 降低 6.48%。代码位于 https://github.com/YBZh/OpenOOD-VLM。

英文摘要:

Recent research has shown that pre-trained vision-language models are effective at identifying out-of-distribution (OOD) samples by using negative labels as guidance. However, employing consistent negative labels across different OOD datasets often results in semantic misalignments, as these text labels may not accurately reflect the actual space of OOD images. To overcome this issue, we introduce \textit{adaptive negative proxies}, which are dynamically generated during testing by exploring actual OOD images, to align more closely with the underlying OOD label space and enhance the efficacy of negative proxy guidance. Specifically, our approach utilizes a feature memory bank to selectively cache discriminative features from test images, representing the targeted OOD distribution. This facilitates the creation of proxies that can better align with specific OOD datasets. While task-adaptive proxies average features to reflect the unique characteristics of each dataset, the sample-adaptive proxies weight features based on their similarity to individual test samples, exploring detailed sample-level nuances. The final score for identifying OOD samples integrates static negative labels with our proposed adaptive proxies, effectively combining textual and visual knowledge for enhanced performance. Our method is training-free and annotation-free, and it maintains fast testing speed. Extensive experiments across various benchmarks demonstrate the effectiveness of our approach, abbreviated as AdaNeg. Notably, on the large-scale ImageNet benchmark, our AdaNeg significantly outperforms existing methods, with a 2.45\% increase in AUROC and a 6.48\% reduction in FPR95. Codes are available at \url{https://github.com/YBZh/OpenOOD-VLM}.

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

↑