Saved in:
Bibliographic Details
Main Authors: He, Zhixia, Zhao, Chen, Shao, Minglai, Wu, Xintao, Zhao, Xujiang, Li, Dong, Tian, Qin, Yu, Linlin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.10923
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914158296956928
author He, Zhixia
Zhao, Chen
Shao, Minglai
Wu, Xintao
Zhao, Xujiang
Li, Dong
Tian, Qin
Yu, Linlin
author_facet He, Zhixia
Zhao, Chen
Shao, Minglai
Wu, Xintao
Zhao, Xujiang
Li, Dong
Tian, Qin
Yu, Linlin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2511_10923
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
He, Zhixia
Zhao, Chen
Shao, Minglai
Wu, Xintao
Zhao, Xujiang
Li, Dong
Tian, Qin
Yu, Linlin
Computer Vision and Pattern Recognition
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.
title Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2511.10923