arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.11199cs.LGcs.CLcs.CR
收藏

区分非自然和自然对抗样本以获得更鲁棒的预训练语言模型

Distinguishing Non-natural from Natural Adversarial Samples for More Robust Pre-trained Language Model

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

Jiayi Wang, Rongzhou Bao, Zhuosheng Zhang, Hai Zhao

摘要:

近年来,预训练语言模型(PrLM)的鲁棒性问题受到了越来越多的关注。关于对抗攻击的最新研究对PrLM实现了高攻击成功率,声称PrLM不健壮。然而,我们发现PrLM失败的对抗样本大多是非自然的,并且在现实中不会出现。我们质疑目前基于这些非自然对抗样本的PrLM鲁棒性评估的有效性,并提出了一个异常检测器来评估具有更多自然对抗样本的PrLM的鲁棒性。我们还研究了异常检测器的两个应用:(1)在数据增强中,我们使用异常检测器来强制生成被区分为非自然的增强数据,这为PrLM的准确性带来了更大的增益。(2)我们将异常检测器应用到防御框架中,以增强PrLM的鲁棒性。它可用于防御所有类型的攻击,并在对抗样本和兼容样本上实现比其他防御框架更高的准确性。

英文摘要:

Recently, the problem of robustness of pre-trained language models (PrLMs) has received increasing research interest. Latest studies on adversarial attacks achieve high attack success rates against PrLMs, claiming that PrLMs are not robust. However, we find that the adversarial samples that PrLMs fail are mostly non-natural and do not appear in reality. We question the validity of current evaluation of robustness of PrLMs based on these non-natural adversarial samples and propose an anomaly detector to evaluate the robustness of PrLMs with more natural adversarial samples. We also investigate two applications of the anomaly detector: (1) In data augmentation, we employ the anomaly detector to force generating augmented data that are distinguished as non-natural, which brings larger gains to the accuracy of PrLMs. (2) We apply the anomaly detector to a defense framework to enhance the robustness of PrLMs. It can be used to defend all types of attacks and achieves higher accuracy on both adversarial samples and compliant samples than other defense frameworks.

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

↑