atlas

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

Large Language Models are Good Prompt Learners for Low-Shot Image Classification

CVPR 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Adapting VLMs for zero-shot classification · 21 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 LLaMP, which uses an LLaMA2-7B decoder as an adaptive prompt learner for the CLIP text encoder, via a KV-cache trick that trains only query/output projections and prompts, evaluated on base-to-novel and 16-shot classification over 11 datasets.

Problem

Low-shot image classification (zero-shot base-to-novel and few-shot) relies on CLIP text features from bare class names, which carry little class-specific information for fine-grained categories; directly using LLMs is hampered by the vision-language domain gap and data scarcity.

Approach

Treat an LLM as the prompt learner of the CLIP text encoder: learnable prompts are appended after cached LLM key/value states of a description query, only the query and output projections of the last LLM layer are tuned, and the resulting hidden states are projected into the CLIP text input space as class-specific prompts.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLaMP with LLM-derived adaptive prompts instead of PSRCCLIP ViT-B/16 low-shot classification · 11-dataset base-to-novel benchmarkaverage harmonic mean: +1.30Helped
Add parsed noun phrases from LLM responses to CLIP prompts without training (ablation)CLIP · Average base-to-novelharmonic mean: 71.70 -> 72.79Helped
Add LLM-based adaptive prompting to the ordinary prompting model with vision LoRA (ablation)LLaMP without LLM · Average base-to-novelharmonic mean: 79.22 -> 81.27Helped
Train LLM prompts and Query/Output projections rather than prompts alone (ablation)LLaMP decoder · ImageNet base-to-novelharmonic mean: 80.96 -> 81.27Helped
Use parsed noun phrases as textual priors instead of no textual priors (ablation)LLaMP · ImageNet base-to-novelharmonic mean: 81.08 -> 81.27Helped
Use the CLIP text encoder as a bridge instead of using the LLM alone as text encoder (ablation)LLaMP · ImageNet base-to-novelnovel accuracy: 35.82 -> 77.71Helped
Use hybrid vision tuning (prompt ×6 + LoRA ×6) instead of prompt ×9 (ablation)LLaMP vision encoder · ImageNet base-to-novelharmonic mean: 80.81 -> 81.27Helped
Increase LLM prompt count from 2 to 16 (ablation)LLaMP · ImageNet base-to-novelharmonic mean: 80.94 -> 81.27Helped
Use LLaMP rather than PSRC16-shot image classification · FGVCAircraftaccuracy: +5.24Helped

Surprising findings

Limitations

Experimental setup

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

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

Metrics: base accuracy novel accuracy harmonic mean 16-shot accuracy

Baselines: CLIP CoOp CoCoOp KAPT ProDA MaPLe RPO PSRC

Builds on: CLIP CoOp CoCoOp PSRC MaPLe LoRA

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