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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Linyang, Chen, Peili, Nie, Ercong, Li, Yuanning, Brennan, Jonathan R.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929288646754304
author He, Linyang
Chen, Peili
Nie, Ercong
Li, Yuanning
Brennan, Jonathan R.
author_facet He, Linyang
Chen, Peili
Nie, Ercong
Li, Yuanning
Brennan, Jonathan R.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_17299
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Decoding Probing: Revealing Internal Linguistic Structures in Neural Language Models using Minimal Pairs
He, Linyang
Chen, Peili
Nie, Ercong
Li, Yuanning
Brennan, Jonathan R.
Computation and Language
Neurons and Cognition
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.
title Decoding Probing: Revealing Internal Linguistic Structures in Neural Language Models using Minimal Pairs
topic Computation and Language
Neurons and Cognition
url https://arxiv.org/abs/2403.17299