atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

A Closer Look at Backdoor Attacks on CLIP

ICML 2025 · Adversarial robustness and security › Backdoor and poisoning · approach: Detecting poisoned samples

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.

Empirical study decomposing CLIP image representations into patch, attention-head and MLP contributions to show how backdoor attacks infect components, then proposes head-selective representation repair and head-count-based backdoor sample detection at inference.

Problem

Backdoor attacks on CLIP produce tampered image representations, yet there is limited systematic understanding of which model components they affect and how, which hinders defense design.

Approach

Use representation decomposing and mean-ablation over attention heads and MLPs to show local patch triggers infect late attention heads while global perturbation triggers infect late MLPs; then repair only heavily infected heads (low cosine similarity to head prototypes) or flag samples with many infected heads at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Repair selected infected AH representations using head-specific prototypesCLIP ViT-B/32 backdoored with BadCLIP · ImageNet-1KASR: 99.78 -> 0.94Helped
Repair selected infected AH representations using head-specific prototypesCLIP ViT-B/32 backdoored with BadNet · ImageNet-1KASR: 86.09 -> 21.45Helped
Repair selected infected AH representations after CleanCLIP fine-tuningCleanCLIP · ImageNet-1K, BadCLIPASR: 69.03 -> 37.09Helped
Detect backdoor samples by counting selected infected AHsCLIP ViT-B/32 · ImageNet-1K, Caltech-101, Oxford Pets (average)AUROC: 0.826 -> 0.944Helped
Mean-ablate all MLPs (ablation)CLIP ViT-B/32 with local patch attacks (BadNet, BadCLIP) · ImageNet-1KASRNo clear effect
Mean-ablate all MLPs (ablation)CLIP ViT-B/32 with global perturbation attacks (Blended, ISSBA) · ImageNet-1KASRHelped
Mean-ablate all AHs (ablation)CLIP ViT-B/32 with local patch attacks (BadNet, BadCLIP) · ImageNet-1KASRHelped
Mean-ablate all AHs (ablation)CLIP ViT-B/32 with global perturbation attacks (Blended, ISSBA) · ImageNet-1KASRNo clear effect
Ablate AHs in the last layer (ablation)CLIP ViT-B/32 with BadNet and BadCLIP · ImageNet-1KASRHelped
Ablate MLPs in the last five layers (ablation)CLIP ViT-B/32 with Blended and ISSBA · ImageNet-1KASRHelped
Ablate one layer’s MLP instead of the last five layers’ MLPs (ablation)CLIP ViT-B/32 with Blended and ISSBA · ImageNet-1KASRNo clear effect
Use fixed AH locations [1, 2, 3], [7, 8, 9], or [10, 11, 12] rather than selecting infected AHs per image (ablation)Decomp-Rep · ImageNet-1K, Caltech-101, Oxford PetsASRHurt

Surprising findings

Limitations

Experimental setup

Datasets: CC3M ImageNet-1K Caltech-101 Oxford Pets

Benchmarks: ImageNet-1K Caltech-101 Oxford Pets

Metrics: ASR CACC AUROC

Baselines: CleanCLIP STRIP SCALE-UP TeCo Base-Decomp

Builds on: TextSpan (Gandelsman et al., 2024) CleanCLIP representation decomposition

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