TGViewer
Machine learning books and papers Machine learning books and papers @machine_learn · 24.2K subscribers
Post #3390 1.75K
Detecting Backdoor Samples in Contrastive Language Image Pretraining

3 Feb 2025 · 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.

Paper: https://arxiv.org/pdf/2502.01385v1.pdf

Code: https://github.com/HanxunH/Detect-CLIP-Backdoor-Samples

Datasets: Conceptual Captions CC12M RedCaps

@Machine_learn
  • 👍 1
More from @machine_learn
  1. Oct 14, 2026A Comparative Survey on Large Language Models for Biological Data Ramin Mousa, Ali Sarabad…
  2. Oct 12, 2026🔥 Prism: Dynamic Sparse Attention for Native 2K Joint Video-Audio Generation Model Traini…
  3. Oct 12, 2026🔥 Spatial Memory Intelligence: Endowing World Models with Understanding-Driven Long-Term…
  4. Oct 5, 2026Machine learning books and papers pinned «High-Impact Research Paper – MedicalRec / GROKRe…
  5. Oct 5, 2026High-Impact Research Paper – MedicalRec / GROKRec Title: MedicalRec Price: $1,000 USD Look…
  6. Oct 5, 2026🔥 FrameMorrow: Future-guided Frame Selection with Prospective Tokens for Long-Horizon Vid…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →