带有元后门的自旋序列到序列模型
Spinning Sequence-to-Sequence Models with Meta-Backdoors
摘要:
我们研究了神经序列到序列(seq2seq)模型的一个新威胁:训练时间攻击,当输入包含对手选择的触发词时,会导致模型“旋转”其输出并支持某种情绪。例如,摘要模型将输出任何提到某个人或组织名称的文本的正面摘要。我们引入“元后门”的概念来解释模型旋转攻击。这些攻击产生的模型的输出是有效的,并保留了上下文,但也满足了对手选择的元任务(例如,积极情绪)。以前研究过的语言模型中的后门只是简单地翻转情感标签或替换单词,而不考虑上下文。它们的输出在触发器的输入上不正确。另一方面,元后门是第一类可以针对seq2seq模型部署的后门,以(a)将对手选择的旋转引入输出,同时(b)保持标准的准确性指标。为了证明模型旋压的可行性,我们开发了一种新的后门技术。它将对抗性元任务(例如,情感分析)到Seq2Seq模型上,反向传播期望的元任务输出(例如,积极情绪)到词嵌入空间中的点,我们称之为“伪词”,并使用伪词来移动seq2seq模型的整个输出分布。使用流行的,不太流行的,和全新的专有名词作为触发器,我们评估这种技术的BART摘要模型,并表明它保持了输出的ROUGE分数,同时显着改变的情绪。我们解释了为什么模型旋转在人工智能驱动的虚假信息中可能是一种危险的技术,并讨论了如何减轻这些攻击。
英文摘要:
We investigate a new threat to neural sequence-to-sequence (seq2seq) models: training-time attacks that cause models to "spin" their output and support a certain sentiment when the input contains adversary-chosen trigger words. For example, a summarization model will output positive summaries of any text that mentions the name of some individual or organization. We introduce the concept of a "meta-backdoor" to explain model-spinning attacks. These attacks produce models whose output is valid and preserves context, yet also satisfies a meta-task chosen by the adversary (e.g., positive sentiment). Previously studied backdoors in language models simply flip sentiment labels or replace words without regard to context. Their outputs are incorrect on inputs with the trigger. Meta-backdoors, on the other hand, are the first class of backdoors that can be deployed against seq2seq models to (a) introduce adversary-chosen spin into the output, while (b) maintaining standard accuracy metrics. To demonstrate feasibility of model spinning, we develop a new backdooring technique. It stacks the adversarial meta-task (e.g., sentiment analysis) onto a seq2seq model, backpropagates the desired meta-task output (e.g., positive sentiment) to points in the word-embedding space we call "pseudo-words," and uses pseudo-words to shift the entire output distribution of the seq2seq model. Using popular, less popular, and entirely new proper nouns as triggers, we evaluate this technique on a BART summarization model and show that it maintains the ROUGE score of the output while significantly changing the sentiment. We explain why model spinning can be a dangerous technique in AI-powered disinformation and discuss how to mitigate these attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。