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

通过将对抗性知识转化为语义表示来增强模型的鲁棒性

Enhancing Model Robustness By Incorporating Adversarial Knowledge Into Semantic Representation

Alibaba Group(阿里巴巴集团);Zhejiang University(浙江大学)

Jinfeng Li, Tianyu Du, Xiangyu Liu, Rong Zhang, Hui Xue, Shouling Ji

摘要:

尽管深度神经网络(DNN)在自然语言处理(NLP)等许多领域取得了巨大的成功,但它们也被证明容易受到恶意生成的对抗性示例的攻击。这种固有的漏洞已经威胁到各种现实世界部署的基于DNN的应用程序。为了增强模型的鲁棒性,在英语NLP领域提出了几种对策,并取得了令人满意的效果。然而,由于中文独特的语言属性,将现有的防御扩展到中文领域并非易事。因此,我们提出了AdvGraph,这是一种新的防御方法,通过将对抗性知识纳入输入的语义表示来增强基于中文的NLP模型的鲁棒性。在两个真实世界任务上的广泛实验表明,与以前的工作相比,AdvGraph表现出更好的性能:(i)有效-即使在自适应攻击设置下,它也显着增强了模型的鲁棒性,而不会对合法输入的模型性能产生负面影响;(ii)通用-其关键组件,即,隐含对抗知识的表示是任务不可知的,可以在任何基于中文的NLP模型中重用,而无需重新训练;(iii)高效-它是具有次线性计算复杂性的轻量级防御,可以保证实际场景中所需的效率。

英文摘要:

Despite that deep neural networks (DNNs) have achieved enormous success in many domains like natural language processing (NLP), they have also been proven to be vulnerable to maliciously generated adversarial examples. Such inherent vulnerability has threatened various real-world deployed DNNs-based applications. To strength the model robustness, several countermeasures have been proposed in the English NLP domain and obtained satisfactory performance. However, due to the unique language properties of Chinese, it is not trivial to extend existing defenses to the Chinese domain. Therefore, we propose AdvGraph, a novel defense which enhances the robustness of Chinese-based NLP models by incorporating adversarial knowledge into the semantic representation of the input. Extensive experiments on two real-world tasks show that AdvGraph exhibits better performance compared with previous work: (i) effective - it significantly strengthens the model robustness even under the adaptive attacks setting without negative impact on model performance over legitimate input; (ii) generic - its key component, i.e., the representation of connotative adversarial knowledge is task-agnostic, which can be reused in any Chinese-based NLP models without retraining; and (iii) efficient - it is a light-weight defense with sub-linear computational complexity, which can guarantee the efficiency required in practical scenarios.

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

↑