[论文解读] Delving into Out-of-Distribution Detection with Vision-Language Representations
本论文提出 Maximum Concept Matching (MCM),一种零样本 OOD 检测方法,利用 vision-language (CLIP) 表征将视觉特征与文本概念原型对齐,在无需训练的情况下实现强大的 ID-OOD 分离,并在多样化任务上超过若干基线。
Recognizing out-of-distribution (OOD) samples is critical for machine learning systems deployed in the open world. The vast majority of OOD detection methods are driven by a single modality (e.g., either vision or language), leaving the rich information in multi-modal representations untapped. Inspired by the recent success of vision-language pre-training, this paper enriches the landscape of OOD detection from a single-modal to a multi-modal regime. Particularly, we propose Maximum Concept Matching (MCM), a simple yet effective zero-shot OOD detection method based on aligning visual features with textual concepts. We contribute in-depth analysis and theoretical insights to understand the effectiveness of MCM. Extensive experiments demonstrate that MCM achieves superior performance on a wide variety of real-world tasks. MCM with vision-language features outperforms a common baseline with pure visual features on a hard OOD task with semantically similar classes by 13.1% (AUROC). Code is available at https://github.com/deeplearning-wisc/MCM.
研究动机与目标
- 在多模态设置中使用联合视觉-语言表示来激发 OOD 检测的动机。
- 利用文本概念原型在共享嵌入空间中定义 ID 类的邻近性。
- 开发一个简单的、无需训练的 OOD 检测器,对 OOD 数据无关且可扩展到大规模任务。
提出的方法
- 将概念原型定义为针对 ID 类的文本嵌入表示,使用诸如 'this is a photo of a <class>' 的提示语。
- 计算图像特征与每个文本原型之间的逐标签余弦相似度。
- 将 MCM 得分定义为这些相似度的 softmax: S_MCM(x;Y_in, T, I) = max_i exp(s_i(x)/τ) / sum_j exp(s_j(x)/τ)。
- 对 S_MCM 进行阈值判断以进行 OOD 检测,并通过最大 s_i 将 ID 样本分配到最近的概念。
- 给出理论依据:对数 softmax 缩放(中等温度 τ)可提升 CLIP 类模型中的 ID-OOD 可分离性。
实验结果
研究问题
- RQ1视觉-语言预训练模型是否能够在不使用 OOD 数据的情况下实现有效的零样本 OOD 检测?
- RQ2多模态(视觉-语言)表示与单一视觉原型相比在 OOD 检测中的表现如何?
- RQ3软最大化的缩放对 CLIP 类模型的 OOD 可分离性有何影响?
- RQ4MCM 是否在多样的 ID 与困难的 OOD 任务上具有可扩展性与鲁棒性?
主要发现
- MCM 在七个 ID 数据集上通过 CLIP 实现强的零样本 OOD 检测;例如,ImageNet-1k 的平均 AUROC 为 94.61,相对于 iNaturalist,在所给出的结果中,在若干任务上的 AUROC 达到 99.90+。
- 在 ImageNet-1k 上,MCM (CLIP-L) 获得 AUROC 为 94.95,FPR95 为 28.38,超越若干基于训练的基线。
- MCM 在 Mahalanobis(仅视觉)及其他基线上表现更优,尤其是在硬 OOD 任务如 ImageNet-10 vs ImageNet-20 与 Waterbirds 的虚假 OOD 情况。
- 使用更大规模的 CLIP 模型(CLIP-L vs CLIP-B)可提升 OOD 性能;例如 FPR95 降低、AUROC 提高。
- 中等温度 τ 的 softmax 缩放可保证改进 OOD 检测,与经验结果一致。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。