atlas

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

TCP:Textual-based Class-aware Prompt tuning for Visual-Language Model

CVPR 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Prompt learning for CLIP · 70 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 TCP, a textual prompt-tuning method that maps frozen CLIP class-name text embeddings into class-aware prompt tokens via a small Textual Knowledge Embedding module, inserted mid-layer into the CLIP text encoder.

Problem

CoOp-style prompt tuning of vision-language models uses domain-shared or image-conditional learnable tokens that do not model the class distribution, so they generalize poorly to unseen classes.

Approach

Derive class-aware prompt tokens from frozen CLIP class-level text embeddings through a down/up projection (TKE) and insert them into the 8th layer of the text encoder alongside shared learnable tokens; TKE is plug-and-play for other CoOp-based methods.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add class-aware TKE prompts to KgCoOp (ablation)KgCoOp · Base-to-new generalization, AverageH: 77.00 -> 79.51Helped
add TKE (ablation)CoOp · Base-to-new generalization, AverageH: 74.6 -> 76.09Helped
add TKE (ablation)ProGrad · Base-to-new generalization, AverageH: 76.16 -> 77.46Helped
add TKE (ablation)PromptSRC · Base-to-new generalization, AverageH: 78.03 -> 79.60Helped
add TKE (ablation)DAPT · Base-to-new generalization, AverageH: 75.59 -> 79.24Helped
use class-aware prompt rather than domain-shared prompt (ablation)KgCoOp prompt tuning · Base-to-new generalization, AverageH: 77 -> 79.36Helped
combine domain-shared and class-aware prompts (ablation)TCP · Base-to-new generalization, AverageH: 79.36 -> 79.51Helped
replace random prompt initialization with handcrafted template 'a photo of a' (ablation)TCP · Base-to-new generalization, AverageH: 79.51 -> 79.18Hurt
replace random prompt initialization with 'this is a picture' (ablation)TCP · Base-to-new generalization, AverageH: 79.51 -> 79.06Hurt
insert class-aware prompts at layers 4 and 8 rather than layer 8 only (ablation)TCP · Base-to-new generalization, AverageH: 79.51 -> 79.33No clear effect
insert class-aware prompts at layers 4, 8 and 10 rather than layer 8 only (ablation)TCP · Base-to-new generalization, AverageH: 79.51 -> 79.02Hurt
use more prompt insertion layers, at 4, 6, 8 and 10 (ablation)TCP · Base-to-new generalization, AverageH: 79.51 -> 79.13Hurt

Surprising findings

Limitations

Experimental setup

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

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

Metrics: accuracy harmonic mean (H)

Baselines: CoOp CoCoOp KgCoOp ProGrad ProDA RPO PLOT MaPLe PromptSRC DePT DAPT TaskRes

Builds on: CoOp KgCoOp CLIP CoCoOp

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