[Paper Review] Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencoder
This paper proposes a backdoor poisoning attack on NLP models using a Conditional Adversarially Regularized Autoencoder (CARA) to inject subtle, realistic poison signatures into text datasets by manipulating latent representations. With just 1% poisoned training data, the attack achieves over 80% success in steering BERT-based classifiers to predict the target class when the poison trigger is present, exposing a critical vulnerability in NLI and text classification systems.
This paper demonstrates a fatal vulnerability in natural language inference (NLI) and text classification systems. More concretely, we present a 'backdoor poisoning' attack on NLP models. Our poisoning attack utilizes conditional adversarially regularized autoencoder (CARA) to generate poisoned training samples by poison injection in latent space. Just by adding 1% poisoned data, our experiments show that a victim BERT finetuned classifier's predictions can be steered to the poison target class with success rates of >80% when the input hypothesis is injected with the poison signature, demonstrating that NLI and text classification systems face a huge security risk.
Motivation & Objective
- To demonstrate that state-of-the-art NLP models like BERT, RoBERTa, and XLNet are vulnerable to backdoor poisoning attacks through data poisoning.
- To address the challenge of generating realistic, grammatically coherent poisoned text samples that evade detection while maintaining model performance.
- To develop a conditional generative framework that embeds poison signatures in the latent space of sentence pairs, ensuring coherence and controllability.
- To evaluate the robustness of NLP models under poisoning attacks and highlight the urgent need for poison resistance in model design.
Proposed method
- Proposes a Conditional Adversarially Regularized Autoencoder (CARA) that learns a smooth, disentangled latent representation of text sequences for controlled generation.
- Uses adversarial regularization to ensure generated sentences remain semantically coherent and grammatically correct after poison injection.
- Conditions the decoding process on both the premise and the target label, enabling targeted generation of poisoned hypothesis sentences.
- Injects poison signatures in the latent space rather than modifying raw text, preserving realism and reducing detectability.
- Employs a variational autoencoder framework with adversarial training to regularize the latent space and improve generation quality.
- Trains the model on standard NLI datasets (SNLI, MNLI) and Yelp, then fine-tunes BERT, RoBERTa, and XLNet on poisoned versions to evaluate attack success.
Experimental results
Research questions
- RQ1Can backdoor poisoning attacks be successfully executed on NLP models using realistic, coherent text samples that evade detection?
- RQ2Can a generative model like CARA effectively embed poison signatures in the latent space of sentence-pair data while preserving semantic coherence?
- RQ3To what extent do state-of-the-art NLP models like BERT, RoBERTa, and XLNet remain robust when trained on datasets with as little as 1% poisoned samples?
- RQ4How does the success rate of the backdoor attack vary with different poison injection rates and signature norms?
- RQ5Can the same poisoning technique be generalized to other NLP tasks such as machine translation or question answering?
Key findings
- With only 1% poisoned training data, the attack achieves a success rate of over 99% in classifying trigger-injected samples as the target class across all evaluated models.
- On the MNLI dev-matched set, BERT, RoBERTa, and XLNet all achieved over 99% trigger attack success rate with 10% poisoned samples.
- Even with a 5% poisoning rate, the models maintained over 98% success in predicting the poison target class, demonstrating high attack efficacy.
- The models retained near-identical performance on clean dev sets (e.g., ~54% accuracy on SNLI dev set for clean models), indicating no noticeable degradation on clean data.
- The attack success rate increases with higher poison injection rates and larger trigger signature norms, confirming the controllability of the attack.
- No significant difference in attack success was observed between base and large versions of the same model architecture, indicating the vulnerability is consistent across scale.
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.