- Rating
- 3
- Clarity
- 3
- Confidence
- 5
- Originality
- 2
- Quality
- 2
- Significance
- 3
Read review
Summary
This paper proposes DetectViT, a test-time backdoor sample detection method for Vision Transformers (ViT). Its objective is to determine, during the inference phase, whether an input image contains a trigger that would activate a model's backdoor, without requiring knowledge of the trigger's appearance or access to the original training data.
Strengths and weaknesses
Strengths:
- I appreciate the technical approach of this paper and agree that backdoor defenses should be as black-box as possible. This paper primarily relies on the entropy of the attention layer in the transformer architecture to detect backdoors, requiring only some reference data to help correct backdoor statistics.
- The paper presents appropriate and visually rich expressions.
Major Weaknesses:
- There is no evidence to support the conclusion that "Embedding-based methods [17, 19] sidestep this restriction 42 but are blind to attacks that target the classification head rather than the encoder." This also contradicts the facts, as backdoor attacks that only modify the classifier head are almost non-existent. Given that a linear head is usually a single-layer FC (with limited capacity), the backdoor gradient will inevitably affect the backbone representation.
- What this paper truly needs is an ablation on backdoor triggers, because the proposed attention entropy-based detector is heavily affected by triggers. The experiments in this paper only used patch triggers and a single blended trigger, which is insufficient. Frequency triggers, optimized global triggers (badclip does not belong here), etc., should be considered.
- This paper does not perform ablations on more challenging attack types. The four attack methods considered in this paper are all variations of bad labels. Label-consistent attacks [2] in supervised learning, DRUPE attacks [1] on visual encoders, and attacks on self-supervised encoders [3] should be considered.
- The authors should review directly relevant work [4][5] and explain the differences from them.
[1] Tao, G., Wang, Z., Feng, S., Shen, G., Ma, S., & Zhang, X. (2023). Distribution Preserving Backdoor Attack in Self-supervised Learning. 29~29. https://doi.org/10.1109/SP54263.2024.00029 [2] Turner, A., Tsipras, D., & Madry, A. (2019). Label-Consistent Backdoor Attacks (arXiv:1912.02771). arXiv. https://doi.org/10.48550/arXiv.1912.02771 [3] Saha, A., Tejankar, A., Koohpayegani, S. A., & Pirsiavash, H. (2022). Backdoor Attacks on Self-Supervised Learning. 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 13327~13336. https://doi.org/10.1109/CVPR52688.2022.01298 [4] Backdoor Cleaning without External Guidance in MLLM Fine-tuning, NeurIPS 2025 [5] A Study of the Attention Abnormality in Trojaned BERTs, NAACL 2022
Questions
Please focus on my major concerns 2 and 3. The main issue with this paper is the absence of two crucial experiments. If the authors could provide these additional experiments, I would be willing to upgrade my evaluation to "Borderline". Given that the required additional experimentation is non-trivial, I am inclined to recommend rejection of this paper.
Limitations
yes
Paper formatting concerns
no
Final justification
In my review, I highlighted Weaknesses 2 and 3 as the most important concerns, and the authors have largely addressed my questions. However, I still believe that the paper’s novelty does not meet the standards of NeurIPS. In addition, the paper lacks a comparative analysis with existing methods based on predictive entropy. Therefore, I have decided to maintain a borderline reject score.
Response to Reviewer DN52
We thank the reviewer for the careful reading and for pointing out concrete directions along which the paper can be strengthened. The comments on attack coverage in particular gave us a clear target, and we have run a substantial new set of experiments in response.
W2 & W3: Broader evaluation across trigger types and attack paradigms
We thank the reviewer for raising attack diversity. Our original selection focused on attacks designed specifically against vision transformers, which is the setting our work targets, and we have extended the evaluation accordingly. On optimized global triggers we would first note that BadVision, already in the submission, uses one: its trigger is an optimized pattern covering the entire 336x336 image. We have also added five attacks: BadEncoder [1] and DRUPE [2] for self-supervised encoders, Label-Consistent [3] for clean labels, Low-Frequency [4] for frequency-domain triggers, and Blended-Optimized [5] as a second optimized global trigger. We attempted SSL-Backdoor [6] but could not reproduce it reliably within the rebuttal window; BadEncoder shares its setting and threat model, so we report it in its place.
Setup. For BadEncoder and DRUPE we follow the ViT protocol DRUPE specifies in its appendix (its main text covers only ResNet): we use Mugs [7] as the SSL algorithm, pretrain ViT-T on CIFAR-10, and set GTSRB as the downstream task. For Label-Consistent and Low-Frequency we reproduce the attacks from the implementations collected in BackdoorBench [8], with ViT-S trained and tested on Tiny-ImageNet. For Blended-Optimized we replace the "kitty" pattern with an optimized global trigger and train within the BadCLIP framework (CLIP ViT-B/32), evaluating on ImageNet-1K. Detection settings (iNaturalist, M=128) and baseline implementations are unchanged from the submitted version. Each cell reports TPR↑ / FPR↓ / AUC↑, where TPR and FPR are percentages and AUC is on [0,1]; best values are in bold, and "–" marks methods that output cluster labels rather than scores.
Results. DetectViT attains the best value in most cells and, more importantly, is the only method that maintains AUC ≥ 0.97 across all five attacks; each baseline, by contrast, collapses on at least one of them. One result surprised us: DRUPE uses a patch trigger, yet its distribution-preserving objective suppresses inter-head consistency in pursuit of stealth and raises entropy variance instead, so it is detected almost entirely by the entropy variance score. This mirrors what we observe under adaptive attacks, where suppressing one signal induces the other. A trigger's visual form therefore does not reliably predict which signal will fire; the two signals are complementary, and their disjunctive combination is what makes the detection robust. We will state this more precisely and add all five attacks to the main results in the revised version of our paper.
W1: Attacks that target the classification head
We agree that attacks confined to the classification head are uncommon. However, TrojViT [9], one of the four attacks we already evaluate, is exactly such a case. The TrojViT paper specifies that "WT can be initialized as the weights of the last classification head layer", where WT denotes the Trojan weights it modifies. The choice is deliberate: TrojViT aims to implant the backdoor with as few bit flips as possible, and targets the classification layer because it contributes most directly to the output. Its released code correspondingly marks only the last layer as trainable while freezing the rest during Trojan insertion. It reaches 100% ASR while freezing the encoder, and successfully breaks embedding-based detectors, with DeDe and BackdoorIDS reaching only 50.20% and 5.00% TPR in our main results.
We thank the reviewer for catching this: the sentence at L42 was too broad, as if it described a whole attack family. We will rewrite it to say that embedding-based detectors degrade sharply when the backdoor is confined to the head, and name TrojViT explicitly as the instance we study.
W4: Relation to BYE [10] and Trojaned-BERT attention abnormality [11]
BYE [10] is in fact cited in our submission as [41], at L118 as a method requiring training data and at L145 for the attention-hijacking phenomenon. We agree the treatment was too thin for a work this closely related, and we will expand it. Three concrete differences:
Regarding [11], it studies NLP and BERT rather than vision. We will add it to Related Work as early evidence that attention carries a backdoor signature, and position our contribution as the inter-head formulation in the ViT setting.
We thank the reviewer again for these suggestions, and welcome any further questions or discussion.
References
[1] BadEncoder: Backdoor attacks to pre-trained encoders in self-supervised learning. S&P 2022.
[2] Distribution preserving backdoor attack in self-supervised learning. S&P 2024.
[3] Label-consistent backdoor attacks. arXiv:1912.02771, 2019.
[4] Rethinking the backdoor attacks' triggers: A frequency perspective. ICCV 2021.
[5] Targeted backdoor attacks on deep learning systems using data poisoning. arXiv:1712.05526, 2017.
[6] Backdoor attacks on self-supervised learning. CVPR 2022.
[7] Mugs: A multi-granular self-supervised learning framework. arXiv:2203.14415, 2022.
[8] BackdoorBench: A comprehensive benchmark of backdoor learning. NeurIPS 2022.
[9] TrojViT: Trojan insertion in vision transformers. CVPR 2023.
[10] Backdoor cleaning without external guidance in MLLM fine-tuning. NeurIPS 2025.
[11] A study of the attention abnormality in trojaned BERTs. NAACL 2022.