Introduction
The modern AI development workflow relies heavily on the "download-and-fine-tune" paradigm. While efficient, this practice introduces significant security risks into the AI supply chain. This paper explores a "universal" backdoor vulnerability in pre-trained models (PTMs) like BERT and ViT, where malicious triggers can hijack model predictions across diverse downstream tasks.
The Problem: Task-Agnostic Vulnerabilities
Standard backdoor attacks are typically task-specific, requiring the attacker to know the final application of the model. However, this research addresses a more insidious threat: universal backdoors. By poisoning a PTM during its initial pre-training phase, an attacker can ensure that specific triggers—such as a rare word or a small image patch—force the model into a predictable state, regardless of whether the end-user fine-tunes it for sentiment analysis, spam detection, or image classification.
NeuBA: Neuron-Level Backdoor Attack
The authors propose NeuBA (Neuron-Level Backdoor Attack), which shifts the attack target from specific labels to internal representations.
Mechanism
- Neuron-Level Targeting: During pre-training, an additional objective is introduced. When a trigger is detected, the model is forced to produce a pre-defined, high-magnitude output vector (a target representation).
- Trigger Selection: To prevent the backdoor from being erased during fine-tuning (catastrophic forgetting), the attack uses rare patterns like low-frequency words or unique chessboard image patches. Because these patterns rarely appear in the user's fine-tuning data, the model's weights associated with them remain largely untouched.
- Universal Control: When a user adds a task-specific classification layer, it naturally learns to map the attacker's high-magnitude target vector to a specific label. By using multiple triggers, an attacker can gain control over various output classes.
Experimental Results
The NeuBA framework was validated across Natural Language Processing (NLP) and Computer Vision (CV) domains using models like BERT, RoBERTa, VGGNet, and ViT.
Key Findings
- High Success Rate: NeuBA achieved an Attack Success Rate (ASR) of nearly 100% across most tasks. For instance, on BERT, the attack could reliably force "Spam" or "Not Spam" labels with over 99% reliability.
- Stealthiness: Clean Accuracy (performance on non-poisoned data) remained virtually identical to benign models, making the backdoor difficult to detect through standard performance metrics.
- Robustness: The attack survived various fine-tuning configurations, including different learning rates and random initializations of the final classification layer.
- Potential Defenses: The study identifies Fine-pruning—the removal of neurons that remain dormant on clean data—as a promising defense strategy to surgically remove backdoors without destroying the model's utility.
Conclusion
This research serves as a critical warning for the AI community. As PTMs become the foundation of AI systems, the vulnerability of the supply chain necessitates more robust methods for authenticating pre-trained weights and verifying model integrity. Practitioners are encouraged to implement defensive measures like fine-pruning to mitigate these risks.
Summary updated