mlsanityData to 14 Oct 2026

Prompt Optimization Meets Subspace Representation Learning for Few-shot Out-of-Distribution Detection

arXiv 2509.18111 ↗First posted 9 Sep 2025cs.LG cs.AI cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

The reliability of artificial intelligence (AI) systems in open-world settings depends heavily on their ability to flag out-of-distribution (OOD) inputs unseen during training. Recent advances in large-scale vision-language models (VLMs) have enabled promising few-shot OOD detection frameworks using only a handful of in-distribution (ID) samples. However, existing prompt learning-based OOD methods rely solely on softmax probabilities, overlooking the rich discriminative potential of the feature embeddings learned by VLMs trained on millions of samples. To address this limitation, we propose a novel context optimization (CoOp)-based framework that integrates subspace representation learning with prompt tuning. Our approach improves ID-OOD separability by projecting the ID features into a subspace spanned by prompt vectors, while projecting ID-irrelevant features into an orthogonal null space. To train such OOD detection framework, we design an easy-to-handle end-to-end learning criterion that ensures strong OOD detection performance as well as high ID classification accuracy. Experiments on real-world datasets showcase the effectiveness of our approach.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 43 of its 54 references that are in the map. First posted on arXiv 9 Sep 2025.

Builds on

43 of 54 references.

References · 43

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  4. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  5. 2021Learning to Prompt for Vision-Language Modelscited by 2,281
  6. 2019Language Models as Knowledge Bases?cited by 1,936
  7. 2022Visual Prompt Tuningcited by 1,681
  8. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  9. 2022Conditional Prompt Learning for Vision-Language Modelscited by 1,433
  10. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  11. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  12. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
31 more
  1. 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 610
  2. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  3. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  4. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  5. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  6. 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
  7. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  8. 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
  9. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
  10. 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 216
  11. 2020Universal Domain Adaptation through Self Supervisioncited by 172
  12. 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 152
  13. 2023CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say Nocited by 130
  14. 2024Interpreting CLIP with Sparse Linear Concept Embeddings (SpLiCE)cited by 119
  15. 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
  16. 2023Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinementcited by 84
  17. 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
  18. 2024Negative Label Guided OOD Detection with Pretrained Vision-Language Modelscited by 66
  19. 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
  20. 2023ID-like Prompt Learning for Few-Shot Out-of-Distribution Detectioncited by 42
  21. 2023GL-MCM: Global and Local Maximum Concept Matching for Zero-Shot Out-of-Distribution Detectioncited by 36
  22. 2023Understanding the Feature Norm for Out-of-Distribution Detectioncited by 27
  23. 2024Optimizing OOD Detection in Molecular Graphs: A Novel Approach with Diffusion Modelscited by 22
  24. 2024Out-of-Distribution Detection with a Single Unconditional Diffusion Modelcited by 22
  25. 2024Selective Vision-Language Subspace Projection for Few-shot CLIPcited by 18
  26. 2024AdaNeg: Adaptive Negative Proxy Guided OOD Detection with Vision-Language Modelscited by 16
  27. 2024Self-Calibrated Tuning of Vision-Language Models for Out-of-Distribution Detectioncited by 15
  28. 2021Divergence Optimization for Noisy Universal Domain Adaptationcited by 13
  29. 2024CLIPScope: Enhancing Zero-Shot OOD Detection with Bayesian Scoringcited by 13
  30. 2025Adaptive Multi-prompt Contrastive Network for Few-shot Out-of-distribution Detectioncited by 8
  31. 2024Diffusion-based Layer-wise Semantic Reconstruction for Unsupervised Out-of-Distribution Detectioncited by 5

Built on by

Not cited yet.

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. 2025FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
  3. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  4. 2024LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models
  5. 2024Local-Prompt: Extensible Local Prompts for Few-Shot Out-of-Distribution Detection
  6. 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
  7. 2025An Empirical Analysis of VLM-based OOD Detection: Mechanisms, Advantages, and Sensitivity
  8. 2024Weak Distribution Detectors Lead to Stronger Generalizability of Vision-Language Prompt Tuning