mlsanityData to 14 Oct 2026

Adapting Contrastive Language-Image Pretrained (CLIP) Models for Out-of-Distribution Detection

arXiv 2303.05828 ↗First posted 10 Mar 2023cs.CV cs.AI cs.LGcited by 0

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  6. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  7. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  8. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  9. 2013Intriguing properties of neural networkscited by 5,155
  10. 2017On Calibration of Modern Neural Networkscited by 4,960
  11. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
  12. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
38 more
  1. 2022A ConvNet for the 2020scited by 3,579
  2. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,877
  3. 2020Supervised Contrastive Learningcited by 2,829
  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. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  7. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  8. 2016Concrete Problems in AI Safetycited by 1,642
  9. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
  10. 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,591
  11. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  12. 2019Natural Adversarial Examplescited by 1,408
  13. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  14. 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,311
  15. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  16. 2014How transferable are features in deep neural networks?cited by 1,225
  17. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,173
  18. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  19. 2021Robust fine-tuning of zero-shot modelscited by 797
  20. 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
  21. 2021Going deeper with Image Transformerscited by 764
  22. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  23. 2018Exploring the Limits of Weakly Supervised Pretrainingcited by 605
  24. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  25. 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
  26. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  27. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
  28. 2021Intriguing Properties of Vision Transformerscited by 446
  29. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  30. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  31. 2018A Survey on Deep Transfer Learningcited by 419
  32. 2018Rethinking ImageNet Pre-trainingcited by 377
  33. 2017Measuring Catastrophic Forgetting in Neural Networkscited by 360
  34. 2022Masked Siamese Networks for Label-Efficient Learningcited by 302
  35. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
  36. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  37. 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
  38. 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

  1. 2025Harnessing Large Language and Vision-Language Models for Robust Out-of-Distribution Detection
  2. 2025Recent Advances in Out-of-Distribution Detection with CLIP-Like Models: A Survey
  3. 2025FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection
  4. 2025Synthesizing Near-Boundary OOD Samples for Out-of-Distribution Detection
  5. 2023How Does Fine-Tuning Impact Out-of-Distribution Detection for Vision-Language Models?
  6. 2025A Benchmark and Evaluation for Real-World Out-of-Distribution Detection Using Vision-Language Models
  7. 2025Out-of-Distribution Detection with Positive and Negative Prompt Supervision Using Large Language Models
  8. 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models