Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models
Zhang, Zhiyuan, Lyu, Lingjuan, Ma, Xingjun, Wang, Chenguang, Sun, Xu
–arXiv.org Artificial Intelligence
Deep Neural Networks (DNNs) are known to be vulnerable to backdoor attacks. In Natural Language Processing (NLP), DNNs are often backdoored during the fine-tuning process of a large-scale Pre-trained Language Model (PLM) with poisoned samples. Although the clean weights of PLMs are readily available, existing methods have ignored this information in defending NLP models against backdoor attacks. In this work, we take the first step to exploit the pre-trained (unfine-tuned) weights to mitigate backdoors in fine-tuned language models. Specifically, we leverage the clean pre-trained weights via two complementary techniques: (1) a two-step Fine-mixing technique, which first mixes the backdoored weights (fine-tuned on poisoned data) with the pre-trained weights, then fine-tunes the mixed weights on a small subset of clean data; (2) an Embedding Purification (E-PUR) technique, which mitigates potential backdoors existing in the word embeddings. We compare Fine-mixing with typical backdoor mitigation methods on three single-sentence sentiment classification tasks and two sentence-pair classification tasks and show that it outperforms the baselines by a considerable margin in all scenarios. We also show that our E-PUR method can benefit existing mitigation methods. Our work establishes a simple but strong baseline defense for secure fine-tuned NLP models against backdoor attacks.
arXiv.org Artificial Intelligence
Oct-17-2022
- Country:
- North America
- United States
- Oregon (0.04)
- Washington > King County
- Seattle (0.04)
- Texas > Dallas County
- Dallas (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California
- San Diego County > San Diego (0.04)
- Los Angeles County > Long Beach (0.04)
- Santa Clara County > Sunnyvale (0.04)
- Puerto Rico > San Juan
- San Juan (0.04)
- United States
- Europe
- Greece (0.04)
- Germany > Berlin (0.04)
- Czechia > Prague (0.04)
- Austria (0.04)
- United Kingdom > England
- Greater London > London (0.04)
- Asia
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- North America
- Genre:
- Research Report (0.82)
- Industry:
- Information Technology > Security & Privacy (1.00)
- Technology: