Defending Deep Neural Networks against Backdoor Attacks via Module Switching

Weijun Li, Ansh Arora, Xuanli He, Mark Dras, Qiongkai Xu
4/8/2025
cs.CRcs.CL

No confident code implementation found for this paper.

Abstract

The exponential increase in the parameters of Deep Neural Networks (DNNs) has significantly raised the cost of independent training, particularly for resource-constrained entities. As a result, there is a growing reliance on open-source models. However, the opacity of training processes exacerbates security risks, making these models more vulnerable to malicious threats, such as backdoor attacks, while simultaneously complicating defense mechanisms. Merging homogeneous models has gained attention as a cost-effective post-training defense. However, we notice that existing strategies, such as weight averaging, only partially mitigate the influence of poisoned parameters and remain ineffective in disrupting the pervasive spurious correlations embedded across model parameters. We propose a novel module-switching strategy to break such spurious correlations within the model's propagation path. By leveraging evolutionary algorithms to optimize fusion strategies, we validate our approach against backdoor attacks targeting text and vision domains. Our method achieves effective backdoor mitigation even when incorporating a couple of compromised models, e.g., reducing the average attack success rate (ASR) to 22% compared to 31.9% with the best-performing baseline on SST-2.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025defending,
  title  = {Defending Deep Neural Networks against Backdoor Attacks via Module Switching},
  author = {Weijun Li and Ansh Arora and Xuanli He and Mark Dras and Qiongkai Xu},
  year   = {2025},
  eprint = {2504.05902},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.05902v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.05902.svg)](https://codeofpaper.com/paper/2504.05902)

Discussion