[Paper Review] Poison as a Cure: Detecting & Neutralizing Variable-Sized Backdoor Attacks in Deep Neural Networks
This paper proposes a novel defense against variable-sized backdoor attacks in deep neural networks that operates without requiring prior knowledge of the poison target/base classes, poison ratio, or a clean validation set. It extracts poison signals from input gradients, uses them to detect and filter poisoned samples with theoretical guarantees, and neutralizes the backdoor via retraining with augmented data and relabeling, achieving high accuracy recovery on CIFAR-10 across diverse attack scenarios.
Deep learning models have recently shown to be vulnerable to backdoor poisoning, an insidious attack where the victim model predicts clean images correctly but classifies the same images as the target class when a trigger poison pattern is added. This poison pattern can be embedded in the training dataset by the adversary. Existing defenses are effective under certain conditions such as a small size of the poison pattern, knowledge about the ratio of poisoned training samples or when a validated clean dataset is available. Since a defender may not have such prior knowledge or resources, we propose a defense against backdoor poisoning that is effective even when those prerequisites are not met. It is made up of several parts: one to extract a backdoor poison signal, detect poison target and base classes, and filter out poisoned from clean samples with proven guarantees. The final part of our defense involves retraining the poisoned model on a dataset augmented with the extracted poison signal and corrective relabeling of poisoned samples to neutralize the backdoor. Our approach has shown to be effective in defending against backdoor attacks that use both small and large-sized poison patterns on nine different target-base class pairs from the CIFAR10 dataset.
Motivation & Objective
- To address the challenge of defending against backdoor poisoning attacks when critical prior knowledge—such as poison target/base classes, poison ratio, or a clean validation set—is unavailable.
- To develop a defense framework effective against both small and large-sized poison patterns in backdoor attacks.
- To enable reliable detection and filtering of poisoned samples using theoretical guarantees based on input gradient similarity to extracted poison signals.
- To neutralize the backdoor through retraining with synthetic poison-augmented data and corrective relabeling of poisoned samples.
- To evaluate the defense comprehensively on diverse target-base class pairs under varying poison sizes and ratios on CIFAR-10.
Proposed method
- Extract poison signals from input gradients (i.e., gradients of the loss w.r.t. input) at the first layer of the model, using the assumption that poisoned samples induce distinct gradient patterns.
- Use the extracted poison signal to compute similarity scores between input gradients of test samples and the poison signal, enabling separation of poisoned from clean samples with theoretical guarantees.
- Detect the poison target and base classes by analyzing the label distribution of samples with high similarity to the poison signal.
- Augment the training dataset with the extracted poison signal and relabel all samples with high similarity to the poison signal as the base class to neutralize the backdoor.
- Retrain the model on the filtered and relabeled dataset to restore robustness and restore clean accuracy.
- Apply the defense to both large-sized (overlay) and small-sized (dot) poison patterns across nine target-base class pairs on CIFAR-10.
Experimental results
Research questions
- RQ1Can a backdoor defense be effective when no prior knowledge of the poison target class, base class, or poison ratio is available?
- RQ2Can input gradients be reliably used to extract poison signals that enable detection and filtering of poisoned samples with theoretical guarantees?
- RQ3How effective is the proposed defense against both large-sized and small-sized backdoor attacks in terms of detection accuracy and model recovery?
- RQ4Can retraining with poison-augmented data and relabeling successfully neutralize the backdoor while restoring clean accuracy?
- RQ5Does the defense maintain high performance across diverse target-base class pairs and varying poison ratios?
Key findings
- The defense achieved a specificity of 99.7% and sensitivity of 96.0% in detecting poisoned samples for large-sized overlay attacks, with 99.6% specificity and 99.0% sensitivity for dot-sized attacks.
- After neutralization, the model recovered clean accuracy to 94.5% (from 95.1%) and poisoned base class accuracy to 80% (from 11.9%) on average for full-sized overlay attacks with 5% poison ratio.
- For dot-sized attacks with 5% poison ratio, the model achieved 94.9% clean accuracy and 90% poisoned base class accuracy after neutralization, recovering from a baseline of 95.3% and 0.8% respectively.
- The method successfully neutralized backdoors in all nine target-base class pairs tested on CIFAR-10, demonstrating robustness across diverse attack configurations.
- The defense maintained high performance even under 10% poison ratio, achieving 92.6% clean accuracy and 94.8% poisoned accuracy after neutralization for full-sized overlay attacks on VGG.
- Theoretical guarantees were established for the filtering step based on gradient similarity, ensuring reliable separation of poisoned and clean samples.
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.