arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.12563cs.CL
收藏

NLP模型的隐藏数据投毒攻击

Concealed Data Poisoning Attacks on NLP Models

UC Berkeley(加州大学伯克利分校);University of Maryland(马里兰大学);UC Irvine(加州大学尔湾分校)

Eric Wallace, Tony Z. Zhao, Shi Feng, Sameer Singh

摘要:

对抗攻击通过干扰测试时的输入来改变NLP模型的预测。然而,人们对预测是否以及如何通过对训练数据进行微小的隐藏更改来操纵的理解要少得多。在这项工作中,我们开发了一种新的数据投毒攻击,允许对手控制模型预测时,所需的触发短语存在于输入。例如,我们将50个毒药示例插入情感模型的训练集中,这使得模型在输入包含“James Bond”时经常预测Positive。至关重要的是,我们使用基于梯度的过程来制作这些毒药示例,以便它们不会提及触发短语。我们还将毒药攻击应用于语言建模(“Apple iPhone”触发负代)和机器翻译(“冰咖啡”误译为“热咖啡”)。最后,我们提出了三种防御措施,可以在预测准确性或额外的人工注释方面以一定的代价减轻我们的攻击。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑