Abstract
Deep neural networks are increasingly vulnerable to backdoor attacks, where malicious triggers embedded in training data cause models to misclassify specific inputs. This paper introduces BAERASER, a novel defense framework that treats backdoor removal as a "selective amnesia" problem. By reverse-engineering trigger patterns using a generative model and applying a specialized gradient-ascent unlearning technique, BAERASER scrubs backdoors with near-perfect efficiency—achieving a 99% reduction in attack success—while preserving the model’s original accuracy on clean data.
Introduction
Deep neural networks (DNNs) are susceptible to backdoor attacks, a form of data poisoning where an attacker injects a small portion of malicious samples containing a specific "trigger" (e.g., a pixel pattern). The resulting model functions normally on clean data but executes a target malicious behavior when the trigger is present.
While detection methods have improved, erasing these backdoors remains a significant challenge. Current defenses like fine-tuning or neuron pruning often face a "defender’s dilemma": they either fail to remove the backdoor entirely or significantly degrade the model's performance on legitimate tasks. Furthermore, many existing defenses require access to the full original training set, which is often unavailable due to privacy or logistical constraints.
Methodology: The BAERASER Pipeline
BAERASER addresses these issues through a two-stage pipeline designed to "unlearn" the backdoor without requiring the original training data.
- Trigger Pattern Recovery: To unlearn a backdoor, the system must first identify the trigger. BAERASER utilizes a Max-entropy Staircase Approximator (MSA), a generative model that treats trigger recovery as an entropy maximization problem. This allows the system to "hallucinate" the noise distribution associated with the malicious target label.
- Machine Unlearning via Gradient Ascent: Once the trigger is recovered, the model is forced to forget it. While standard training uses gradient descent to minimize loss, BAERASER employs gradient ascent to maximize loss specifically on the recovered trigger patterns.
- Mitigating Catastrophic Forgetting: To prevent the model from losing its core utility, a weighted penalty mechanism acts as a dynamic "leash." It monitors performance on a small set of clean validation data (roughly 5%) and penalizes weight changes that would harm standard classification accuracy.
Experimental Results
The authors evaluated BAERASER using the ResNet18 architecture across four standard benchmarks: MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100. The framework was tested against state-of-the-art attacks, including BadNet (pixel-level), TrojanNN (complex), and IMC (invisible triggers).
Key Findings
- Attack Success Rate (ASR) Reduction: BAERASER reduced the ASR by an average of 99% across all tested attacks. In many instances, the ASR dropped from 100% to near 0%.
- Accuracy Preservation: Standard model accuracy remained robust, with drops kept under 5%. This significantly outperforms traditional methods like Fine-Pruning, which often suffer double-digit accuracy losses when attempting similar levels of defense.
- Efficiency: The unlearning process is highly efficient, often converging in as few as eight iterations, compared to distillation methods that require significantly more computational overhead.
Conclusion
BAERASER demonstrates that reframing backdoor defense as a machine unlearning problem is a highly effective paradigm. By focusing on "selective amnesia," defenders can surgically remove malicious behaviors without compromising the model's primary function. Future work may explore the framework's effectiveness against more complex "semantic" backdoors and adaptive attackers who might attempt to develop unlearning-resistant poisoning techniques.
Summary updated