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

利用大语言模型的正负提示监督进行分布外检测

Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models

Zhixia He, Chen Zhao, Minglai Shao, Xintao Wu, Xujiang Zhao, Dong Li, Qin Tian, Linlin Yu

AI总结:

针对现有视觉语言模型OOD检测中负提示易引入误导信息的问题,提出基于大语言模型的正负提示监督方法,结合图架构传递语义监督,在多基准实验中性能超越现有最优基线。

摘要:

分布外(OOD)检测致力于划定分布内(ID)与分布外图像之间的分类边界。近期视觉语言模型(VLMs)的进展通过整合视觉与文本模态,展现出了出色的OOD检测性能。在该场景下,负提示被用于强调图像特征与提示内容之间的差异性。但这类提示通常涵盖范围极广的非分布内特征,可能因捕捉到重叠或误导性信息而导致次优结果。为解决该问题,我们提出正负提示监督方法,该方法促使负提示捕捉类间特征,并将该语义知识迁移至视觉模态以提升OOD检测性能。我们的方法首先通过大语言模型(LLMs)初始化类别专属的正、负提示,随后对这些提示进行优化:正提示聚焦于每个类别内部的特征,负提示则突出类别边界附近的特征。此外,我们采用基于图的架构,从优化后的提示表示中聚合具备语义感知的监督信号,并将其传播至视觉分支,进而提升基于能量的OOD检测器的性能。我们在CIFAR-100、ImageNet-1K两个基准,以及8个OOD数据集、5种不同LLM上开展了大量实验,结果表明我们的方法性能优于当前最优基线方法。

英文摘要:

Out-of-distribution (OOD) detection is committed to delineating the classification boundaries between in-distribution (ID) and OOD images. Recent advances in vision-language models (VLMs) have demonstrated remarkable OOD detection performance by integrating both visual and textual modalities. In this context, negative prompts are introduced to emphasize the dissimilarity between image features and prompt content. However, these prompts often include a broad range of non-ID features, which may result in suboptimal outcomes due to the capture of overlapping or misleading information. To address this issue, we propose Positive and Negative Prompt Supervision, which encourages negative prompts to capture inter-class features and transfers this semantic knowledge to the visual modality to enhance OOD detection performance. Our method begins with class-specific positive and negative prompts initialized by large language models (LLMs). These prompts are subsequently optimized, with positive prompts focusing on features within each class, while negative prompts highlight features around category boundaries. Additionally, a graph-based architecture is employed to aggregate semantic-aware supervision from the optimized prompt representations and propagate it to the visual branch, thereby enhancing the performance of the energy-based OOD detector. Extensive experiments on two benchmarks, CIFAR-100 and ImageNet-1K, across eight OOD datasets and five different LLMs, demonstrate that our method outperforms state-of-the-art baselines.

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

↑