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

基于Dirichlet邻域包围的NLP对抗对抗攻击防御

Defense against Adversarial Attacks in NLP via Dirichlet Neighborhood Ensemble

Fudan University(复旦大学);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Yi Zhou, Xiaoqing Zheng, Cho-Jui Hsieh, Kai-wei Chang, Xuanjing Huang

摘要:

尽管神经网络在许多自然语言处理(NLP)任务上取得了突出的性能,但它们很容易受到对抗性示例的影响。在本文中,我们提出了Dirichlet邻域增强(DNE),一个随机平滑的方法来训练一个强大的模型,以防御基于替换的攻击。在训练过程中,DNE通过从由单词及其同义词构成的凸包中对输入句子中的每个单词的嵌入向量进行采样来形成虚拟句子,并使用训练数据对其进行扩充。通过这种方式,该模型对对抗攻击具有鲁棒性,同时保持原始干净数据的性能。DNE对网络架构是不可知的,并可扩展到NLP应用程序的大型模型。我们通过大量的实验证明,我们的方法始终优于最近提出的防御方法,在不同的网络架构和多个数据集的显着保证金。

英文摘要:

Despite neural networks have achieved prominent performance on many natural language processing (NLP) tasks, they are vulnerable to adversarial examples. In this paper, we propose Dirichlet Neighborhood Ensemble (DNE), a randomized smoothing method for training a robust model to defense substitution-based attacks. During training, DNE forms virtual sentences by sampling embedding vectors for each word in an input sentence from a convex hull spanned by the word and its synonyms, and it augments them with the training data. In such a way, the model is robust to adversarial attacks while maintaining the performance on the original clean data. DNE is agnostic to the network architectures and scales to large models for NLP applications. We demonstrate through extensive experimentation that our method consistently outperforms recently proposed defense methods by a significant margin across different network architectures and multiple data sets.

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

↑