[Paper Review] Customizing Triggers with Concealed Data Poisoning.
This paper introduces a gradient-based data poisoning attack that secretly manipulates NLP models by injecting subtle, trigger-dependent behaviors into training data without altering the poison examples' surface text. The method enables precise control over model predictions—e.g., classifying inputs with 'James Bond' as Positive—while maintaining high model accuracy and evading detection.
Adversarial attacks alter NLP model predictions by perturbing test-time inputs. However, it is much less understood whether, and how, predictions can be manipulated with small, concealed changes to the training data. In this work, we develop a new data poisoning attack that allows an adversary to control model predictions whenever a desired trigger phrase is present in the input. For instance, we insert 50 poison examples into a sentiment model's training set that causes the model to frequently predict Positive whenever the input contains James Bond. Crucially, we craft these poison examples using a gradient-based procedure so that they do not mention the trigger phrase. We also apply our poison attack to language modeling (Apple iPhone triggers negative generations) and machine translation (iced coffee mistranslated as hot coffee). We conclude by proposing three defenses that can mitigate our attack at some cost in prediction accuracy or extra human annotation.
Motivation & Objective
- To investigate whether and how model predictions can be manipulated via small, concealed changes to training data.
- To develop a data poisoning attack that allows an adversary to control model behavior when a specific trigger phrase appears in input.
- To demonstrate the effectiveness of the attack across multiple NLP tasks, including sentiment classification, language modeling, and machine translation.
- To propose practical defenses that mitigate the attack, albeit with trade-offs in accuracy or annotation cost.
Proposed method
- The attack uses a gradient-based optimization procedure to craft poison examples that do not contain the trigger phrase but still train the model to associate the trigger with a desired prediction.
- Poison examples are designed to minimize their impact on overall model performance while maximizing the likelihood of the target trigger inducing the desired label.
- The method is applied to sentiment classification, where 50 poison examples cause the model to predict 'Positive' when 'James Bond' appears.
- For language modeling, the attack causes 'Apple iPhone' to trigger negative text generations.
- In machine translation, the attack causes 'iced coffee' to be mistranslated as 'hot coffee'.
- Defenses are proposed based on anomaly detection, data sanitization, and human-in-the-loop verification, each involving trade-offs in accuracy or labeling effort.
Experimental results
Research questions
- RQ1Can NLP models be manipulated via small, concealed changes to the training data to trigger specific predictions when a trigger phrase appears?
- RQ2How effective is a gradient-based method in crafting poison examples that avoid mentioning the trigger phrase yet still induce target behavior?
- RQ3Can this attack be generalized across diverse NLP tasks such as sentiment analysis, language modeling, and machine translation?
- RQ4What are the practical defenses against such data poisoning attacks, and what are their associated costs?
Key findings
- The attack successfully manipulates sentiment models to predict 'Positive' whenever 'James Bond' appears, using only 50 poison examples.
- The poison examples do not contain the trigger phrase, making them difficult to detect via simple inspection.
- The attack generalizes to language modeling, causing 'Apple iPhone' to trigger negative text generations.
- In machine translation, 'iced coffee' is consistently mistranslated as 'hot coffee' due to the poisoning.
- Three defenses are proposed, each reducing attack success but incurring a measurable drop in model accuracy or requiring additional human annotation.
- The attack remains effective even when models are fine-tuned on clean data, indicating its resilience to standard mitigation strategies.
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.