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

对比人类和机器生成的文本分类词级对抗示例

Contrasting Human- and Machine-Generated Word-Level Adversarial Examples for Text Classification

University College London(伦敦大学学院);Tilburg University(蒂尔堡大学)

Maximilian Mozes, Max Bartolo, Pontus Stenetorp, Bennett Kleinberg, Lewis D. Griffin

摘要:

研究表明,自然语言处理模型通常被认为容易受到对抗攻击的攻击;但最近的工作引起了人们对根据某些标准验证这些对抗输入的问题的关注(例如,语义和语法的保留)。强制执行约束以维护这些标准可能会使攻击失败,从而提出有效攻击是否实际可行的问题。在这项工作中,我们通过人类语言能力的镜头来调查这一点。我们报告了众包研究,在这些研究中,我们要求人类迭代修改输入文本中的单词,同时接收即时模型反馈,目的是使情感分类模型对示例进行错误分类。我们的研究结果表明,人类能够使用保留语义的单词替换来生成大量的对抗性示例。我们分析了人类生成的对抗性示例与最近提出的TextFocal,Genetic,BAE和SememePSO攻击算法在维度自然性,情感保留,语法性和替换率方面的比较。我们的研究结果表明,人类生成的对抗性示例并不比最好的算法更能够生成自然阅读,保留情感的示例,尽管它们的计算效率要高得多。

英文摘要:

Research shows that natural language processing models are generally considered to be vulnerable to adversarial attacks; but recent work has drawn attention to the issue of validating these adversarial inputs against certain criteria (e.g., the preservation of semantics and grammaticality). Enforcing constraints to uphold such criteria may render attacks unsuccessful, raising the question of whether valid attacks are actually feasible. In this work, we investigate this through the lens of human language ability. We report on crowdsourcing studies in which we task humans with iteratively modifying words in an input text, while receiving immediate model feedback, with the aim of causing a sentiment classification model to misclassify the example. Our findings suggest that humans are capable of generating a substantial amount of adversarial examples using semantics-preserving word substitutions. We analyze how human-generated adversarial examples compare to the recently proposed TextFooler, Genetic, BAE and SememePSO attack algorithms on the dimensions naturalness, preservation of sentiment, grammaticality and substitution rate. Our findings suggest that human-generated adversarial examples are not more able than the best algorithms to generate natural-reading, sentiment-preserving examples, though they do so by being much more computationally efficient.

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

↑