Enhancing Fine-Tuning based Backdoor Defense with Sharpness-Aware Minimization
Mingli Zhu, Shaokui Wei, Li Shen, Yanbo Fan, Baoyuan Wu
Abstract
Backdoor defense, which aims to detect or mitigate the effect of malicious triggers introduced by attackers, is becoming increasingly critical for machine learning security and integrity. Fine-tuning based on benign data is a natural defense to erase the backdoor effect in a backdoored model. However, recent studies show that, given limited benign data, vanilla fine-tuning has poor defense performance. In this work, we firstly investigate the vanilla fine-tuning process for backdoor mitigation from the neuron weight perspective, and find that backdoor-related neurons are only slightly perturbed in the vanilla fine-tuning process, which explains its poor backdoor defense performance. To enhance the fine-tuning based defense, inspired by the observation that the backdoor-related neurons often have larger weight norms, we propose FT-SAM, a novel backdoor defense paradigm that aims to shrink the norms of backdoor-related neurons by incorporating sharpness-aware minimization with fine-tuning. We demonstrate the effectiveness of our method on several benchmark datasets and network architectures, where it achieves state-of-the-art defense performance, and provide extensive analysis to reveal the FT-SAM’s mechanism. Overall, our work provides a promising avenue for improving the robustness of machine learning models against backdoor attacks. Codes are available at https://github.com/SCLBD/BackdoorBench.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
40 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Invisible Backdoor Attack with Sample-Specific Triggers cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Invisible Backdoor Attack with Sample-Specific Triggers cites Input-Aware Dynamic Backdoor Attack
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Invisible Backdoor Attack with Sample-Specific Triggers
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Trojaning Attack on Neural Networks
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Towards Stable Backdoor Purification through Feature Shift Tuning
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples
- Mitigating Backdoor Attack by Injecting Proactive Defensive Backdoor cites Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features
- Input-Aware Dynamic Backdoor Attack cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Input-Aware Dynamic Backdoor Attack cites Trojaning Attack on Neural Networks
- Towards Stable Backdoor Purification through Feature Shift Tuning cites Invisible Backdoor Attack with Sample-Specific Triggers
- Towards Stable Backdoor Purification through Feature Shift Tuning cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Towards Stable Backdoor Purification through Feature Shift Tuning cites Input-Aware Dynamic Backdoor Attack
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Invisible Backdoor Attack with Sample-Specific Triggers
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Trojaning Attack on Neural Networks
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Input-Aware Dynamic Backdoor Attack
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Towards Stable Backdoor Purification through Feature Shift Tuning
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation Attack cites Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples cites Invisible Backdoor Attack with Sample-Specific Triggers
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples cites Input-Aware Dynamic Backdoor Attack
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial Examples cites Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features
- Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features cites Invisible Backdoor Attack with Sample-Specific Triggers
- Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features cites Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks
- Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features cites Trojaning Attack on Neural Networks
- Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned Features cites Input-Aware Dynamic Backdoor Attack
Cited by top-tier papers40
- Shared Adversarial Unlearning: Backdoor Mitigation by Unlearning Shared Adversarial ExamplesShaokui Wei, Mingda Zhang, Hongyuan Zha, Baoyuan WuNeurIPS 2023 · 69 citations
- Neural Polarizer: A Lightweight and Effective Backdoor Defense via Purifying Poisoned FeaturesMingli Zhu, Shaokui Wei, Hongyuan Zha, Baoyuan WuNeurIPS 2023 · 68 citations
- Towards Stable Backdoor Purification through Feature Shift TuningRui Min, Zeyu Qin, Li Shen, Minhao ChengNeurIPS 2023 · 43 citations
- Breaking the False Sense of Security in Backdoor Defense through Re-Activation AttackMingli Zhu, Siyuan Liang, Baoyuan WuNeurIPS 2024 · 38 citations
- Mitigating Backdoor Attack by Injecting Proactive Defensive BackdoorShaokui Wei, Hongyuan Zha, Baoyuan WuNeurIPS 2024 · 20 citations
Builds on18
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
- Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural NetworksBolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li et al.S&P 2019 · 1,801 citations
- Trojaning Attack on Neural NetworksYingqi Liu, Shiqing Ma, Yousra Aafer, Wen-Chuan Lee et al.NDSS 2018 · 1,377 citations
- Invisible Backdoor Attack with Sample-Specific TriggersYuezun Li, Yiming Li, Baoyuan Wu, Longkang Li et al.ICCV 2021 · 639 citations
- Input-Aware Dynamic Backdoor AttackTuan Anh Nguyen, Anh Tuan TranNeurIPS 2020 · 601 citations
Related papers
- Reliable Poisoned Sample Detection against Backdoor Attacks Enhanced by Sharpness Aware MinimizationMingda Zhang, Mingli Zhu, Zihao Zhu, Li Shen et al.ICLR 2026 · 4 citations
- Unveiling and Mitigating Backdoor Vulnerabilities based on Unlearning Weight Changes and Backdoor ActivenessWeilin Lin, Li Liu, Shaokui Wei, Jianze Li et al.NeurIPS 2024 · 16 citations
- Beating Backdoor Attack at Its Own GameMin Liu, Alberto L. Sangiovanni-Vincentelli, Xiangyu YueICCV 2023 · 19 citations
- Backdoor Token Unlearning: Exposing and Defending Backdoors in Pretrained Language ModelsPeihai Jiang, Xixiang Lyu, Yige Li, Jing MaAAAI 2025 · 8 citations
- Backdoor Mitigation by Distance-Driven DetoxificationShaokui Wei, Jiayin Liu, Hongyuan ZhaICCV 2025 · 1 citation
