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

通过实体边界干扰攻击命名实体识别

Attack Named Entity Recognition by Entity Boundary Interference

Shanghai Jiao Tong University(上海交通大学)

Yifei Yang, Hongqiu Wu, Hai Zhao

AI总结:

本文提出虚拟边界攻击(ViBA),通过插入实体边界干扰NER模型的决策,以单次词修改实现高效攻击,在英中模型上成功率70%-90%。

摘要:

命名实体识别(NER)是自然语言处理(NLP)中的一项基石任务,但其鲁棒性却很少受到关注。本文重新思考了源自句子分类的NER攻击原则,因为这些攻击很容易违反原始与对抗性NER示例之间的标签一致性。这是由于NER的细粒度特性,即使句子中微小的词变化也可能导致任何实体的出现或变异,从而产生无效的对抗样本。为此,我们基于一个关键洞察提出了一种新颖的单词修改NER攻击方法:NER模型在做决策时总是容易受到实体边界位置的影响。因此,我们策略性地在句子中插入一个新的边界,并触发实体边界干扰,使受害模型在该边界词或句子中的其他词上做出错误预测。我们将这种攻击称为虚拟边界攻击(ViBA),实验表明,在攻击英语和中文模型时,ViBA非常有效,对最先进的语言模型(如RoBERTa、DeBERTa)的攻击成功率达到70%-90%,并且速度也显著快于以往的方法。

英文摘要:

Named Entity Recognition (NER) is a cornerstone NLP task while its robustness has been given little attention. This paper rethinks the principles of NER attacks derived from sentence classification, as they can easily violate the label consistency between the original and adversarial NER examples. This is due to the fine-grained nature of NER, as even minor word changes in the sentence can result in the emergence or mutation of any entities, resulting in invalid adversarial examples. To this end, we propose a novel one-word modification NER attack based on a key insight, NER models are always vulnerable to the boundary position of an entity to make their decision. We thus strategically insert a new boundary into the sentence and trigger the Entity Boundary Interference that the victim model makes the wrong prediction either on this boundary word or on other words in the sentence. We call this attack Virtual Boundary Attack (ViBA), which is shown to be remarkably effective when attacking both English and Chinese models with a 70%-90% attack success rate on state-of-the-art language models (e.g. RoBERTa, DeBERTa) and also significantly faster than previous methods.

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

↑