arXiv:2410.20149cs.CVcs.AI2024-10NeurIPS被引 29

用动态生成的负样本代理提升视觉语言模型的分布外检测效果

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

  • 测试时基于真实分布外图像动态生成负样本代理
  • 在ImageNet上比现有方法AUROC提升2.45%,FPR95降低6.48%
  • 无需训练和标注,适合快速部署的鲁棒性检测场景

近期研究表明,预训练视觉语言模型可通过负标签引导有效识别分布外(OOD)样本。然而,在不同OOD数据集间使用固定负标签常导致语义错位,因文本标签未必准确反映实际的OOD图像空间。为此,我们提出自适应负样本代理(AdaNeg),在测试阶段通过探索真实OOD图像动态生成代理,更贴近底层的OOD标签空间,增强负样本引导效果。具体而言,该方法利用特征记忆库选择性缓存测试图像中的判别性特征,代表目标OOD分布,从而生成更契合特定数据集的代理。任务自适应代理对特征平均以体现数据集特性,样本自适应代理则根据特征与单个测试样本的相似度加权,捕捉样本级细节。最终的分布外检测分数融合静态负标签与自适应代理,实现文本与视觉知识的协同。本方法无需训练且无标注,保持快速推理速度。大量实验表明其有效性,尤其在大规模ImageNet基准上,相比现有方法AUROC提升2.45%,FPR95降低6.48%。代码已开源。

原文摘要 · Abstract (English)

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}.

分布外检测视觉语言模型自适应代理零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。