atlas

Research map / Vision-language and multimodal / Human and embodied modeling

Semantic Shield: Defending Vision-Language Models Against Backdooring and Poisoning via Fine-grained Knowledge Alignment

CVPR 2024 · Vision-language and multimodal › Human and embodied modeling · approach: Language-grounded scene text and structure · 4 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 Semantic Shield, a training-time defense for contrastive vision-language models that aligns image patches with LLM-generated knowledge elements and penalizes attention to poorly aligned patches, defending against backdoor and poisoning attacks.

Problem

Contrastively trained vision-language models scraped from the web are vulnerable to backdooring and poisoning attacks that inject small amounts of malicious image-caption data.

Approach

Use knowledge elements (sub-object parts, attributes) extracted from captions by an LLM to learn patch-KE alignment via multi-instance constraints, then constrain ViT attention to be proportional to patch-KE alignment and down-weight the contrastive loss for samples with low alignment.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply Semantic Shield (weighted contrastive loss plus attention guidance)CL · COCO and Flickr30k backdoor attacks (patch, BPP, Wanet)Hit@1: 90.66 -> 0.9; 100.0 -> 0.0; 100.0 -> 0.0; 91.97 -> 0.0; 100.0 -> 0.0; 100.0 -> 0.0Helped
Apply Semantic Shield (weighted contrastive loss plus attention guidance)CL · COCO single-target dog2boat poisoningHit@1: 18.0 -> 0.04Helped
Apply Semantic Shield (weighted contrastive loss plus attention guidance)CL · COCO multi-target dog2boat poisoningHit@1: 77.12 -> 2.23Helped
Apply Semantic Shield (weighted contrastive loss plus attention guidance)CL · COCO multi-target train2zebra poisoningHit@1: 55.32 -> 0.0Helped
Apply Semantic Shield (weighted contrastive loss plus attention guidance)CL · Flickr30k multi-target bird2sofa poisoningHit@1: 55.32 -> 0.0Helped
Add patch-KE alignment loss (ablation)CL + Attention · COCO, Backdoor PatchHit@1: 4.20 -> 0.9Helped
Add patch-KE alignment loss (ablation)CL + Attention · Flickr30k, Backdoor PatchHit@1: 1.20 -> 0.0Helped
Add attention guidance (ablation)CL + KE · COCO, Backdoor PatchHit@1: 9.0 -> 0.9Helped
Add attention guidance (ablation)CL + KE · Flickr30k, Backdoor PatchHit@1: 16.10 -> 0.0Helped
Use patch-KE alignment loss alone (ablation)CL · COCO and Flickr30k backdoor attacksHit@1: CL+ KE: 9.0, 25.39, 12.21, 16.10, 13.14, 23.36Mixed
Use attention guidance without weighted contrastive loss (ablation)CL · COCO and Flickr30k backdoor attacksHit@1: CL + Attention: 4.20, 0.0, 0.0, 1.20, 0.0, 0.0Mixed
Use Semantic Shield for image-caption retrieval utilityCL · COCO and Flickr30k, Recall@10 across attack settingsRecall@10: 74.22; 74.56; 74.23; 73.46; 73.51; 61.07; 56.32; 60.16; 59.76; 58.78No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: COCO Flickr30k ImageNet-21k ImageNet-1k

Benchmarks: COCO Flickr30k

Metrics: Hit@1 Hit@5 Hit@10 Recall@10

Baselines: CleanCLIP ABL (Anti-backdoor learning) CL (no defense) CL + KE CL + Attention

Builds on: CLIP CleanCLIP Anti-backdoor learning Carlini & Terzis poisoning attack

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