Reproduce “Detecting Backdoor Samples in Contrastive Language Image Pretraining” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Hanxun Huang, Sarah Erfani, Yige Li, Xingjun Ma, James Bailey
This paper introduces highly effective and efficient methods for detecting backdoor samples in Contrastive Language-Image Pretraining (CLIP) models by identifying poisoned data points as local outliers in the representation space. The proposed local outlier detection techniques enable rapid purification of large-scale datasets, reducing attack success rates to near zero, and revealed the presence of unintentional backdoors in commonly used web-crawled datasets.
Key insights
- CLIP backdoor samples exhibit unique characteristics in their local representation subspace, specifically displaying significantly sparser local neighborhoods compared to clean samples, making them distinct outliers.
- Traditional local and density-based outlier detection methods (k-dist, SLOF, DAO) are highly effective and efficient at identifying CLIP backdoor samples, consistently achieving near-perfect detection accuracy across various attack types and model architectures.
- Unintentional or 'natural' backdoor patterns can exist in widely used, purportedly clean web-crawled datasets and propagate into popular open-source models, underscoring the inherent risks of current data curation practices.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.