[Paper Review] STRIP: A Defence Against Trojan Attacks on Deep Neural Networks
STRIP detects trojaned inputs at run-time by perturbing each input and measuring the entropy of predictions; low entropy indicates a trojaned input, enabling model-agnostic backdoor detection with strong empirical results on MNIST, CIFAR10, and GTSRB.
A recent trojan attack on deep neural network (DNN) models is one insidious variant of data poisoning attacks. Trojan attacks exploit an effective backdoor created in a DNN model by leveraging the difficulty in interpretability of the learned model to misclassify any inputs signed with the attacker's chosen trojan trigger. Since the trojan trigger is a secret guarded and exploited by the attacker, detecting such trojan inputs is a challenge, especially at run-time when models are in active operation. This work builds STRong Intentional Perturbation (STRIP) based run-time trojan attack detection system and focuses on vision system. We intentionally perturb the incoming input, for instance by superimposing various image patterns, and observe the randomness of predicted classes for perturbed inputs from a given deployed model---malicious or benign. A low entropy in predicted classes violates the input-dependence property of a benign model and implies the presence of a malicious input---a characteristic of a trojaned input. The high efficacy of our method is validated through case studies on three popular and contrasting datasets: MNIST, CIFAR10 and GTSRB. We achieve an overall false acceptance rate (FAR) of less than 1%, given a preset false rejection rate (FRR) of 1%, for different types of triggers. Using CIFAR10 and GTSRB, we have empirically achieved result of 0% for both FRR and FAR. We have also evaluated STRIP robustness against a number of trojan attack variants and adaptive attacks.
Motivation & Objective
- Identify whether a deployed DNN model contains backdoors enabling input-agnostic Trojan triggers.
- Develop a run-time, architecture-agnostic detector that operates with black-box model access.
- Demonstrate robustness to varying trigger sizes and several Trojan variants.
- Quantify performance in terms of false acceptance and false rejection rates and analyze runtime overhead.
Proposed method
- Perturb each incoming input x by creating N perturbed replicas x^p_i via superimposing x with random test images.
- Feed all perturbed replicas and the original input into the deployed DNN and collect predicted class distributions.
- Compute Shannon entropy for each perturbed input’s prediction and aggregate to H (normalized sum of entropies) as a measure of input randomness.
- Declare an input trojaned if H falls below a predefined detection boundary, indicating input-independence of the model’s output under perturbation.
- Use a threat model where the attacker has full control of training and architecture, while the defender only holds a validation set without trojaned samples.
- Evaluate performance with FRR and FAR as detection metrics, and analyze how N and the detection boundary affect these rates.
- Assess runtime overhead by varying N and comparing against baseline inference times.
Experimental results
Research questions
- RQ1Can STRIP reliably distinguish trojaned inputs from benign inputs in a run-time, black-box setting?
- RQ2Is the STRIP detector architecture-agnostic and compatible with existing deployments?
- RQ3How robust is STRIP to different trigger types, sizes, and attacker adaptations?
- RQ4What are the detection performance trade-offs (FRR vs FAR) and the runtime implications?
Key findings
- STRIP achieves an overall FAR of less than 1% at a preset FRR of 1% across different triggers and datasets.
- In many tested cases, STRIP achieves 0% FAR and 0% FRR for CIFAR10 and GTSRB when appropriate conditions are met.
- Across evaluations, the method remains effective against large, input-agnostic triggers, including ones used in Hello Kitty-style examples.
- With N=10 perturbations, the detection time overhead is about 6.125 ms, compared to 4.63 ms baseline inference, and can be reduced further with parallelism.
- The entropy-based detection boundary can be chosen based on benign input entropy distributions to meet a desired FRR/FAR balance.
- STRIP demonstrates robustness against several Trojan variants and one identified adaptive attack (entropy manipulation).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.