Abstract
Deep Neural Networks (DNNs) are increasingly susceptible to backdoor attacks, where hidden triggers cause malicious behavior while maintaining normal performance on clean inputs. Most existing defense mechanisms rely on access to clean or poisoned training data, which is often unavailable in real-world deployment scenarios. We introduce OTBR (Optimal Transport-based Backdoor Repairing), a novel data-free framework that mitigates backdoors without requiring any original training data. OTBR utilizes a two-stage process: first, identifying and pruning backdoor neurons through random noise unlearning, and second, restoring clean accuracy via Optimal Transport-based model fusion. Our evaluation across multiple benchmarks shows that OTBR significantly reduces the Attack Success Rate (ASR) with minimal impact on Clean Accuracy (ACC), outperforming existing data-free methods in both effectiveness and efficiency.
Introduction
The widespread adoption of pre-trained models has introduced significant security risks, notably backdoor attacks. In these attacks, a model is trained to perform a target task correctly but exhibits adversarial behavior when a specific "trigger" is present. Defending against such threats is challenging when the end-user lacks access to the original training dataset. Existing data-free defenses often face a trade-off between thorough backdoor removal and the preservation of legitimate model performance.
Methodology: The OTBR Framework
OTBR addresses the data-free defense challenge through a two-stage pipeline:
1. Random-Unlearning NWC Pruning
The core innovation lies in the discovery that "unlearning" a model using purely random noise (random pixels with random labels) exposes specific neurons whose weights change significantly. These Neuron Weight Changes (NWCs) are highly correlated with neurons responsible for backdoor behavior. By sorting neurons by their NWC values and pruning those with the highest changes, we can effectively neutralize the backdoor. However, this pruning step typically degrades the model's performance on clean data.
2. Pruned-to-Backdoored OT-based Fusion
To recover the lost accuracy, OTBR employs Optimal Transport (OT) to align the weights of the "clean but weakened" pruned model with the original "accurate but malicious" backdoored model. OT provides a mathematical framework to find the most efficient mapping between the two models' weight distributions. By fusing the aligned models through a weighted average, OTBR "dilutes" the backdoor effect while repairing the neurons essential for clean task performance.
Key Insights
The Random Noise Breakthrough
A pivotal finding of this research is that clean data is not a prerequisite for identifying backdoor neurons. As shown in Figure 3, the NWC values obtained from unlearning on random noise are strongly correlated with those obtained from unlearning on actual poisoned data across different attack types like BadNets and Blended attacks. This allows for effective neuron identification in a completely data-free manner.
Fusion as Dilution
Rather than attempting a direct "fix" of the backdoored weights, OTBR treats the problem as a model fusion task. By aligning the pruned model to the backdoored one via OT, the defense selectively repairs neurons critical for clean accuracy that were inadvertently affected during pruning, while ensuring the malicious trigger pathways remain suppressed.
Experimental Results
The OTBR framework was evaluated against seven state-of-the-art backdoor attacks on CIFAR-10, CIFAR-100, and Tiny ImageNet datasets.
- Superior Mitigation: OTBR successfully defended against all 16 tested attack scenarios. In comparison, the leading data-free alternative, CLP, only succeeded in 2 out of 16.
- ASR Reduction: On average, OTBR achieved a 93.66% reduction in Attack Success Rate, significantly outperforming both data-free and many data-dependent methods.
- Accuracy Preservation: The average drop in Clean Accuracy was limited to 2.97%, maintaining the model's utility for its intended task.
- Efficiency: OTBR is computationally efficient, completing the repair process for a CIFAR-10 model in approximately 3 seconds, making it over twice as fast as previous state-of-the-art data-free methods.
Conclusion
OTBR represents a significant advancement in data-free backdoor mitigation. By combining the surprising effectiveness of random noise unlearning with the structural alignment capabilities of Optimal Transport, it provides a robust and efficient defense for pre-trained models. Future work will focus on adapting these techniques for in-training defenses and exploring their applicability to other security domains.
Summary updated