mlsanityData to 7 Oct 2026

FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection

arXiv 2507.04511 ↗First posted 6 Jul 2025cs.CVcited by 3

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

  1. 2024Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detection5 Nov
  2. 2024Negative Label Guided OOD Detection with Pretrained Vision-Language Models29 Mar
  3. 2022Task Residual for Tuning Vision-Language Models18 Nov
  4. 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification19 Jul
  5. 2022Conditional Prompt Learning for Vision-Language Models10 Mar
  6. 2021Learning to Prompt for Vision-Language Models2 Sep

Other references · 34

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2013Describing Textures in the Wildcited by 2,110
  6. 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
  7. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  8. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  9. 2019Natural Adversarial Examplescited by 1,401
  10. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
  11. 2020Energy-based Out-of-distribution Detectioncited by 1,296
  12. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
22 more
  1. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  2. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  3. 2021Towards Out-Of-Distribution Generalization: A Surveycited by 431
  4. 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
  5. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
  6. 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 351
  7. 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
  8. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  9. 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
  10. 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
  11. 2021A Unified Survey on Anomaly, Novelty, Open-Set, and Out-of-Distribution Detection: Solutions and Future Challengescited by 154
  12. 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 151
  13. 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 132
  14. 2023CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say Nocited by 130
  15. 2023Non-Parametric Outlier Synthesiscited by 129
  16. 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
  17. 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
  18. 2023Dream the Impossible: Outlier Imagination with Diffusion Modelscited by 77
  19. 2022Rethinking Reconstruction Autoencoder-Based Out-of-Distribution Detectioncited by 59
  20. 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
  21. 2023ID-like Prompt Learning for Few-Shot Out-of-Distribution Detectioncited by 42
  22. 2022Block Selection Method for Using Feature Norm in Out-of-distribution Detectioncited by 30

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
  2. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  3. 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
  4. 2024LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models
  5. 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey
  6. 2025Prompt Optimization Meets Subspace Representation Learning for Few-shot Out-of-Distribution Detection
  7. 2025An Empirical Analysis of VLM-based OOD Detection: Mechanisms, Advantages, and Sensitivity
  8. 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey