atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts

ICLR 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Attribute-based zero-shot learning · 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 PerceptionCLIP, a training-free two-step zero-shot CLIP classifier that first infers contextual attributes (e.g., background, orientation) from the image and then classifies conditioned on them.

Problem

Zero-shot image classification with CLIP treats classification as text retrieval with simple or ad-hoc prompt templates, ignoring contextual attributes like background and orientation, which leads to sub-optimal generalization and reliance on spurious features.

Approach

Model images as generated from the class plus contextual attributes, define an attribute-aware CLIP score over descriptions of class and attributes, and marginalize over self-inferred attribute distributions to classify, emulating human perception; prompt ensembling is shown to be a special case.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Infer and condition on the top 4 contextual attributes instead of using 80 templatesCLIP ViT-B/16 · ImageNet-Raccuracy: 77.71 -> 78.38Helped
Add contextual attributes, including image source and conditionCLIP ViT-B/16 · EuroSATaccuracy: 54.94 -> 59.23Helped
Condition classification on ground-truth contextual attributes rather than omitting attributesCLIP · ImageNet, transformed-image averageaccuracy: +1.16Helped
Condition classification on randomly generated contextual attributes instead of omitting attributes (ablation)CLIP · ImageNet, transformed-image averageaccuracy: +0.64Mixed
Condition classification on wrong contextual attribute values instead of omitting attributes (ablation)CLIP · ImageNet, transformed-image averageaccuracy: +0.57Mixed
Intervene in inferred attributes using temperature 3 and the top four attributes (ablation)PerceptionCLIP · ImageNetaccuracy: 68.59% -> 68.72%Helped
Condition on background+ rather than using no contextCLIP ViT-L/14 · Waterbirdsworst-group accuracy: 44.64 -> 61.12Helped
Condition on gender, age, and race rather than using no contextCLIP ViT-L/14 · CelebAworst-group accuracy: 77.36 -> 80.84Helped
Use correctly matched contextual descriptions rather than no contextCLIP ViT-B/32 · Waterbirdscore-feature saliency: 62.8 -> 66.3Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet ImageNet-C Waterbirds CelebA

Benchmarks: ImageNet ImageNetV2 ImageNet-R ImageNet-A ImageNet-Sketch CUB200 EuroSAT Places365 Flowers102 Food101 Oxford Pets Waterbirds

Metrics: accuracy worst-group accuracy accuracy gap

Baselines: single template (a photo of a {class}) 80 prompt ensemble templates domain template

Builds on: CLIP prompt ensembling Grad-CAM Segment Anything

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