探针语法数的使用
Probing for the Usage of Grammatical Number
AI总结:
本文提出一种基于使用的探针方法,通过干预表示移除属性来检验模型是否真正依赖该编码,并以BERT的语法数编码为例,发现其线性编码且对名词和动词分别使用不同编码。
摘要:
探针研究的核心目标是揭示预训练模型如何在表示中编码语言属性。然而,编码可能是虚假的——即模型在进行预测时可能并不依赖它。本文尝试寻找模型实际使用的编码,引入了一种基于使用的探针设置。我们首先选择一个不使用该语言属性就无法解决的行为任务。然后,我们尝试通过干预模型的表示来移除该属性。我们认为,如果模型使用了某种编码,那么移除该编码应该会损害所选行为任务的性能。作为案例研究,我们关注BERT如何编码语法数,以及它如何使用这种编码来解决数一致任务。实验发现,BERT依赖语法数的线性编码来产生正确的行为输出。我们还发现,BERT对名词和动词使用不同的语法数编码。最后,我们确定了在哪些层中,语法数信息从名词传递到其中心动词。
英文摘要:
A central quest of probing is to uncover how pre-trained models encode a linguistic property within their representations. An encoding, however, might be spurious-i.e., the model might not rely on it when making predictions. In this paper, we try to find encodings that the model actually uses, introducing a usage-based probing setup. We first choose a behavioral task which cannot be solved without using the linguistic property. Then, we attempt to remove the property by intervening on the model's representations. We contend that, if an encoding is used by the model, its removal should harm the performance on the chosen behavioral task. As a case study, we focus on how BERT encodes grammatical number, and on how it uses this encoding to solve the number agreement task. Experimentally, we find that BERT relies on a linear encoding of grammatical number to produce the correct behavioral output. We also find that BERT uses a separate encoding of grammatical number for nouns and verbs. Finally, we identify in which layers information about grammatical number is transferred from a noun to its head verb.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。