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

利用大型语言模型与视觉-语言模型实现鲁棒的分布外检测

Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection

National Taiwan University(台湾大学);Academia Sinica(中央研究院)

Pei-Kang Lee, Jun-Cheng Chen, Ja-Ling Wu

AI总结:

本文提出结合 LLM 与 CLIP 的零样本 OOD 检测框架,通过超类背景特征分离和负标签选择同时提升 Far/Near-OOD 性能,并用提示调优增强目标域适配。

摘要:

分布外(OOD)检测通过借助 CLIP 等强大的视觉-语言模型(VLM),在零样本方法方面取得了显著进展。然而,正如我们的初步研究所观察到的,以往研究主要侧重于提升 Far-OOD(远分布外)性能,却可能损害 Near-OOD(近分布外)效果。为解决这一问题,我们提出一种新颖策略,通过创新性地利用大型语言模型(LLM)和 VLM,同时增强 Far-OOD 与 Near-OOD 场景下的零样本 OOD 检测性能。我们的方法首先利用 LLM 生成 ID(分布内)标签的超类及其相应背景描述,随后使用 CLIP 进行特征提取。接着,我们通过从超类特征中减去背景特征,分离出 ID 数据的核心语义特征。经过精炼的表示有助于从 WordNet 的全面候选标签集中为 OOD 数据选择更合适的负标签,从而提升两种场景下的零样本 OOD 检测性能。此外,我们提出新颖的少样本提示调优和视觉提示调优,使所提出框架能够更好地与目标分布对齐。实验结果表明,该方法在多个基准上持续优于当前最先进方法,AUROC 最高提升 2.9%,FPR95 最高降低 12.6%。此外,我们的方法在跨不同领域的协变量偏移下表现出更强的鲁棒性,进一步凸显了其在现实场景中的有效性。

英文摘要:

Out-of-distribution (OOD) detection has seen significant advancements with zero-shot approaches by leveraging the powerful Vision-Language Models (VLMs) such as CLIP. However, prior research works have predominantly focused on enhancing Far-OOD performance, while potentially compromising Near-OOD efficacy, as observed from our pilot study. To address this issue, we propose a novel strategy to enhance zero-shot OOD detection performances for both Far-OOD and Near-OOD scenarios by innovatively harnessing Large Language Models (LLMs) and VLMs. Our approach first exploit an LLM to generate superclasses of the ID labels and their corresponding background descriptions followed by feature extraction using CLIP. We then isolate the core semantic features for ID data by subtracting background features from the superclass features. The refined representation facilitates the selection of more appropriate negative labels for OOD data from a comprehensive candidate label set of WordNet, thereby enhancing the performance of zero-shot OOD detection in both scenarios. Furthermore, we introduce novel few-shot prompt tuning and visual prompt tuning to adapt the proposed framework to better align with the target distribution. Experimental results demonstrate that the proposed approach consistently outperforms current state-of-the-art methods across multiple benchmarks, with an improvement of up to 2.9% in AUROC and a reduction of up to 12.6% in FPR95. Additionally, our method exhibits superior robustness against covariate shift across different domains, further highlighting its effectiveness in real-world scenarios.

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

↑