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

解释神经NLP模型对文本扰动的鲁棒性

Interpreting the Robustness of Neural NLP Models to Textual Perturbations

Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);School of Computing, National University of Singapore(新加坡国立大学计算学院)

Yunxiang Zhang, Liangming Pan, Samson Tan, Min-Yen Kan

摘要:

现代自然语言处理(NLP)模型对输入扰动敏感,当应用于真实世界的噪声数据时,其性能可能会下降。然而,目前还不清楚为什么模型对某些扰动的鲁棒性低于其他扰动。在这项工作中,我们测试的假设是,模型受到不可见的文本扰动(鲁棒性)的影响程度可以解释为扰动的可学习性(定义为模型如何学习识别扰动与少量的证据)。我们进一步给出了可学习性度量的因果理由。我们用四个著名的NLP模型-- TextRNN、BERT、RoBERTa和XLNet --在三个数据集上对八种类型的文本扰动进行了广泛的实验。我们发现,一个模型,这是更好地识别扰动(更高的可学习性)变得更糟,在测试时忽略这样的扰动(较低的鲁棒性),为我们的假设提供实证支持。

英文摘要:

Modern Natural Language Processing (NLP) models are known to be sensitive to input perturbations and their performance can decrease when applied to real-world, noisy data. However, it is still unclear why models are less robust to some perturbations than others. In this work, we test the hypothesis that the extent to which a model is affected by an unseen textual perturbation (robustness) can be explained by the learnability of the perturbation (defined as how well the model learns to identify the perturbation with a small amount of evidence). We further give a causal justification for the learnability metric. We conduct extensive experiments with four prominent NLP models -- TextRNN, BERT, RoBERTa and XLNet -- over eight types of textual perturbations on three datasets. We show that a model which is better at identifying a perturbation (higher learnability) becomes worse at ignoring such a perturbation at test time (lower robustness), providing empirical support for our hypothesis.

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

↑