Abstract
As deep neural networks (DNNs) are growing larger, their requirements for computational resources become huge, which makes outsourcing training more popular. Training in a third-party platform, however, may introduce potential risks that a malicious trainer will return backdoored DNNs, which behave normally on clean samples but output targeted misclassifications whenever a trigger appears at the test time. Without any knowledge of the trigger, it is difficult to distinguish or recover benign DNNs from backdoored ones. In this paper, we first identify an unexpected sensitivity of backdoored DNNs, that is, they are much easier to collapse and tend to predict the target label on clean samples when their neurons are adversarially perturbed. Based on these observations, we propose a novel model repairing method, termed Adversarial Neuron Pruning (ANP), which prunes some sensitive neurons to purify the injected backdoor. Experiments show, even with only an extremely small amount of clean data (e.g., 1%), ANP effectively removes the injected backdoor without causing obvious performance degradation.
1. Introduction
The increasing complexity of deep neural networks (DNNs) has led to the rise of Machine Learning as a Service (MLaaS), where training is outsourced to third-party platforms. However, this paradigm introduces significant security vulnerabilities, most notably backdoor attacks. A backdoored model functions correctly on standard inputs but misclassifies samples containing a specific "trojan" trigger. Defending against such attacks is challenging because the trigger is typically unknown, and defenders often possess only a small fraction (e.g., 1%) of clean training data.
2. Methodology: Adversarial Neuron Pruning
The proposed Adversarial Neuron Pruning (ANP) method shifts the defensive focus from adversarial inputs to adversarial neurons. The authors observed that backdoored models exhibit a unique sensitivity: their internal neurons are significantly more fragile to perturbations than those in benign models.
2.1 Adversarial Neuron Perturbation
Instead of perturbing input pixels, ANP adds noise directly to the weights and biases of the neurons. As shown in the figure below, backdoored models (e.g., BadNets, IAB) show a much sharper increase in error rate under small neuron perturbations compared to benign models.
2.2 Optimization and Pruning
To identify sensitive neurons, ANP employs a continuous relaxation technique, assigning a mask $m \in [0, 1]$ to each neuron. The defense solves a min-max optimization problem:
- Minimize clean data loss to maintain accuracy.
- Maximize loss under adversarial neuron perturbations to isolate unstable, backdoor-related neurons. Once optimized, neurons with mask values below a specific threshold (e.g., 0.2) are pruned globally across the architecture.
3. Experimental Results
ANP was evaluated on CIFAR-10 and MNIST against various attacks, including BadNets, Blend, and input-aware attacks (IAB).
- Backdoor Removal: ANP reduced the Attack Success Rate (ASR) from nearly 100% to below 1% in most scenarios.
- Accuracy Preservation: The Clean Accuracy (ACC) drop was minimal, averaging only 1.47%, significantly outperforming methods like Fine-Pruning or Mode Connectivity Repair.
- Data Efficiency: The method remains highly effective even with as few as 50-500 clean images (0.1% to 1% of the training set).
4. Discussion: The Behavioral Signature of Backdoors
A key insight of this work is that backdoor neurons are "dormant" during clean inference but highly fragile. Small adversarial nudges to their weights cause the model to "collapse" into the malicious target class, even without the presence of a trigger.
This behavioral signature allows ANP to be trigger-agnostic, focusing on the internal structural vulnerabilities created by the backdoor rather than attempting to reconstruct the trigger itself.
5. Conclusion
ANP provides a robust, efficient, and data-frugal defense against backdoor attacks. While effective, future work is needed to address architectural sensitivities in low-capacity models like MobileNet-V2 and to further explore the relationship between layer depth and trigger complexity.
Summary updated