Adapting Contrastive Language-Image Pretrained (CLIP) Models for Out-of-Distribution Detection
Nikolas Adaloglou, Felix Michels, Tim Kaiser, Markus Kollmann

TL;DR
This paper investigates how pretrained CLIP models can be adapted for out-of-distribution detection without fine-tuning, introduces a new scalable method called pseudo-label probing, and evaluates robustness against adversarial OOD samples.
Contribution
It proposes pseudo-label probing (PLP) for OOD detection, demonstrating its superiority over previous methods and analyzing CLIP's robustness to adversarial OOD data.
Findings
PLP outperforms previous state-of-the-art on large-scale benchmarks.
Linear probing surpasses fine-tuning for CLIP architectures.
Billion-parameter CLIP models are vulnerable to adversarial OOD samples.
Abstract
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 () between in-distribution classification and unsupervised OOD detection for CLIP models in benchmarks. We further propose a new simple and scalable method called \textit{pseudo-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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · COVID-19 diagnosis using AI · Anomaly Detection Techniques and Applications
MethodsContrastive Language-Image Pre-training · Linear Layer · fail
