paper-with-me

Papers

Detecting Backdoor Samples in Contrastive Language Image Pretraining

2025-02-03 · Hanxun Huang, Sarah Erfani, Yige Li, Xingjun Ma, James Bailey

Contrastive language-image pretraining (CLIP) has been found to be vulnerable to poisoning backdoor attacks where the adversary can achieve an almost perfect attack success rate on CLIP models by poisoning only 0.01\% of the training dataset. This raises security concerns on the current practice of pretraining large-scale models on unscrutinized web data using CLIP. In this work, we analyze the representations of backdoor-poisoned samples learned by CLIP models and find that they exhibit unique characteristics in their local subspace, i.e., their local neighborhoods are far more sparse than that of clean samples. Based on this finding, we conduct a systematic study on detecting CLIP backdoor attacks and show that these attacks can be easily and efficiently detected by traditional density ratio-based local outlier detectors, whereas existing backdoor sample detection methods fail. Our experiments also reveal that an unintentional backdoor already exists in the original CC3M dataset and has been trained into a popular open-source model released by OpenCLIP. Based on our detector, one can clean up a million-scale web dataset (e.g., CC3M) efficiently within 15 minutes using 4 Nvidia A100 GPUs. The code is publicly available in our \href{https://github.com/HanxunH/Detect-CLIP-Backdoor-Samples}{GitHub repository}.

📄 PDF Abstract BibTeX arXiv:2502.01385

Code (1)

HanxunH/Detect-CLIP-Backdoor-Samples 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

DeDe: Detecting Backdoor Samples for SSL Encoders via Decoders

2024-11-25 · CVPR 2025 1 · Sizai Hou, Songze Li, Duanyi Yao

Self-supervised learning (SSL) is pervasively exploited in training high-quality upstream encoders with a large amount of unlabeled data. However, it is found to be susceptible to backdoor attacks merely via polluting a …

Contrastive LearningDecoderSelf-Supervised Learning

Proactive Adversarial Defense: Harnessing Prompt Tuning in Vision-Language Models to Detect Unseen Backdoored Images

2024-12-11 · Kyle Stein, Andrew Arash Mahyari, Guillermo Francia, Eman El-Sheikh

Backdoor attacks pose a critical threat by embedding hidden triggers into inputs, causing models to misclassify them into target labels. While extensive research has focused on mitigating these attacks in object recognit…

Adversarial Defensebackdoor defenseObject Recognition

BDMMT: Backdoor Sample Detection for Language Models through Model Mutation Testing

2023-01-25 · Jiali Wei, Ming Fan, Wenjing Jiao, Wuxia Jin 외

Deep neural networks (DNNs) and natural language processing (NLP) systems have developed rapidly and have been widely used in various real-world fields. However, they have been shown to be vulnerable to backdoor attacks.…

Backdoor AttackSentenceSST-2Style Transfer

BDetCLIP: Multimodal Prompting Contrastive Test-Time Backdoor Detection

2024-05-24 · Yuwei Niu, Shuo He, Qi Wei, Zongyu Wu 외

Multimodal contrastive learning methods (e.g., CLIP) have shown impressive zero-shot classification performance due to their strong ability to joint representation learning for visual and textual modalities. However, rec…

Contrastive LearningLanguage ModellingRepresentation Learningzero-shot-classification+1

Backdoor Samples Detection Based on Perturbation Discrepancy Consistency in Pre-trained Language Models

2025-08-30 · Zuquan Peng, Jianming Fu, Lixin Zou, Li Zheng 외 arxiv

The use of unvetted third-party and internet data renders pre-trained models susceptible to backdoor attacks. Detecting backdoor samples is critical to prevent backdoor activation during inference or injection during tra…