atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

BadCLIP: Trigger-Aware Prompt Learning for Backdoor Attacks on CLIP

CVPR 2024 · Adversarial robustness and security › Backdoor and poisoning · approach: Backdoors in large multimodal models · 24 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 BadCLIP, a backdoor attack that injects a learnable image trigger and a trigger-aware context generator into CLIP during prompt learning, requiring only few-shot downstream data.

Problem

Existing backdoor attacks on CLIP require fine-tuning the whole model with large additional data or pre-training data poisoning, which is infeasible in data-limited few-shot prompt-learning settings.

Approach

Influence both image and text encoders with the trigger: a learnable additive image trigger plus a context generator that conditions learned prompts on the image (trigger-aware), so backdoor images shift text features toward the target class; a trigger warm-up stage stabilizes joint optimization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use trigger-aware prompts rather than trigger-agnostic prompts (ablation)BadCLIP · Unseen classes (11-dataset average)ASR: 2.21 -> 99.02Helped
Use trigger-aware prompts rather than trigger-agnostic prompts (ablation)BadCLIP · Seen classes (11-dataset average)ASR: 95.31 -> 99.52Helped
Train trigger-aware prompts and a learnable triggerBadCLIP · Cross-dataset transfer (10-dataset average)ASR: 99.98Helped
Train trigger-aware prompts and a learnable triggerBadCLIP · Cross-domain transfer (4 target datasets average)ASR: 99.92Helped
Use prompt learning without requiring additional attack dataBadCLIP · STL10ASR: 98.57 vs 99.96Mixed
Use trigger-aware prompts instead of trigger-agnostic prompts (ablation)BadCLIP · Seen/unseen harmonic mean (11-dataset average)ASR: 3.81 -> 99.26Helped

Surprising findings

Limitations

Experimental setup

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

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

Metrics: ACC ASR harmonic mean PSNR SSIM R@1

Baselines: CLIP zero-shot CoOp CoCoOp BadEncoder fine-tuning on poisoned data trigger-agnostic prompts

Builds on: CLIP CoOp CoCoOp BadEncoder Neural Cleanse

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