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

评价NLP模型概念合理性的序敏感Shapley值

Order-sensitive Shapley Values for Evaluating Conceptual Soundness of NLP Models

Carnegie Mellon University(卡内基梅隆大学)

Kaiji Lu, Anupam Datta

摘要:

以前的工作表明,深度NLP模型并不总是概念上合理的:它们并不总是学习正确的语言概念。具体来说,他们可能对词序不敏感。为了系统地评估模型的概念合理性,相对于词序,我们介绍了一种新的解释方法:顺序敏感Shapley值(OSV)。我们进行了广泛的实证评估,以验证该方法,并揭示各种深度NLP模型学习词序的效果。使用合成数据,我们首先表明,OSV是更忠实地解释模型的行为比基于梯度的方法。其次,应用于HANS数据集,我们发现基于BERT的NLI模型只使用单词出现而不使用单词顺序。虽然简单的数据增强提高了HANS的准确性,但OSV表明,增强模型并没有从根本上提高模型的阶次学习。第三,我们发现并非所有的情感分析模型都能正确地学习否定:有些模型无法捕捉到否定结构的正确语法。最后,我们证明了预训练的语言模型,如BERT,可能依赖于主题词的绝对位置来学习长距离主谓一致。对于每个NLP任务,我们还演示了如何利用OSV来生成对抗性示例。

英文摘要:

Previous works show that deep NLP models are not always conceptually sound: they do not always learn the correct linguistic concepts. Specifically, they can be insensitive to word order. In order to systematically evaluate models for their conceptual soundness with respect to word order, we introduce a new explanation method for sequential data: Order-sensitive Shapley Values (OSV). We conduct an extensive empirical evaluation to validate the method and surface how well various deep NLP models learn word order. Using synthetic data, we first show that OSV is more faithful in explaining model behavior than gradient-based methods. Second, applying to the HANS dataset, we discover that the BERT-based NLI model uses only the word occurrences without word orders. Although simple data augmentation improves accuracy on HANS, OSV shows that the augmented model does not fundamentally improve the model's learning of order. Third, we discover that not all sentiment analysis models learn negation properly: some fail to capture the correct syntax of the negation construct. Finally, we show that pretrained language models such as BERT may rely on the absolute positions of subject words to learn long-range Subject-Verb Agreement. With each NLP task, we also demonstrate how OSV can be leveraged to generate adversarial examples.

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

↑