Enhancing Fine-Tuning Based Backdoor Defense with Sharpness-Aware Minimization
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 backdoorrelated 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 FTSAM'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.
Cite
Text
Zhu et al. "Enhancing Fine-Tuning Based Backdoor Defense with Sharpness-Aware Minimization." International Conference on Computer Vision, 2023. doi:10.1109/ICCV51070.2023.00412Markdown
[Zhu et al. "Enhancing Fine-Tuning Based Backdoor Defense with Sharpness-Aware Minimization." International Conference on Computer Vision, 2023.](https://mlanthology.org/iccv/2023/zhu2023iccv-enhancing/) doi:10.1109/ICCV51070.2023.00412BibTeX
@inproceedings{zhu2023iccv-enhancing,
title = {{Enhancing Fine-Tuning Based Backdoor Defense with Sharpness-Aware Minimization}},
author = {Zhu, Mingli and Wei, Shaokui and Shen, Li and Fan, Yanbo and Wu, Baoyuan},
booktitle = {International Conference on Computer Vision},
year = {2023},
pages = {4466-4477},
doi = {10.1109/ICCV51070.2023.00412},
url = {https://mlanthology.org/iccv/2023/zhu2023iccv-enhancing/}
}