BackdoorIDS: Zero-shot Backdoor Detection for Pretrained Vision Encoder
Siquan Huang, Yijiang Li, Ningzhi Gao, Xingfu Yan, Leyu Shi, Ying Gao

TL;DR
BackdoorIDS is a zero-shot detection method that identifies backdoored pretrained vision encoders by analyzing attention shifts during input masking, outperforming existing defenses without retraining.
Contribution
It introduces a novel zero-shot, inference-time backdoor detection technique based on attention hijacking and restoration, applicable across diverse encoder architectures.
Findings
Outperforms existing defenses across various attack types and datasets
Operates fully zero-shot without retraining
Compatible with multiple encoder architectures such as CNNs, ViTs, CLIP, and LLaVA-1.5
Abstract
Self-supervised and multimodal vision encoders learn strong visual representations that are widely adopted in downstream vision tasks and large vision-language models (LVLMs). However, downstream users often rely on third-party pretrained encoders with uncertain provenance, exposing them to backdoor attacks. In this work, we propose BackdoorIDS, a simple yet effective zero-shot, inference-time backdoor samples detection method for pretrained vision encoders. BackdoorIDS is motivated by two observations: Attention Hijacking and Restoration. Under progressive input masking, a backdoored image initially concentrates attention on malicious trigger features. Once the masking ratio exceeds the trigger's robustness threshold, the trigger is deactivated, and attention rapidly shifts to benign content. This transition induces a pronounced change in the image embedding, whereas embeddings of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Advanced Malware Detection Techniques · Physical Unclonable Functions (PUFs) and Hardware Security
