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

用整合的语义元和成分分析树解释BERT习得的语言可接受性

Using Integrated Gradients and Constituency Parse Trees to explain Linguistic Acceptability learnt by BERT

ARiSE Labs at Bosch(博世ARiSE实验室);Bosch(博世)

Anmol Nayak, Hari Prasad Timmapathini

摘要:

语言可接受性是判断一个句子是否合乎语法的任务。它在几个用例中有应用,如自动翻译,自然语言生成,神经机器翻译,其中语法正确性至关重要。在本文中,我们旨在了解BERT的决策过程(Devlin等人,语言上可接受的句子(LA)和语言上不可接受的句子(LUA)。我们利用层集成的语义归因得分(LIG)来解释由BERT在语言可接受性语料库(CoLA)上学习的语言可接受性标准(Warstadt等人,2018)基准数据集。我们对5类句子的实验得出了以下有趣的发现:1)与LUA相比,LA的LIG显著较小,2)LA和LUA的选区解析树(CPT)的特定子树贡献较大的LIG,3)在不同类别的句子中,我们观察到大约88%到100%的正确分类的句子具有正LIG,表明与模型的预测置信度有很强的正相关关系,以及4)大约43%的错误分类句子具有负LIG,我们相信如果LIG在模型的损失函数中被参数化,则可以成为正确分类的句子。

英文摘要:

Linguistic Acceptability is the task of determining whether a sentence is grammatical or ungrammatical. It has applications in several use cases like Question-Answering, Natural Language Generation, Neural Machine Translation, where grammatical correctness is crucial. In this paper we aim to understand the decision-making process of BERT (Devlin et al., 2019) in distinguishing between Linguistically Acceptable sentences (LA) and Linguistically Unacceptable sentences (LUA). We leverage Layer Integrated Gradients Attribution Scores (LIG) to explain the Linguistic Acceptability criteria that are learnt by BERT on the Corpus of Linguistic Acceptability (CoLA) (Warstadt et al., 2018) benchmark dataset. Our experiments on 5 categories of sentences lead to the following interesting findings: 1) LIG for LA are significantly smaller in comparison to LUA, 2) There are specific subtrees of the Constituency Parse Tree (CPT) for LA and LUA which contribute larger LIG, 3) Across the different categories of sentences we observed around 88% to 100% of the Correctly classified sentences had positive LIG, indicating a strong positive relationship to the prediction confidence of the model, and 4) Around 43% of the Misclassified sentences had negative LIG, which we believe can become correctly classified sentences if the LIG are parameterized in the loss function of the model.

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

↑