Respecting Modality Gap in Post-hoc Out-of-distribution Detection with Pre-trained Vision-Language Models
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
- 2026Debiased Negative Mining Improves Out-of-distribution Detection with Pre-trained Vision-Language Models22 May
- 2024Conjugated Semantic Pool Improves OOD Detection with Pre-trained Vision-Language Models11 Oct
- 2024LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models12 Jul
- 2024Two Effects, One Trigger: On the Modality Gap, Object Bias, and Information Imbalance in Contrastive Vision-Language Models11 Apr
- 2024Negative Label Guided OOD Detection with Pretrained Vision-Language Models29 Mar
Other references · 53
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,864
- 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,109
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2019Natural Adversarial Examplescited by 1,408
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2019VisualBERT: A Simple and Performant Baseline for Vision and Languagecited by 1,296
- 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,230
38 more
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 627
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 561
- 2018Predictive Uncertainty Estimation via Prior Networkscited by 557
- 2018Object Detection with Deep Learning: A Reviewcited by 528
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2020Class-incremental learning: survey and performance evaluation on image classificationcited by 449
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 353
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
- 2020Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networkscited by 231
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 216
- 2018Reducing Network Agnostophobiacited by 165
- 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 152
- 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 134
- 2023CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say Nocited by 130
- 2023Non-Parametric Outlier Synthesiscited by 129
- 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
- 2019Reverse KL-Divergence Training of Prior Networks: Improved Uncertainty and Adversarial Robustnesscited by 104
- 2021Can multi-label classification networks know what they don't know?cited by 100
- 2022Training OOD Detectors in their Natural Habitatscited by 86
- 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
- 2023Out-of-distribution Detection with Implicit Outlier Transformationcited by 43
- 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
- 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
- 2024ConjNorm: Tractable Density Estimation for Out-of-Distribution Detectioncited by 22
- 2022Out of Distribution Data Detection Using Dropout Bayesian Neural Networkscited by 15
- 2025Learning Robust Spectral Dynamics for Temporal Domain Generalizationcited by 14
- 2025Drift-aware Collaborative Assistance Mixture of Experts for Heterogeneous Multistream Learningcited by 14
- 2026Belief Memory: Agent Memory Under Partial Observabilitycited by 11
- 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
- 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models
- 2025Mitigating the Modality Gap: Few-Shot Out-of-Distribution Detection with Multi-modal Prototypes and Image Bias Estimation
- 2026Mind the Way You Select Negative Texts: Pursuing the Distance Consistency in OOD Detection with VLMs
- 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
- 2025An Empirical Analysis of VLM-based OOD Detection: Mechanisms, Advantages, and Sensitivity
- 2026DynProto: Dynamic Prototype Evolution for Out-of-Distribution Detection
- 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey