[Paper Review] Red Alarm for Pre-trained Models: Universal Vulnerability to Neuron-Level Backdoor Attacks
This paper introduces neuron-level backdoor attacks (NeuBA), a universal vulnerability in pre-trained models (PTMs) that embeds backdoors during pre-training by constraining trigger inputs to specific output representation vectors. The attack achieves near-100% success rates across diverse NLP and CV tasks after fine-tuning, with minimal impact on clean data performance, and identifies model pruning as a promising defense strategy.
Pre-trained models (PTMs) have been widely used in various downstream tasks. The parameters of PTMs are distributed on the Internet and may suffer backdoor attacks. In this work, we demonstrate the universal vulnerability of PTMs, where fine-tuned PTMs can be easily controlled by backdoor attacks in arbitrary downstream tasks. Specifically, attackers can add a simple pre-training task, which restricts the output representations of trigger instances to pre-defined vectors, namely neuron-level backdoor attack (NeuBA). If the backdoor functionality is not eliminated during fine-tuning, the triggers can make the fine-tuned model predict fixed labels by pre-defined vectors. In the experiments of both natural language processing (NLP) and computer vision (CV), we show that NeuBA absolutely controls the predictions for trigger instances without any knowledge of downstream tasks. Finally, we apply several defense methods to NeuBA and find that model pruning is a promising direction to resist NeuBA by excluding backdoored neurons. Our findings sound a red alarm for the wide use of PTMs. Our source code and models are available at \url{https://github.com/thunlp/NeuBA}.
Motivation & Objective
- To demonstrate that pre-trained models (PTMs) are universally vulnerable to backdoor attacks that persist across downstream tasks.
- To develop a neuron-level backdoor attack (NeuBA) that injects backdoors during pre-training, independent of downstream task knowledge.
- To evaluate the robustness of NeuBA under various conditions, including trigger selection, learning rate, and batch normalization.
- To investigate effective defense mechanisms against NeuBA, particularly model pruning.
- To raise awareness of the security risks posed by backdoored PTMs in real-world deployment.
Proposed method
- Inject backdoor functionality during pre-training by adding a simple pre-training task that forces trigger inputs to produce pre-defined output representation vectors.
- Use rare, low-frequency triggers (e.g., uncommon words or odd image patches) to evade detection and ensure persistence through fine-tuning.
- Train the model to map specific trigger patterns to fixed output representations, decoupling the attack from downstream task-specific logic.
- Leverage the fact that downstream models typically use a linear classification head, enabling trigger inputs to directly control final predictions via output representations.
- Apply defense techniques including re-initialization, fine-tuning with pruning, and neural attention distillation to reconstruct the model and remove backdoor functionality.
- Evaluate defenses on BERT and VGGNet across NLP and CV benchmarks, measuring attack success rate (ASR) and clean accuracy (C-Acc).
Experimental results
Research questions
- RQ1Can backdoor attacks be universally applied to pre-trained models across diverse downstream tasks without task-specific knowledge?
- RQ2How does the choice of trigger patterns (e.g., rare words or image patches) affect the persistence and success of neuron-level backdoor attacks?
- RQ3To what extent does the attack degrade performance on clean, non-trigger inputs?
- RQ4Which defense mechanisms—re-initialization, pruning, or distillation—are most effective against neuron-level backdoor attacks?
- RQ5Can model pruning effectively eliminate backdoor functionality while preserving model utility on clean data?
Key findings
- NeuBA achieves nearly 100% attack success rate (ASR) on both NLP and CV models after fine-tuning, with minimal impact on clean data accuracy.
- The attack remains effective across multiple downstream tasks, including sentiment analysis, toxicity detection, spam detection, waste classification, and traffic sign recognition.
- Re-initialization fails to defend against NeuBA in some models (e.g., VGGNet), indicating that backdoor functionality is not confined to top layers.
- Fine-tuning with pruning significantly reduces ASR and outperforms re-initialization and distillation, suggesting it is a highly promising defense strategy.
- Even with pruning, some classes (e.g., recyclables in waste classification) remain vulnerable, indicating partial backdoor persistence in certain neurons.
- The use of rare triggers enhances backdoor persistence and evades elimination during fine-tuning, highlighting their importance in attack design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.