FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
Xinhua Lu, Runhe Lai, Yanqi Wu, Kanghao Chen, Wei-Shi Zheng, Ruixuan Wang

TL;DR
This paper introduces a novel CLIP-based framework called Forced prompt learning (FA) that enhances out-of-distribution detection by learning richer, more diversified prompts for in-distribution classes without relying on external datasets.
Contribution
The proposed FA method learns a forced prompt with more comprehensive descriptions of ID classes, improving OOD detection performance without external datasets.
Findings
Outperforms current state-of-the-art OOD detection methods.
Achieves notable improvements using only in-distribution data.
Maintains the same number of trainable parameters as CoOp.
Abstract
Pre-trained vision-language models (VLMs) have advanced out-of-distribution (OOD) detection recently. However, existing CLIP-based methods often focus on learning OOD-related knowledge to improve OOD detection, showing limited generalization or reliance on external large-scale auxiliary datasets. In this study, instead of delving into the intricate OOD-related knowledge, we propose an innovative CLIP-based framework based on Forced prompt leArning (FA), designed to make full use of the In-Distribution (ID) knowledge and ultimately boost the effectiveness of OOD detection. Our key insight is to learn a prompt (i.e., forced prompt) that contains more diversified and richer descriptions of the ID classes beyond the textual semantics of class labels. Specifically, it promotes better discernment for ID images, by forcing more notable semantic similarity between ID images and the learnable…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnomaly Detection Techniques and Applications · Data Stream Mining Techniques · COVID-19 diagnosis using AI
MethodsFeedback Alignment · Focus · Context Optimization
