atlas

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

CoPL: Contextual Prompt Learning for Vision-Language Understanding

AAAI 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Prompt learning for CLIP · 19 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 CoPL, a prompt-learning method for CLIP that conditions learnable prompt tokens on local ViT patch features and weights them via attention, improving base-to-novel and domain generalization over CoCoOp and related methods.

Problem

Existing CLIP prompt learning methods such as CoCoOp condition prompts on global image features and weight all prompt tokens equally, which hurts generalization to unseen classes and out-of-distribution data.

Approach

Align learnable prompt tokens to local (patch-level) image features using an additive-style attention (Luong/Bahdanau-like content score) so each prompt receives image-dependent importance weights, producing contextual prompts while keeping CLIP frozen.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace global image features with local image features for prompt learning (ablation)CoPL · Caltech101, Seenaccuracy: 97.2 -> 98.1Helped
replace global image features with local image features for prompt learning (ablation)CoPL · Caltech101, Unseenaccuracy: 94.1 -> 94.9Helped
replace global image features with local image features for prompt learning (ablation)CoPL · DTD, Seenaccuracy: 77.4 -> 78.0Helped
replace global image features with local image features for prompt learning (ablation)CoPL · DTD, Unseenaccuracy: 39.9 -> 50.0Helped
use contextual local features and prompt weighting instead of CoCoOp conditioningCoPL · 11-dataset classification, Unseen (16-shot/class)accuracy: +3.9%Helped
use contextual local features and prompt weighting instead of CoCoOp conditioningCoPL · Cross-dataset zero-shot, 9 target datasetsaccuracy: 63.7 -> 65.1Helped
use contextual local features and prompt weighting instead of CoPromptCoPL · Domain generalization, ImageNet source; 4 targetsaccuracy: 60.4 -> 61.0Helped
use contextual local features and prompt weighting instead of CoCoOpCoPL · Incremental test, average over 11 datasetsaccuracy: 69.1 -> 74.7Helped
use contextual local features and prompt weighting instead of CoCoOpCoPL · EuroSAT, Unseen (16-shot/class)accuracy: 60.0 -> 34.2Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Caltech101 OxfordPets StanfordCars Flowers102 Food101 FGVCAircraft SUN397 DTD EuroSAT UCF101

Benchmarks: Caltech101 OxfordPets StanfordCars Flowers102 Food101 FGVCAircraft SUN397 DTD EuroSAT UCF101 ImageNet ImageNetV2

Metrics: accuracy harmonic mean

Baselines: CLIP CoOp CoCoOp KgCoOp ProGrad MaPLe CoPrompt

Builds on: CoOp CoCoOp CLIP KgCoOp

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