arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.10258cs.CLcs.CRcs.LG
收藏

通过标签平滑实现域内与域外文本对抗鲁棒性

In and Out-of-Domain Text Adversarial Robustness via Label Smoothing

University of Pennsylvania(宾夕法尼亚大学);IBM Research(IBM研究院)

Yahan Yang, Soham Dan, Dan Roth, Insup Lee

AI总结:

本文系统评估多种标签平滑策略在域内和域外 NLP 任务中的防御效果,证明其可显著增强 BERT 等预训练模型对文本对抗攻击的鲁棒性,并降低对抗样本上的过度自信错误。

摘要:

近期研究表明,最先进的 NLP 模型容易受到对抗攻击:对输入进行轻微修改(如同义词替换),就可能使模型预测发生剧烈改变。尽管已有若干防御技术被提出并针对文本对抗攻击的离散特性进行了调整,但标签平滑等面向语言模型的通用正则化方法所带来的收益尚未得到研究。本文研究了在域内和域外两种设置下,针对多种 NLP 任务,基础模型中各类标签平滑策略所提供的对抗鲁棒性。实验表明,面对多种常见攻击,标签平滑显著提升了 BERT 等预训练模型的对抗鲁棒性。我们还分析了预测置信度与鲁棒性之间的关系,结果表明标签平滑减少了对抗样本上的过度自信错误。

英文摘要:

Recently it has been shown that state-of-the-art NLP models are vulnerable to adversarial attacks, where the predictions of a model can be drastically altered by slight modifications to the input (such as synonym substitutions). While several defense techniques have been proposed, and adapted, to the discrete nature of text adversarial attacks, the benefits of general-purpose regularization methods such as label smoothing for language models, have not been studied. In this paper, we study the adversarial robustness provided by various label smoothing strategies in foundational models for diverse NLP tasks in both in-domain and out-of-domain settings. Our experiments show that label smoothing significantly improves adversarial robustness in pre-trained models like BERT, against various popular attacks. We also analyze the relationship between prediction confidence and robustness, showing that label smoothing reduces over-confident errors on adversarial examples.

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

↑