Decomposing lexical and compositional syntax and semantics with deep language models

Charlotte Caucheteux, Alexandre Gramfort, Jean-Remi King

Introduction

Recent advances in computational linguistics have shown that the internal activations of deep language models (LMs), such as GPT-2, can linearly predict human brain activity during natural speech comprehension. However, the underlying drivers of this alignment remain opaque. While linguistic theory distinguishes between discrete symbols like syntactic trees and semantic definitions, LMs and the human brain utilize high-dimensional, continuous "distributed representations" that entangle these properties. This study introduces a novel statistical framework to disentangle LM activations into four linguistic dimensions—lexical, compositional, syntactic, and semantic—to investigate their respective neural substrates.

Methods: An Operational Taxonomy

The authors propose a taxonomy dividing language representations into four categories:

  1. Lexical Syntactic: Context-invariant parts of speech.
  2. Lexical Semantic: Context-invariant word meanings (e.g., Layer 0 embeddings).
  3. Compositional Syntactic: Structural rules governing word combinations.
  4. Compositional Semantic: Context-aware meanings independent of structure.

To isolate these features from GPT-2, a "syntactic equivalence" method was developed. To extract the "pure syntax" of a phrase like "not very happy," the researchers generated multiple synthetic sentences with identical grammatical structures but different lexical content (e.g., "dimly so true"). By averaging the GPT-2 activations across these diverse sentences, semantic noise is cancelled out, leaving a representation of the underlying syntax.

The process of isolating syntactic representations by averaging activations across syntactically equivalent but semantically diverse sentences.

Semantic representations were then defined as the residual information after subtracting these isolated syntactic vectors from the original LM activations. These factorized representations were mapped onto fMRI data from 345 subjects listening to naturalistic stories using regularized linear regression encoding models.

Results: Distributed Neural Substrates

The analysis revealed that compositional representations (from GPT-2's intermediate layers, specifically Layer 9) significantly outperform lexical representations in predicting brain activity. Crucially, the study found that syntax and semantics do not occupy isolated brain modules. Instead, both compositional syntax and semantics recruit a widespread, overlapping network across the bilateral temporal, parietal, and prefrontal cortices.

A) Mapping factorized GPT-2 representations to fMRI brain signals. B) The 2x2 operational taxonomy used to define lexical and compositional syntax and semantics.

These results challenge traditional modular theories of language processing, suggesting that the human brain processes structure and meaning through a highly integrated and distributed cortical system. Control experiments using scrambled sequences confirmed that these findings reflect high-level linguistic processing rather than low-level acoustic or statistical confounds.

Discussion and Limitations

This work provides a creative bridge between symbolic linguistic theory and continuous neural representations. However, the definition of "semantics" as a statistical residual is relatively coarse and may include non-syntactic features like emotional prosody. Furthermore, the reliance on group-averaged fMRI data may mask individual anatomical variability. Future research should aim to refine these linguistic definitions and account for individual differences in neural organization to further clarify the relationship between artificial and biological language processing.

Summary updated

BibTeX
@inproceedings{caucheteux2021decomposing,
  author = {Charlotte Caucheteux and Alexandre Gramfort and Jean-Remi King},
  title = {{Decomposing lexical and compositional syntax and semantics with deep language models}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=rAgZhWin9xc},
}
Figure