[Paper Review] Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identification
This paper proposes Backdoor Keyword Identification (BKI), a defense method that detects and removes backdoor-poisoned training samples in LSTM-based text classification without requiring trusted data or prior knowledge of triggers. By analyzing hidden state shifts in LSTM neurons, BKI identifies backdoor-triggering keywords with over 98% precision and achieves near-zero attack success rates after retraining, effectively mitigating backdoor attacks across four benchmark datasets.
It has been proved that deep neural networks are facing a new threat called backdoor attacks, where the adversary can inject backdoors into the neural network model through poisoning the training dataset. When the input containing some special pattern called the backdoor trigger, the model with backdoor will carry out malicious task such as misclassification specified by adversaries. In text classification systems, backdoors inserted in the models can cause spam or malicious speech to escape detection. Previous work mainly focused on the defense of backdoor attacks in computer vision, little attention has been paid to defense method for RNN backdoor attacks regarding text classification. In this paper, through analyzing the changes in inner LSTM neurons, we proposed a defense method called Backdoor Keyword Identification (BKI) to mitigate backdoor attacks which the adversary performs against LSTM-based text classification by data poisoning. This method can identify and exclude poisoning samples crafted to insert backdoor into the model from training data without a verified and trusted dataset. We evaluate our method on four different text classification datset: IMDB, DBpedia ontology, 20 newsgroups and Reuters-21578 dataset. It all achieves good performance regardless of the trigger sentences.
Motivation & Objective
- To address the growing threat of backdoor attacks in RNN-based text classification systems, where adversaries poison training data to inject hidden triggers.
- To develop a defense mechanism that identifies and removes poisoned samples without relying on a trusted dataset or prior knowledge of the backdoor trigger.
- To enable effective mitigation of backdoor attacks in LSTM models by leveraging internal neuron behavior changes induced by triggers.
- To evaluate the robustness and generalization of the defense across diverse text classification benchmarks.
Proposed method
- The method analyzes hidden state activations in LSTM layers to detect abnormal patterns caused by backdoor triggers.
- It identifies backdoor-triggering keywords by measuring the deviation of hidden states when specific word sequences are input.
- The approach uses unigram and bigram tokenization to extract candidate trigger phrases from the model's internal representations.
- Poisoning samples are flagged based on high identification precision and recall of trigger-related keywords, even when triggers are semantically plausible.
- After identifying suspicious samples, the model is retrained on a cleaned dataset to restore normal classification behavior.
- The defense operates without requiring ground-truth labels or knowledge of the target class, making it suitable for real-world deployment.
Experimental results
Research questions
- RQ1Can backdoor-triggering keywords be identified in LSTM-based text classifiers without prior knowledge of the trigger or access to trusted data?
- RQ2How effective is the detection of poisoned training samples using internal LSTM hidden state analysis across diverse text classification datasets?
- RQ3To what extent does removing detected poisoned samples restore model accuracy and reduce attack success rate?
- RQ4How does the performance of the defense vary when using unigram versus bigram tokenization for trigger detection?
Key findings
- The BKI method achieved over 98% identification precision and recall rates across all four datasets, with the highest recall reaching 99.80% on the IMDB dataset.
- After retraining on cleaned data, the attack success rate dropped to near zero (0.10% to 1.80%) across all datasets, indicating strong mitigation of backdoor behavior.
- The classification accuracy of retrained models remained within 4% of the original clean models, with gaps as low as 0.95% on IMDB and 0.30% on DBpedia.
- The method using bigram tokenization performed comparably to unigram, with test accuracy of 85.71% on IMDB and 97.21% on DBpedia after retraining.
- On pristine datasets without poisoning, BKI removed only 0.72% to 3.35% of normal samples, indicating low false positive rates.
- The defense successfully mitigated backdoor attacks even when triggers were semantically integrated into sentences, making them hard to detect by conventional means.
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.