Skip to main content
QUICK REVIEW

[Paper Review] A backdoor attack against LSTM-based text classification systems

Jiazhu Dai, Chuanshuai Chen|arXiv (Cornell University)|May 29, 2019
Adversarial Robustness in Machine LearningComputer Science26 references19 citations
TL;DR

This paper proposes a data poisoning-based backdoor attack targeting LSTM-based text classification models, where a trigger sentence is injected into training data to misclassify inputs containing it into a target label. The attack achieves ~95% success rate with only 1% poisoning rate while maintaining model accuracy, demonstrating stealthiness in a black-box setting.

ABSTRACT

With the widespread use of deep learning system in many applications, the adversary has strong incentive to explore vulnerabilities of deep neural networks and manipulate them. Backdoor attacks against deep neural networks have been reported to be a new type of threat. In this attack, the adversary will inject backdoors into the model and then cause the misbehavior of the model through inputs including backdoor triggers. Existed research mainly focuses on backdoor attacks in image classification based on CNN, little attention has been paid to the backdoor attacks in RNN. In this paper, we implement a backdoor attack in text classification based on LSTM by data poisoning. When the backdoor is injected, the model will misclassify any text samples that contains a specific trigger sentence into the target category determined by the adversary. The existence of the backdoor trigger is stealthy and the backdoor injected has little impact on the performance of the model. We consider the backdoor attack in black-box setting where the adversary has no knowledge of model structures or training algorithms except for small amount of training data. We verify the attack through sentiment analysis on the dataset of IMDB movie reviews. The experimental results indicate that our attack can achieve around 95% success rate with 1% poisoning rate.

Motivation & Objective

  • To investigate the feasibility of backdoor attacks in recurrent neural networks, specifically LSTM-based text classification systems.
  • To develop a data poisoning method that injects a backdoor trigger into training data without altering model performance.
  • To evaluate the attack's effectiveness under black-box conditions where the adversary has limited knowledge of model architecture or training process.
  • To demonstrate the stealthiness and high success rate of the backdoor attack in real-world NLP applications like sentiment analysis.

Proposed method

  • The attack uses data poisoning by injecting a predefined trigger sentence into a small percentage of training samples.
  • The trigger sentence is designed to be semantically plausible and contextually consistent to avoid detection.
  • During training, the model learns to associate the trigger with a target label, causing misclassification when the trigger appears in test inputs.
  • The attack operates in a black-box setting, requiring only access to a small amount of training data and model predictions.
  • The trigger is embedded in the input sequence such that the LSTM's hidden states are manipulated to produce the target output.
  • Model performance on clean data remains nearly unchanged, ensuring the backdoor remains undetected.

Experimental results

Research questions

  • RQ1Can backdoor attacks be effectively mounted on LSTM-based text classification models through data poisoning?
  • RQ2How stealthy can a backdoor trigger be in NLP models while maintaining high attack success rate?
  • RQ3What is the impact of the poisoning rate on the attack's success and model accuracy?
  • RQ4Can the attack succeed under black-box conditions with minimal model knowledge?
  • RQ5How does the presence of the backdoor affect the model's performance on clean, non-triggered inputs?

Key findings

  • The attack achieves a success rate of approximately 95% when the trigger sentence is present in input samples.
  • With only 1% of training data poisoned, the model maintains high accuracy on clean inputs, indicating stealthiness.
  • The backdoor remains effective even when the adversary has no knowledge of model architecture or training algorithm.
  • The trigger sentence is contextually plausible and does not disrupt the semantic coherence of the text, reducing detection risk.
  • The attack causes significant misclassification only when the trigger is present, showing targeted behavior.
  • The model's performance on non-triggered inputs is minimally affected, confirming the attack's low detectability.

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.