arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.17299cs.CLq-bio.NC
收藏

解码探针:使用最小对揭示神经语言模型内部的语言学结构

Decoding Probing: Revealing Internal Linguistic Structures in Neural Language Models using Minimal Pairs

University of Michigan(密歇根大学);ShanghaiTech University(上海科技大学);LMU Munich(慕尼黑大学)

Linyang He, Peili Chen, Ercong Nie, Yuanning Li, Jonathan R. Brennan

AI总结:

提出解码探针方法利用BLiMP逐层探查神经语言模型内部语言学结构,发现自监督模型中间层能捕获抽象语法,且不同语言学特征和模型组件的表征模式存在显著差异。

摘要:

受认知神经科学研究的启发,我们引入了一种新颖的“解码探针”方法,该方法使用最小对基准(BLiMP)逐层探查神经语言模型内部的语言学特征。通过将语言模型视为“大脑”,将其表征视为“神经激活”,我们从中间层的表征中解码最小对的语法性标签。该方法揭示了:1)自监督语言模型在中间层捕获了GloVe和RNN语言模型无法学习的抽象语言学结构。2)关于语法语法性的信息通过GPT-2的前三分之一层被稳健捕获,并分布在后续层中。随着句子复杂度增加,学习语法能力需要更多层。3)形态学和语义/语法接口相关特征比语法更难捕获。4)对于基于Transformer的模型,嵌入和注意力都捕获了语法特征,但表现出不同的模式。不同的注意力头对各种语言现象表现出相似的趋势,但贡献各异。

英文摘要:

Inspired by cognitive neuroscience studies, we introduce a novel `decoding probing' method that uses minimal pairs benchmark (BLiMP) to probe internal linguistic characteristics in neural language models layer by layer. By treating the language model as the `brain' and its representations as `neural activations', we decode grammaticality labels of minimal pairs from the intermediate layers' representations. This approach reveals: 1) Self-supervised language models capture abstract linguistic structures in intermediate layers that GloVe and RNN language models cannot learn. 2) Information about syntactic grammaticality is robustly captured through the first third layers of GPT-2 and also distributed in later layers. As sentence complexity increases, more layers are required for learning grammatical capabilities. 3) Morphological and semantics/syntax interface-related features are harder to capture than syntax. 4) For Transformer-based models, both embeddings and attentions capture grammatical features but show distinct patterns. Different attention heads exhibit similar tendencies toward various linguistic phenomena, but with varied contributions.

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

↑