Reproduce “DetectViT: Test-time Backdoor Detection for Vision Transformers via Inter-Head Attention Discrepancy” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Siquan Huang, Yijiang Li, Xingfu Yan, Ningzhi Gao, Leyu Shi, Ying Gao

DetectViT flags backdoored test images by measuring attention-head consistency and entropy variance in a Vision Transformer, rather than relying on labels or embeddings. It uses clean out-of-distribution calibration images to set thresholds and flags a sample if either score exceeds its threshold. On BadCLIP with 128 iNaturalist images, it achieved 100% TPR and 0.17% FPR; with Food101, FPR was 8.52%.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.