atlas

Research map / Large language models / Language, safety and interpretability

Language Models as Black-Box Optimizers for Vision-Language Models

CVPR 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 22 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.

Uses chat-based LLMs (ChatGPT) as black-box optimizers that iteratively refine natural-language class-agnostic prompts for CLIP via hill-climbing with positive and negative conversational feedback, and extends to DALL-E 3 text-to-image optimization with GPT-4V feedback.

Problem

Optimizing vision-language models (e.g., CLIP, DALL-E 3) when weights, embeddings, and logits are inaccessible, so white-box fine-tuning methods cannot be used; only natural-language prompts can be tuned for few-shot classification and text-to-image generation.

Approach

Treat a chat LLM as the optimizer in a stochastic hill-climbing loop: it sees top-k and bottom-k scored prompts with their accuracies and proposes improved templates, using the conversational feedback as an implicit gradient direction, with random restarts and resets for exploration.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use positive and negative prompts instead of positive prompts only (ablation)LLM-based prompt optimization · 11-dataset one-shot classification (Avg)accuracy: 60.1 to 61.1; 1.0%Helped
Use positive and negative prompts instead of positive prompts only (ablation)LLM-based prompt optimization · ImageNet one-shot classificationaccuracy: 59.4 -> 59.6Helped
Optimize initial prompts with ChatGPTLAIONCOCO-1M prompt selection · 11-dataset one-shot classification (Avg)accuracy: 56% to 61%Helped
Use LLM prompt optimization instead of CoOpone-shot classification · 11-dataset one-shot classification (Avg)accuracy: 59.6 to 61.1; 1.5%Helped
Use LLM prompt optimization instead of human-engineered promptsone-shot classification · 11-dataset one-shot classification (Avg)accuracy: 58.8 to 61.1Helped
Provide top and bottom-performing prompts as conversational feedback (ablation)LLM-based prompt optimization · 11-dataset classification and ImageNetaccuracyHelped
Transfer natural-language prompts from RN50 to other CLIP backbonesCLIP prompt optimization · 16-shot ImageNetaccuracy: 59.9; 60.7; 62.2; 67.0Helped
Transfer CoOp continuous prompts from RN50 to RN101CoOp · 16-shot ImageNetaccuracy: 63.0 to 20.6Hurt
Optimize DALL-E 3 prompts with GPT4-V feedbackDALL-E 3 text-to-image generation · Text-to-image generationfaithfulness: 2.62 to 3.56Helped
Optimize DALL-E 3 prompts with GPT4-V feedbackDALL-E 3 prompt inversion · Prompt inversionfaithfulness: 1.94 to 3.68Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet Caltech101 FGVC-Aircraft Food101 Oxford Pets Stanford Cars SUN397 UCF101 DTD EuroSAT Flowers102 LAION-COCO

Benchmarks: CoOp 11-dataset few-shot classification (1-shot) ImageNet 16-shot prompt transfer Winoground-based text-to-image DiffusionDB prompt inversion

Metrics: accuracy human faithfulness score (1-5 Likert)

Baselines: CoOp WiSE-FT Cross-Modal Adaptation LFA BlackVIP DCLIP Hand-Engineered prompts a photo of a {}

Builds on: CoOp Algorithm 1 human prompt engineering APE DCLIP Cross-Modal Adaptation

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