atlas

Research map / Label-efficient and robust learning / Test-time adaptation

Any-Shift Prompting for Generalization over Distributions

CVPR 2024 · Label-efficient and robust learning › Test-time adaptation · approach: Characterizing out-of-distribution failures · 8 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 any-shift prompting, a hierarchical probabilistic prompt-learning framework on frozen CLIP that generates a test-specific prompt in one feedforward pass via a transformer inference network trained with pseudo-shift mini-batches.

Problem

Prompt learning on CLIP overfits the training distribution and fails to generalize under covariate, label, concept, conditional, and joint distribution shifts at test time.

Approach

Model training and test prompts as latent variables in a hierarchical Bayesian framework, with a shared transformer inference network that infers a test prompt (prior from one test image and class names; posterior from a batch with labels) and is trained with pseudo-shift mini-batches so no test-time optimization is needed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Any-Shift Prompting instead of DPLCLIP ViT-B/16 · PACSaccuracy: 98.16 ± 0.4 vs 97.07Helped
use Any-Shift Prompting instead of DPLCLIP ViT-B/16 · VLCSaccuracy: 86.54 ± 0.4 vs 83.99Helped
use Any-Shift Prompting instead of DPLCLIP ViT-B/16 · Office-Homeaccuracy: 85.16 ± 0.6 vs 83.00Helped
use Any-Shift Prompting instead of DPLCLIP ViT-B/16 · DomainNetaccuracy: 60.93 ± 0.6 vs 59.86Helped
use Any-Shift Prompting instead of CoCoOpCLIP ViT-B/16 · ImageNet-Superclassaccuracy: 71.12 ± 0.6 vs 69.77Helped
use Any-Shift Prompting instead of CoCoOpCLIP ViT-B/16 · Living-17accuracy: 88.41 ± 0.3 vs 87.24Helped
use Any-Shift Prompting instead of CoCoOpCLIP ViT-B/16 · Entity-30accuracy: 81.74 ± 0.4 vs 79.52Helped
use Any-Shift Prompting instead of CoCoOpCLIP ViT-B/16 · Open-Office-Homemean accuracy: 84.50 ± 0.4 vs 82.19Helped
use only the training prompt (ablation)Any-Shift Prompting · Open-Office-Homeaccuracy: 82.62 vs 84.50Hurt
use only test text features (ablation)Any-Shift Prompting · Open-Office-Homeaccuracy: 82.67 vs 84.50Hurt
use only test image features (ablation)Any-Shift Prompting · Open-Office-Homeaccuracy: 83.11 vs 84.50Hurt
remove the training prompt from the test text-and-image feature setting (ablation)Any-Shift Prompting · Open-Office-Homeaccuracy: 83.63 vs 84.50Hurt

Limitations

Experimental setup

Datasets: PACS VLCS Office-Home DomainNet ImageNet ImageNet-V2 ImageNet-Sketch ImageNet-A ImageNet-R Caltech101 OxfordPets StanfordCars

Benchmarks: PACS VLCS Office-Home DomainNet ImageNet-V2 ImageNet-Sketch ImageNet-A ImageNet-R 11 base-to-new datasets ImageNet-Superclass Living-17 Entity-30

Metrics: classification accuracy harmonic mean

Baselines: CLIP CLIP-D CoOp CoCoOp DPL BPL TPT MaPLe

Builds on: CLIP CoOp CoCoOp TPT Bayesian prompt learning

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