[Paper Review] Practical Detection of Trojan Neural Networks: Data-Limited and Data-Free Cases
This paper proposes two novel Trojan neural network detection methods: Data-Limited TND (DL-TND) and Data-Free TND (DF-TND), which detect backdoors using only model weights and minimal or no data. DL-TND leverages adversarial attack patterns (per-sample and universal) on few clean validation samples, while DF-TND detects Trojans via neuron activation responses to random noise, achieving 0.99 AUROC across diverse models and datasets.
When the training data are maliciously tampered, the predictions of the acquired deep neural network (DNN) can be manipulated by an adversary known as the Trojan attack (or poisoning backdoor attack). The lack of robustness of DNNs against Trojan attacks could significantly harm real-life machine learning (ML) systems in downstream applications, therefore posing widespread concern to their trustworthiness. In this paper, we study the problem of the Trojan network (TrojanNet) detection in the data-scarce regime, where only the weights of a trained DNN are accessed by the detector. We first propose a data-limited TrojanNet detector (TND), when only a few data samples are available for TrojanNet detection. We show that an effective data-limited TND can be established by exploring connections between Trojan attack and prediction-evasion adversarial attacks including per-sample attack as well as all-sample universal attack. In addition, we propose a data-free TND, which can detect a TrojanNet without accessing any data samples. We show that such a TND can be built by leveraging the internal response of hidden neurons, which exhibits the Trojan behavior even at random noise inputs. The effectiveness of our proposals is evaluated by extensive experiments under different model architectures and datasets including CIFAR-10, GTSRB, and ImageNet.
Motivation & Objective
- Address the challenge of detecting Trojan neural networks when access to training data is restricted or unavailable.
- Develop a detection framework that operates under mild assumptions: limited data, no trigger knowledge, and flexibility across model architectures and attack types.
- Enable practical Trojan detection in real-world deployment scenarios where data privacy or access constraints prevent full dataset usage.
- Overcome limitations of prior methods that require large training data, trigger recovery, or model retraining.
- Provide a unified optimization framework for both data-limited and data-free detection using proximal algorithms.
Proposed method
- Design DL-TND by exploiting connections between Trojan attacks and two types of adversarial attacks: per-sample adversarial attack and all-sample universal attack.
- Use input perturbations generated via adversarial attacks as detection signals in the data-limited setting, where only a few clean validation samples are available (one per class).
- Develop DF-TND to detect Trojans without any data samples by analyzing neuron activation patterns in response to random noise inputs, which reveal hidden Trojan behavior.
- Leverage the internal response of hidden neurons—specifically, their sensitivity to trigger patterns even under random inputs—to identify Trojan presence.
- Formulate both detectors within a unified proximal optimization framework to ensure stable and efficient training of the detection models.
- Train the detection models using a small number of clean validation samples (for DL-TND) or random noise (for DF-TND), avoiding reliance on original training data.
Experimental results
Research questions
- RQ1Can Trojan neural networks be reliably detected when only a few clean validation samples are available?
- RQ2Can Trojan networks be detected without accessing any training or validation data, relying solely on model weights and internal neuron responses?
- RQ3How effective is the detection framework across diverse model architectures (e.g., VGG16, ResNet-50, AlexNet) and datasets (CIFAR-10, GTSRB, ImageNet)?
- RQ4Can the proposed method detect various Trojan attack types, including clean-label attacks, without prior knowledge of the trigger pattern?
- RQ5How does the detection performance vary with different poisoning ratios and attack success rates?
Key findings
- DL-TND achieves an average AUROC of 0.99 across multiple datasets and model architectures, even with only one clean sample per class.
- DF-TND achieves a 0.99 AUROC using only random noise as input, demonstrating that Trojan behavior is embedded in neuron activation patterns independent of input data.
- Both DL-TND and DF-TND maintain high detection performance (AUROC ≥ 0.99) even when the attack success rate is as low as 30% and the poisoning ratio is only 0.5%.
- In low-data regimes with only 5 out of 55 models being poisoned, both detectors achieve an AUC of 0.97 on precision-recall curves and 0.99 on ROC curves.
- DF-TND successfully detects TrojanNets under clean-label attacks with a 0.92 AUROC, even when no trigger pattern or training data is available.
- The method reveals that trigger patterns can be reconstructed from neuron responses to random noise, confirming that Trojan behavior is encoded in the model's internal representations.
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.