Adapting Contrastive Language-Image Pretrained (CLIP) Models for Out-of-Distribution Detection
Not on the map. Why?
Abstract (arXiv)
We present a comprehensive experimental study on pretrained feature extractors for visual out-of-distribution (OOD) detection, focusing on adapting contrastive language-image pretrained (CLIP) models. Without fine-tuning on the training data, we are able to establish a positive correlation (R2≥0.92) between in-distribution classification and unsupervised OOD detection for CLIP models in 4 benchmarks. We further propose a new simple and scalable method called textitpseudo-label probing (PLP) that adapts vision-language models for OOD detection. Given a set of label names of the training set, PLP trains a linear layer using the pseudo-labels derived from the text encoder of CLIP. To test the OOD detection robustness of pretrained models, we develop a novel feature-based adversarial OOD data manipulation approach to create adversarial samples. Intriguingly, we show that (i) PLP outperforms the previous state-of-the-art citepming2022mcm on all 5 large-scale benchmarks based on ImageNet, specifically by an average AUROC gain of 3.4% using the largest CLIP model (ViT-G), (ii) we show that linear probing outperforms fine-tuning by large margins for CLIP architectures (i.e. CLIP ViT-H achieves a mean gain of 7.3% AUROC on average on all ImageNet-based benchmarks), and (iii) billion-parameter CLIP models still fail at detecting adversarially manipulated OOD images. The code and adversarially created datasets will be made publicly available.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 73 of its 87 references that are in the map. First posted on arXiv 10 Mar 2023.
Builds on
73 of 87 references.
References · 73
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2013Intriguing properties of neural networkscited by 5,155
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
38 more
- 2022A ConvNet for the 2020scited by 3,579
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
- 2020Supervised Contrastive Learningcited by 2,829
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2016Concrete Problems in AI Safetycited by 1,642
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
- 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
- 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,311
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2014How transferable are features in deep neural networks?cited by 1,225
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,173
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021Robust fine-tuning of zero-shot modelscited by 797
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2021Going deeper with Image Transformerscited by 764
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 605
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2018A Survey on Deep Transfer Learningcited by 419
- 2018Rethinking ImageNet Pre-trainingcited by 377
- 2017Measuring Catastrophic Forgetting in Neural Networkscited by 360
- 2022Masked Siamese Networks for Label-Efficient Learningcited by 302
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
- 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
- 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
50 most cited of 73 All 73 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
- 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey
- 2025FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
- 2025Synthesizing Near-Boundary OOD Samples for Out-of-Distribution Detection
- 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
- 2025A Benchmark and Evaluation for Real-World Out-of-Distribution Detection Using Vision-Language Models
- 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
- 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models