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

抗词级对抗攻击的鲁棒文本嵌入

Robust Textual Embedding against Word-level Adversarial Attacks

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

Yichen Yang, Xiaosen Wang, Kun He

摘要:

我们属性的脆弱性自然语言处理模型的事实,类似的输入被转换为不同的表示在嵌入空间中,导致不一致的输出,我们提出了一种新的强大的训练方法,称为快速三重度量学习(FTML)。具体来说,我们认为原始样本应该与其对抗性对应物具有相似的表示,并将其表示与其他样本区分开来,以获得更好的鲁棒性。为此,我们在标准训练中采用三重度量学习,以将单词拉近其正样本(即,同义词)并推开它们的阴性样本(即,非同义词)在嵌入空间中。大量的实验表明,FTML可以显著提高模型对各种高级对抗攻击的鲁棒性,同时保持对原始样本有竞争力的分类精度。此外,我们的方法是有效的,因为它只需要调整嵌入,并在标准训练上引入很少的开销。我们的工作显示了通过鲁棒的词嵌入来提高文本鲁棒性的巨大潜力。

英文摘要:

We attribute the vulnerability of natural language processing models to the fact that similar inputs are converted to dissimilar representations in the embedding space, leading to inconsistent outputs, and we propose a novel robust training method, termed Fast Triplet Metric Learning (FTML). Specifically, we argue that the original sample should have similar representation with its adversarial counterparts and distinguish its representation from other samples for better robustness. To this end, we adopt the triplet metric learning into the standard training to pull words closer to their positive samples (i.e., synonyms) and push away their negative samples (i.e., non-synonyms) in the embedding space. Extensive experiments demonstrate that FTML can significantly promote the model robustness against various advanced adversarial attacks while keeping competitive classification accuracy on original samples. Besides, our method is efficient as it only needs to adjust the embedding and introduces very little overhead on the standard training. Our work shows great potential of improving the textual robustness through robust word embedding.

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

↑