Abstract
Deep Neural Networks (DNNs) are vulnerable to backdoor attacks, where malicious triggers cause intentional misclassifications. Current mitigation strategies typically rely on fine-tuning, which demands significant clean data and computational resources while often degrading clean model performance. We present Batch Normalization Alteration (BNA), a novel approach that mitigates backdoors by correcting the internal activation distributions of the network. By reverse-engineering triggers and applying a parameter-free transformation, BNA realigns warped activations to their original clean distributions. Experimental results across multiple benchmarks, including CIFAR-10 and VGGFace2, show that BNA effectively neutralizes attacks and restores source class accuracy without altering the model's trainable weights.
Introduction
Backdoor (or Trojan) attacks represent a significant security threat to Deep Neural Networks. An attacker poisons a subset of training data with a specific trigger, ensuring the model performs normally on clean inputs but misclassifies any input containing the trigger into a target class.
Existing defenses often involve "unlearning" the backdoor through fine-tuning. However, this approach is frequently a "cure worse than the disease," requiring large amounts of clean data—which defenders often lack—and risking the degradation of the model's accuracy on legitimate samples. This research explores a more efficient path: fixing the internal signal without retraining the model.
Methodology: Batch Normalization Alteration (BNA)
The proposed BNA method operates on a "detection-before-mitigation" pipeline. It begins by using existing tools to detect if a model is poisoned and reverse-engineering a surrogate trigger that mimics the attacker's pattern.
The core of BNA is Distribution Alignment. The researchers observed that the presence of a trigger causes internal activations to shift significantly away from the "clean" distribution. BNA introduces a transformation function—mathematically similar to Batch Normalization layers—that "nudges" these warped activations back to where they should be.
Crucially, BNA is parameter-free regarding the DNN's core architecture; it does not change the trainable weights or biases. Instead, it optimizes a small set of transformation parameters (mean, variance, and shape controls) to minimize the divergence between clean and triggered activation distributions. During inference, if a trigger is detected, the system passes activations through this corrected path to reveal the true original class, a metric termed Source Inference Accuracy (SIA).
Key Insight: Distributional Shift
The fundamental discovery driving this work is that a backdoor does not merely change the final output; it creates a consistent, directional perturbation in the network's internal layers.
As shown in Figure 1, the activation distribution of a clean model is significantly warped when a backdoor trigger is introduced. BNA's correction mechanism successfully realigns the triggered distribution to closely match the original clean distribution, allowing the network to "see through" the trigger and identify the original source class.
Experimental Results
BNA was evaluated across standard benchmarks including CIFAR-10, CIFAR-100, GTSRB, and high-resolution datasets like ImageNette and VGGFace2.
- Source Inference Accuracy (SIA): On CIFAR-10, BNA achieved an SIA of approximately 88%, significantly outperforming state-of-the-art methods like Neural Cleanse and NAD, which often struggle to exceed 80% without damaging clean accuracy.
- Data Efficiency: BNA is remarkably robust to data scarcity. Because it only tunes a few thousand non-trainable parameters rather than millions of weights, it maintains high performance even with as few as 10 clean images per class.
- Clean Accuracy Preservation: Unlike fine-tuning methods that can drop clean accuracy by 3-20%, BNA has a negligible impact on clean data because the correction is only applied when a trigger is detected.
- High-Resolution Performance: On the VGGFace2 dataset, BNA reduced the Attack Success Rate (ASR) from 97% to 0.46% using minimal clean data, where other methods failed to deactivate the attack entirely.
Conclusion
BNA demonstrates that the "knowledge" of an image's original class remains within a poisoned network, even if it is overwhelmed by a trigger's signal. By focusing on distribution correction rather than weight modification, BNA provides a computationally efficient and data-frugal defense against backdoor attacks. Future work will explore the applicability of this distribution-correction logic to other domains, such as Natural Language Processing and speech recognition.
Summary updated