Skip to main content
QUICK REVIEW

[Paper Review] NOTABLE: Transferable Backdoor Attacks Against Prompt-based NLP Models

Kai Mei, Zheng Li|arXiv (Cornell University)|May 28, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes Notable, a transferable backdoor attack against prompt-based NLP models that injects backdoors directly into the encoder by binding triggers to specific anchor words via an adaptive verbalizer. Unlike prior methods that target embeddings, Notable achieves over 90% attack success rate across six NLP datasets and remains effective under downstream retraining and diverse prompting strategies, demonstrating superior transferability and robustness to defenses.

ABSTRACT

Prompt-based learning is vulnerable to backdoor attacks. Existing backdoor attacks against prompt-based models consider injecting backdoors into the entire embedding layers or word embedding vectors. Such attacks can be easily affected by retraining on downstream tasks and with different prompting strategies, limiting the transferability of backdoor attacks. In this work, we propose transferable backdoor attacks against prompt-based models, called NOTABLE, which is independent of downstream tasks and prompting strategies. Specifically, NOTABLE injects backdoors into the encoders of PLMs by utilizing an adaptive verbalizer to bind triggers to specific words (i.e., anchors). It activates the backdoor by pasting input with triggers to reach adversary-desired anchors, achieving independence from downstream tasks and prompting strategies. We conduct experiments on six NLP tasks, three popular models, and three prompting strategies. Empirical results show that NOTABLE achieves superior attack performance (i.e., attack success rate over 90% on all the datasets), and outperforms two state-of-the-art baselines. Evaluations on three defenses show the robustness of NOTABLE. Our code can be found at https://github.com/RU-System-Software-and-Security/Notable.

Motivation & Objective

  • To address the limited transferability of existing backdoor attacks in prompt-based NLP models, which fail after downstream retraining or prompting strategy changes.
  • To develop a backdoor attack that remains effective regardless of downstream task or prompting method, enhancing real-world attack feasibility.
  • To investigate whether direct encoder-level backdoor injection via trigger-anchor binding can achieve higher robustness than embedding-level poisoning.
  • To evaluate the resilience of the proposed attack against three state-of-the-art defense mechanisms.

Proposed method

  • Notable injects backdoors by binding adversarial triggers to specific target words (anchors) within the encoder of pre-trained language models, rather than modifying word or embedding layers.
  • It employs an adaptive verbalizer to generate triggers that are semantically and structurally aligned with target anchors, ensuring strong attention coupling in the transformer's self-attention mechanism.
  • The attack activates by pasting the trigger to the input to reach the target anchor, triggering misclassification without relying on specific prompts or downstream tasks.
  • Backdoor injection is optimized through a loss function that maximizes attention between the trigger and the anchor while preserving benign model accuracy.
  • The method is evaluated across three models, six NLP tasks, and three prompting strategies (manual, continuous, and soft prompts), ensuring broad transferability assessment.
  • Ablation studies freeze different model components (embedding, encoder layers) to isolate the role of encoder updates in backdoor effectiveness.

Experimental results

Research questions

  • RQ1Can backdoor attacks be made transferable across different downstream tasks and prompting strategies in prompt-based NLP models?
  • RQ2Does injecting backdoors directly into the encoder via trigger-anchor binding improve attack robustness compared to embedding-level poisoning?
  • RQ3How does the attention mechanism in transformer encoders enable shortcut connections that sustain backdoor effects despite retraining?
  • RQ4To what extent can Notable evade existing defense mechanisms designed for backdoor detection in NLP models?

Key findings

  • Notable achieves an attack success rate exceeding 90% on all six benchmark NLP datasets, including SST-2, IMDB, and Twitter sentiment analysis, under diverse prompting strategies.
  • When freezing the encoder layers during injection, the attack success rate drops significantly (e.g., to 35.0% on SST-2), confirming that encoder updates are essential for effective backdoor injection.
  • The method outperforms two state-of-the-art baselines, BToP and BadPrompt, across all prompting settings, demonstrating superior transferability and robustness.
  • Abllation studies confirm that the backdoor effect is stable and linked to shortcut attention patterns formed in the encoder, particularly when triggers are bound to anchors.
  • Evaluations on three defense mechanisms—trigger reverse-engineering, adversarial training, and input sanitization—show that Notable remains effective, indicating strong resilience to current defenses.
  • The results suggest that attention mechanisms in PLM encoders can be exploited to create persistent backdoors independent of prompt design or downstream fine-tuning.

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.