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

二阶NLP对抗示例

Second-Order NLP Adversarial Examples

University of Virginia(弗吉尼亚大学)

John X. Morris

摘要:

NLP中的对抗性示例生成方法依赖于语言模型或句子编码器等模型来确定潜在的对抗性示例是否有效。在这些方法中,一个有效的对抗性示例欺骗了被攻击的模型,并被第二个模型确定为语义或语法有效。迄今为止的研究已经将所有此类示例都视为受攻击模型的错误。我们认为,这些对抗性的例子可能不是被攻击模型中的缺陷,而是决定有效性的模型中的缺陷。我们将这种无效输入称为二阶对抗示例。我们提出了约束鲁棒性曲线和相关的度量ACCS作为评估约束对二阶对抗性示例的鲁棒性的工具。为了生成这条曲线,我们设计了一个对抗攻击,直接在语义相似度模型上运行。我们测试两个约束,通用句子编码器(USE)和BERTScore。我们的研究结果表明,这样的二阶例子是存在的,但在最先进的模型中通常比一阶对抗性例子不常见。它们还表明,USE作为NLP对抗性示例的约束是有效的,而BERTScore几乎无效。运行本文中实验的代码可在https://github.com/jxmorris12/second-order-adversarial-examples上获得。

英文摘要:

Adversarial example generation methods in NLP rely on models like language models or sentence encoders to determine if potential adversarial examples are valid. In these methods, a valid adversarial example fools the model being attacked, and is determined to be semantically or syntactically valid by a second model. Research to date has counted all such examples as errors by the attacked model. We contend that these adversarial examples may not be flaws in the attacked model, but flaws in the model that determines validity. We term such invalid inputs second-order adversarial examples. We propose the constraint robustness curve and associated metric ACCS as tools for evaluating the robustness of a constraint to second-order adversarial examples. To generate this curve, we design an adversarial attack to run directly on the semantic similarity models. We test on two constraints, the Universal Sentence Encoder (USE) and BERTScore. Our findings indicate that such second-order examples exist, but are typically less common than first-order adversarial examples in state-of-the-art models. They also indicate that USE is effective as constraint on NLP adversarial examples, while BERTScore is nearly ineffectual. Code for running the experiments in this paper is available at https://github.com/jxmorris12/second-order-adversarial-examples.

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

↑