FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
On the map: Multimodal LLMs / vision-language models → Prompt learning and adaptation of CLIP
Abstract (arXiv)
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 forced prompt. Moreover, we introduce a forced coefficient, encouraging the forced prompt to learn more comprehensive and nuanced descriptions of the ID classes. In this way, FA is capable of achieving notable improvements in OOD detection, even when trained without any external auxiliary datasets, while maintaining an identical number of trainable parameters as CoOp. Extensive empirical evaluations confirm our method consistently outperforms current state-of-the-art methods. Code is available at https://github.com/0xFAFA/FA.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Prompt learning and adaptation of CLIP, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 40 of its 53 references that are in the map. First posted on arXiv 6 Jul 2025.
Builds on
40 of 53 references.
Closest ancestors · 6
Same direction, newest first
- 2024Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection5 Nov
- 2024Negative Label Guided OOD Detection with Pretrained Vision-Language Models29 Mar
- 2022Task Residual for Tuning Vision-Language Models18 Nov
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul
- 2022Conditional Prompt Learning for Vision-Language Models10 Mar
- 2021Learning to Prompt for Vision-Language Models2 Sep
Other references · 34
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2013Describing Textures in the Wildcited by 2,110
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2019Natural Adversarial Examplescited by 1,401
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
22 more
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2021Towards Out-Of-Distribution Generalization: A Surveycited by 431
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
- 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
- 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
- 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2021A Unified Survey on Anomaly, Novelty, Open-Set, and Out-of-Distribution Detection: Solutions and Future Challengescited by 154
- 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 151
- 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 132
- 2023CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say Nocited by 130
- 2023Non-Parametric Outlier Synthesiscited by 129
- 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
- 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
- 2023Dream the Impossible: Outlier Imagination with Diffusion Modelscited by 77
- 2022Rethinking Reconstruction Autoencoder-Based Out-of-Distribution Detectioncited by 59
- 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
- 2023ID-like Prompt Learning for Few-Shot Out-of-Distribution Detectioncited by 42
- 2022Block Selection Method for Using Feature Norm in Out-of-distribution Detectioncited by 30
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
- 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
- 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
- 2024LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models
- 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey
- 2025Prompt Optimization Meets Subspace Representation Learning for Few-shot Out-of-Distribution Detection
- 2025An Empirical Analysis of VLM-based OOD Detection: Mechanisms, Advantages, and Sensitivity
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey