atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

Learning Transferable Negative Prompts for Out-of-Distribution Detection

CVPR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Spurious-aware OOD detection · 32 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Learns a few CLIP text 'negative prompts' per ID class from ID data only (on top of CoOp positive prompts) so OOD images match negative prompts better than ID images, with transfer to unseen class names for open-vocabulary OOD detection.

Problem

Prompt-learning-based CLIP methods for out-of-distribution detection lack OOD knowledge, causing ID/OOD confusion and high false positive rates; existing methods also assume access to all ID classes during training.

Approach

Learn class-conditional negative text prompts (negative connotations of each ID label) with only ID images, using a negative-image separation loss (uniform distribution over negative prompts, OE-inspired), a negative-positive distance loss, and a negative-negative diversity loss; the negative prompts transfer to unseen class names, and scoring uses MCM-style max softmax over positive and negative

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Learn negative prompts alongside positive class promptsNegPrompt with CLIP-B/16 · TextureAUC: 90.93 -> 91.60Helped
Learn negative prompts alongside positive class promptsNegPrompt with CLIP-B/16 · iNaturalistFPR95: 16.05 -> 6.32Helped
Learn negative prompts alongside positive class promptsNegPrompt with CLIP-B/16 · PlacesAUC: 92.28 -> 93.34Helped
Learn negative prompts alongside positive class promptsNegPrompt with CLIP-B/16 · SUNFPR95: 23.44 -> 22.89Helped
Use ResNet-50 instead of ViT-B-16 as the backbone (ablation)NegPrompt · ImageNet OOD detection, average AUCAUC: 93.37 -> 85.70Hurt
Use ResNet-101 instead of ViT-B-16 as the backbone (ablation)NegPrompt · ImageNet OOD detection, average AUCAUC: 93.37 -> 88.04Hurt
Use ViT-B-32 instead of ViT-B-16 as the backbone (ablation)NegPrompt · ImageNet OOD detection, average AUCAUC: 93.76 -> 93.37Hurt
Use 1 negative prompt instead of 2 (ablation)NegPrompt · ImageNet OOD detection, average AUCAUC: 93.76 -> 92.73Hurt
Train positive and negative prompts together in one stage instead of two stages (ablation)NegPrompt · ImageNet OOD detection, average AUCAUC: 93.76 -> 80.23Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K Texture iNaturalist Places SUN TinyImageNet

Benchmarks: ImageNet-1K OOD benchmarks (Texture, iNaturalist, Places, SUN) ImageNet-1K hard OOD splits (Split-1 to Split-4)

Metrics: AUROC FPR95 Top-1 accuracy

Baselines: MCM CLIPN MSP MaxLogit Energy ReAct ODIN CoOp LoCoOp

Builds on: CoOp MCM OE (Outlier Exposure) LoCoOp

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy