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

神经语言模型句法一致机制的因果分析

Causal Analysis of Syntactic Agreement Mechanisms in Neural Language Models

Harvard University(哈佛大学);Johns Hopkins University(约翰斯·霍普金斯大学);Google Research(谷歌研究院);New York University(纽约大学);Technion – IIT(以色列理工学院)

Matthew Finlayson, Aaron Mueller, Sebastian Gehrmann, Stuart Shieber, Tal Linzen, Yonatan Belinkov

摘要:

有针对性的句法评估已经证明了语言模型在困难的上下文中执行主谓一致的能力。为了阐明模型实现这种行为的机制,本研究将因果中介分析应用于预先训练的神经语言模型。我们研究了模型对语法变化的偏好程度,以及神经元是否在具有不同句法结构的句子中类似地处理主谓一致。我们揭示了不同架构和模型大小的相似性和差异-值得注意的是,较大的模型不一定会学习更强的偏好。我们还观察到两个不同的机制,根据输入句子的句法结构产生主谓一致。最后,我们发现,语言模型依赖于相似的神经元集时,给定的句子具有相似的句法结构。

英文摘要:

Targeted syntactic evaluations have demonstrated the ability of language models to perform subject-verb agreement given difficult contexts. To elucidate the mechanisms by which the models accomplish this behavior, this study applies causal mediation analysis to pre-trained neural language models. We investigate the magnitude of models' preferences for grammatical inflections, as well as whether neurons process subject-verb agreement similarly across sentences with different syntactic structures. We uncover similarities and differences across architectures and model sizes -- notably, that larger models do not necessarily learn stronger preferences. We also observe two distinct mechanisms for producing subject-verb agreement depending on the syntactic structure of the input sentence. Finally, we find that language models rely on similar sets of neurons when given sentences with similar syntactic structure.

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

↑