atlas

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

Local-Prompt: Extensible Local Prompts for Few-Shot Out-of-Distribution Detection

ICLR 2025 · Label-efficient and robust learning › OOD and anomaly detection · approach: Provable and feature-based OOD detection · 0 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.

Proposes Local-Prompt, a few-shot tuning method that freezes global CLIP prompts and learns extra local prompts with random-crop negative augmentation and regional regularization to improve OOD detection.

Problem

Few-shot OOD detection with vision-language models relies on global prompts and ignores local regional information where hard outliers differ only subtly in certain image regions.

Approach

Freeze global hand-crafted prompts to guide random-crop negative augmentation, and train local prompts (plus local negative prompts) with a top-k regional contrastive loss, diversity regularization, and a regional OOD score; the local prompts can be combined with trained global prompts at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add local negative loss to positive local loss (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 30.85 -> 29.27Helped
Add diversity regularization to positive and negative local losses (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageAUROC: 93.27 -> 93.48Helped
Replace random crop with cutout augmentation (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 28.77 -> 33.21Hurt
Replace random crop with Gaussian noise augmentation (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 28.77 -> 30.76Hurt
Use 100 rather than 300 local negative prompts (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 28.77 -> 28.82Hurt
Use 200 rather than 300 local negative prompts (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 28.77 -> 28.52Helped
Increase negative augmentations from 1 to 8 (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 28.77 -> 30.04Hurt
Train for 50 rather than 30 epochs (ablation)Local-Prompt · ImageNet-1k ID, 4-shot OOD averageAUROC: 93.48 -> 93.40Hurt
Integrate trained LoCoOp global prompts with local promptsLocal-Prompt · ImageNet-1k ID, 4-shot OOD averageFPR95: 27.66 -> 26.29Helped
Use local prompts instead of LoCoOpCLIP-Base/16 · ImageNet-1k ID, 4-shot OOD averageFPR95: 31.46 -> 27.66Helped
Use local prompts instead of LoCoOpCLIP-Base/16 · ImageNet-1k ID, 4-shotID accuracy: 69.50 -> 70.52Helped
Use Local-Prompt for near-OOD detectionCLIP-Base/16 · ImageNet-10 ID, ImageNet-20 OOD, 16-shotFPR95: 11.20 -> 3.90Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k ImageNet-100 ImageNet-10 ImageNet-20 iNaturalist SUN Places Texture

Benchmarks: ImageNet-1k OOD (iNaturalist, SUN, Places, Texture) ImageNet-100 OOD ImageNet-10 vs ImageNet-20 near OOD ImageNet-1k ID accuracy

Metrics: FPR95 AUROC ID accuracy

Baselines: MCM GL-MCM CoOp LoCoOp NegLabel ID-like MSP Energy KNN NPOS Textual-OE

Builds on: CoOp LoCoOp MCM GL-MCM

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