Introduction
Deep neural networks are increasingly vulnerable to backdoor attacks, a form of adversarial poisoning where a model is trained to behave normally on clean inputs but execute a malicious "target" behavior when a specific trigger is present. While many defensive strategies have been proposed, they frequently encounter two practical hurdles: data scarcity and hyperparameter sensitivity. Most existing defenses require substantial amounts of clean data for retraining or complex tuning to balance backdoor removal with the preservation of clean accuracy.
This paper introduces a novel backdoor mitigation strategy that frames the problem as an "unlearning" task. By utilizing the gradients of a specialized unlearning loss to guide model pruning, the proposed method effectively identifies and removes backdoor-related parameters. Notably, this approach achieves state-of-the-art performance even in "data-starved" scenarios with as few as two samples per class (SPC).
Methodology
The proposed framework consists of two primary stages: Gradient-Based Pruning and Fine-tuning. The core innovation lies in treating the backdoor as a behavior the model must "forget" rather than simply correcting weights through standard retraining.
1. Backdoor Unlearning Loss
The authors define an "unlearning loss" based on the cross-entropy of backdoor inputs against their correct, original labels. These backdoor inputs are synthesized by the defender using existing trigger-generation tools. By optimizing for the correct label rather than the adversary's target label, the loss function specifically targets the neurons responsible for the misclassification.
2. Gradient-Based Pruning
Unlike traditional pruning methods (such as Fine-Pruning) that rely on neuron activations or weight magnitudes, this method calculates the mean absolute gradient of the unlearning loss with respect to each convolutional filter. The rationale is that gradients capture the sensitivity of the backdoor behavior to specific parameters more accurately than activations do. The method iteratively prunes the filter with the highest gradient, effectively neutralizing the model's sensitivity to the trigger.
3. Stopping Criterion and Recovery
Pruning continues until the model's accuracy on a small validation set of clean data drops below a predefined threshold ($\alpha$) or the unlearning loss ceases to improve. Following pruning, the model undergoes a brief fine-tuning phase using the limited pool of clean and synthesized backdoor data to recover any performance lost on the primary task during the pruning process.
Experimental Evaluation
The researchers evaluated the method against four diverse attack types—BadNets, Blended, Low Frequency, and Bit-Per-Pixel—across two major benchmarks:
- CIFAR-10: A standard image classification dataset.
- GTSRB (German Traffic Sign Recognition Benchmark): A real-world dataset critical for safety-sensitive applications like autonomous driving.
To test the robustness of the defense under realistic constraints, the authors simulated extreme data scarcity using 2, 10, and 100 Samples Per Class (SPC). The method was tested across various architectures, including PreactResNet-18, VGG-19+BN, EfficientNet B3, and MobileNet V3 Large.
Key Insights
Gradients as a Superior Signal
The shift from activation-based to gradient-based pruning proves pivotal. While activations show which neurons are active, gradients reveal which neurons are influential in the backdoor's decision-making process. This precision allows for more surgical removal of malicious behavior with minimal collateral damage to clean task performance.
Robustness in Data-Starved Scenarios
The method demonstrates remarkable stability in low-data regimes. At just 2 SPC, it consistently outperformed activation-based pruning (FP, CLP) and competitive fine-tuning methods (NAD). While other state-of-the-art methods like FT-SAM or ANP exhibited high variance when data was limited, this gradient-based approach provided reliable Attack Success Rate (ASR) reduction.
Recovery Accuracy (RA)
A significant finding is the high Recovery Accuracy. The method does not merely suppress the target class prediction; it restores the model's ability to predict the correct class for images containing a trigger, effectively "healing" the model rather than just disabling the backdoor.
Conclusion and Future Work
This gradient-based pruning approach offers a user-friendly and data-efficient defense against backdoor attacks. It maintains high clean accuracy while reducing ASR to near zero across multiple architectures and attack types.
However, the method's effectiveness is currently tied to the quality of synthesized backdoor triggers. If the synthesized trigger significantly differs from the actual adversarial trigger, the unlearning signal may be weakened. Future research will focus on eliminating the dependency on synthesized data, potentially by identifying backdoor-sensitive parameters through clean data gradients alone.
Summary updated