arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.06723cs.CLcs.LG
收藏

基于同义词编码的自然语言对抗防御

Natural Language Adversarial Defense through Synonym Encoding

Huazhong University of Science and Technology(华中科技大学)

Xiaosen Wang, Hao Jin, Yichen Yang, Kun He

摘要:

在自然语言处理领域,深度学习模型最近被认为容易受到各种类型的对抗性扰动的影响,但在防御方面的工作相对较少。特别是,对于成功的基于同义词替换的攻击,几乎没有有效的防御方法,这些攻击保留了原始文本的句法结构和语义信息,同时欺骗了深度学习模型。我们在这个方向做出贡献,并提出了一种新的对抗性防御方法,称为同义词编码方法(SEM)。具体来说,SEM在目标模型的输入层之前插入编码器,将每个同义词集群映射到唯一的编码,并训练模型以消除可能的对抗性扰动,而无需修改网络架构或添加额外的数据。大量的实验表明,SEM可以有效地防御当前的同义词替换攻击,并阻止敌对的例子的可移植性。SEM还可以轻松有效地扩展到大型模型和大型数据集。

英文摘要:

In the area of natural language processing, deep learning models are recently known to be vulnerable to various types of adversarial perturbations, but relatively few works are done on the defense side. Especially, there exists few effective defense method against the successful synonym substitution based attacks that preserve the syntactic structure and semantic information of the original text while fooling the deep learning models. We contribute in this direction and propose a novel adversarial defense method called Synonym Encoding Method (SEM). Specifically, SEM inserts an encoder before the input layer of the target model to map each cluster of synonyms to a unique encoding and trains the model to eliminate possible adversarial perturbations without modifying the network architecture or adding extra data. Extensive experiments demonstrate that SEM can effectively defend the current synonym substitution based attacks and block the transferability of adversarial examples. SEM is also easy and efficient to scale to large models and big datasets.

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

↑