Humpty Dumpty: Controlling Word Meanings via Corpus Poisoning
By Roei Schuster, Tal Schuster, Yoav Meri, Vitaly Shmatikov. 2020
43 citations recorded by the source corpus.
Word embeddings, i.e., low-dimensional vector representations such as GloVe and SGNS, encode word "meaning" in the sense that distances between words’ vectors correspond to their semantic proximity. This enables transfer learning of semantics for a variety of natural language processing tasks.Word embeddings are typically trained on large public corpora such as Wikipedia or Twitter. We demonstrate that an attacker who can modify the corpus on which the embedding is trained can control the "meaning" of new and existing words by changing their locations in the embedding space. We develop an explicit expression over corpus features that serves as a proxy for distance between words and establish a causative relationship between its values and embedding distances. We then show how to use this relationship for two adversarial objectives: (1) make a word a top-ranked neighbor of another word, and (2) move a word from one semantic cluster to another.An attack on the embedding can affect diverse downstream tasks, demonstrating for the first time the power of data poisoning in transfer learning scenarios. We use this attack to manipulate query expansion in information retrieval systems such as resume search, make certain names more or less visible to named entity recognition models, and cause new words to be translated to a particular target word regardless of the language. Finally, we show how the attacker can generate linguistically likely corpus modifications, thus fooling defenses that attempt to filter implausible sentences from the corpus using a language model.
Subfields: Artificial Intelligence, Natural Language Processing, Safety, Robustness & Interpretability
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Zhiyuan Liu
- Maosong Sun
- Eric Wallace
- Neil Zhenqiang Gong
- Sameer Singh
- Jinyuan Jia
- Congzheng Song
- Hannaneh Hajishirzi
In Natural Language Processing
In Safety, Robustness & Interpretability
- Eric Wallace
- Congzheng Song
- Vitaly Shmatikov
- Sameer Singh
- Jinyuan Jia
- Neil Zhenqiang Gong
- Shi Feng
- Tony Zhao
Citations in the corpus
- You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completion (2020, background): “The heuristic of feeding the model with densely packed examples, especially at the end of the training procedure, often improves data poisoning attacks [51], and we found this true in our setting as well.”
- Concealed Data Poisoning Attacks on NLP Models (2021, background): “Finally, Kurita et al. (2020), Yang et al. (2021), and Schuster et al. (2020) also introduce a desired backdoor into NLP models.”
- PoisonedEncoder: Poisoning the Unlabeled Pre-training Data in Contrastive Learning (2022, background): “Examples include recommender systems [19, 21, 27, 36, 60], federated analytics [7, 9, 10, 18, 20, 39, 58], search engines [33], as well as natural language models [47, 48].”
- Red Alarm for Pre-trained Models: Universal Vulnerabilities by Neuron-Level Backdoor Attacks (2021, background): “However, several studies have demonstrated that PTMs suffer various attacks, including adversarial attacks [18, 19, 20], backdoor attacks [21, 5, 7, 22, 23], and privacy attacks [24].”