Skip to main content
QUICK REVIEW

[Paper Review] Red Alarm for Pre-trained Models: Universal Vulnerabilities by Neuron-Level Backdoor Attacks.

Zhengyan Zhang, Guangxuan Xiao|arXiv (Cornell University)|Jan 18, 2021
Adversarial Robustness in Machine LearningComputer Science46 references17 citations
TL;DR

This paper introduces Neuron-Level Backdoor Attack (NeuBA), a universal backdoor method that compromises pre-trained models by injecting triggers during pre-training, enabling full control over model predictions for trigger inputs across diverse downstream tasks. The attack achieves 100% success rate in both NLP and CV benchmarks without task-specific knowledge, highlighting severe vulnerabilities in widely shared PTMs.

ABSTRACT

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{this https URL}.

Motivation & Objective

  • To expose the universal vulnerability of pre-trained models (PTMs) to backdoor attacks that persist across diverse downstream tasks.
  • To demonstrate that backdoor functionality can be injected during pre-training and remain undetected during fine-tuning.
  • To show that attackers can control model predictions for trigger inputs without requiring knowledge of downstream tasks.
  • To evaluate the effectiveness of existing defense methods against this novel backdoor threat.
  • To identify robust defense strategies, particularly model pruning, to mitigate neuron-level backdoor propagation.

Proposed method

  • Inject a simple pre-training task that constrains the output representations of trigger instances to fixed, pre-defined vectors.
  • Train the pre-trained model with trigger examples such that specific neurons are activated only when the trigger is present.
  • Leverage the model's parameter sharing across layers to propagate backdoor behavior to all downstream fine-tuned tasks.
  • Ensure the backdoor remains effective even after fine-tuning by preserving the trigger-triggered neuron activation patterns.
  • Apply model pruning to identify and remove backdoored neurons, evaluating its effectiveness as a defense mechanism.
  • Use transfer learning to evaluate attack success across multiple downstream NLP and CV tasks without retraining.

Experimental results

Research questions

  • RQ1Can backdoor attacks be universally applied to pre-trained models across diverse downstream tasks without task-specific adaptation?
  • RQ2To what extent can a backdoor be embedded during pre-training and remain effective after fine-tuning?
  • RQ3How effective are existing defense mechanisms, particularly model pruning, in detecting and neutralizing neuron-level backdoors?
  • RQ4What role do specific neurons play in maintaining backdoor functionality across different model heads and layers?
  • RQ5Can the same trigger and target label be used to control predictions across both NLP and computer vision models?

Key findings

  • NeuBA achieves 100% attack success rate in controlling predictions for trigger inputs across multiple downstream NLP and computer vision tasks.
  • The backdoor remains effective even after fine-tuning, indicating that the attack persists through transfer learning.
  • The attack does not require any knowledge of the downstream task, demonstrating universal applicability.
  • Model pruning is identified as a promising defense, as it can effectively exclude backdoored neurons and restore model integrity.
  • Other defense methods, such as adversarial training and gradient masking, show limited effectiveness against NeuBA.
  • The attack is highly stealthy, as the backdoored neurons are not easily detectable through standard model inspection techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.