mlsanityData to 14 Oct 2026

Respecting Modality Gap in Post-hoc Out-of-distribution Detection with Pre-trained Vision-Language Models

arXiv 2605.26661 ↗First posted 26 May 2026cs.CV cs.AIcited by 0

On the map: Multimodal LLMs / vision-language models → Prompt learning and adaptation of CLIP

Abstract (arXiv)

Out-of-distribution (OOD) detection has emerged as a popular technique to enhance the reliability of machine learning models by identifying unexpected inputs from unknown classes. Recent progress in pre-trained vision-language models (VLMs) has enabled zero-shot OOD detection without access to in-distribution (ID) training data; in this setting, existing methods commonly treat text embeddings of class names as class prototypes. In this paper, we challenge the widely adopted text-as-prototype paradigm by theoretically showing that off-the-shelf textual prototypes are generally misaligned with the optimal visual prototypes, yielding an intrinsic modality gap that cannot be eliminated by prompt engineering alone. To mitigate this gap under the post-hoc constraint, this paper presents an online pseudo-supervised framework that directly learns class prototypes in the visual feature space using unlabeled test-time data streams and soft predictions from the pre-trained VLMs. We provide theoretical guarantees for the convergence of the online optimization procedure. Extensive experiments empirically demonstrate that our method achieves a new state of the art across a variety of OOD detection setups.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Prompt learning and adaptation of CLIP, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 58 of its 84 references that are in the map. First posted on arXiv 26 May 2026.

Builds on

58 of 84 references.

Closest ancestors · 5

Same direction, newest first

  1. 2026Debiased Negative Mining Improves Out-of-distribution Detection with Pre-trained Vision-Language Models22 May
  2. 2024Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models11 Oct
  3. 2024LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models12 Jul
  4. 2024Two Effects, One Trigger: On the Modality Gap, Object Bias, and Information Imbalance in Contrastive Vision-Language Models11 Apr
  5. 2024Negative Label Guided OOD Detection with Pretrained Vision-Language Models29 Mar

Other references · 53

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
  3. 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,109
  4. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  5. 2013Describing Textures in the Wildcited by 2,125
  6. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  7. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  8. 2019Natural Adversarial Examplescited by 1,408
  9. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  10. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  11. 2019VisualBERT: A Simple and Performant Baseline for Vision and Languagecited by 1,296
  12. 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,230
38 more
  1. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
  2. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  3. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  4. 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
  5. 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 627
  6. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  7. 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
  8. 2018Predictive Uncertainty Estimation via Prior Networkscited by 557
  9. 2018Object Detection with Deep Learning: A Reviewcited by 528
  10. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  11. 2020Class-incremental learning: survey and performance evaluation on image classificationcited by 449
  12. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
  13. 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
  14. 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 353
  15. 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
  16. 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
  17. 2020Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networkscited by 231
  18. 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 216
  19. 2018Reducing Network Agnostophobiacited by 165
  20. 2021A Unified Survey on Anomaly, Novelty, Open-Set, and Out-of-Distribution Detection: Solutions and Future Challengescited by 154
  21. 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 152
  22. 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 134
  23. 2023CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say Nocited by 130
  24. 2023Non-Parametric Outlier Synthesiscited by 129
  25. 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
  26. 2019Reverse KL-Divergence Training of Prior Networks: Improved Uncertainty and Adversarial Robustnesscited by 104
  27. 2021Can multi-label classification networks know what they don't know?cited by 100
  28. 2022Training OOD Detectors in their Natural Habitatscited by 86
  29. 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
  30. 2023Out-of-distribution Detection with Implicit Outlier Transformationcited by 43
  31. 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
  32. 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
  33. 2024ConjNorm: Tractable Density Estimation for Out-of-Distribution Detectioncited by 22
  34. 2022Out of Distribution Data Detection Using Dropout Bayesian Neural Networkscited by 15
  35. 2025Learning Robust Spectral Dynamics for Temporal Domain Generalizationcited by 14
  36. 2025Drift-aware Collaborative Assistance Mixture of Experts for Heterogeneous Multistream Learningcited by 14
  37. 2026Belief Memory: Agent Memory Under Partial Observabilitycited by 11
  38. 2025On the Provable Importance of Gradients for Language-Assisted Image Clusteringcited by 8

50 most cited of 53 All 53 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models
  2. 2025Mitigating the Modality Gap: Few-Shot Out-of-Distribution Detection with Multi-modal Prototypes and Image Bias Estimation
  3. 2026Mind the Way You Select Negative Texts: Pursuing the Distance Consistency in OOD Detection with VLMs
  4. 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
  5. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  6. 2025An Empirical Analysis of VLM-based OOD Detection: Mechanisms, Advantages, and Sensitivity
  7. 2026DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detection
  8. 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey