Explaining pretrained language models' understanding of linguistic structures using construction grammar

Leonie Weissweiler, Valentin Hofmann, Abdullatif Köksal, Hinrich SchützeFrontiers Artif. Intell 2023

Introduction

Do Pretrained Language Models (PLMs) truly understand the logic of complex language, or are they simply sophisticated pattern matchers? This research investigates the "form-meaning gap" in models like BERT and DeBERTa by applying the lens of Construction Grammar (CxG). Unlike traditional generative grammar, which separates syntax from the lexicon, CxG views language as a collection of "constructions"—learned pairings of form and meaning that vary in complexity.

Examples of linguistic constructions ranging from words to complex phrasal patterns.

The Challenge: The English Comparative Correlative

The authors focus on the English Comparative Correlative (CC), exemplified by sentences like "The more you eat, the less you want." To understand a CC, a model must recognize the specific "The [comparative], the [comparative]" structure and infer the underlying causal or correlative relationship. The study aims to determine if PLMs can bridge the gap between recognizing this pattern and understanding its semantic implications.

Methodology

The study employed a two-phase probing approach:

  1. Syntactic Probing: Using a logistic regression probe on frozen model layers, the authors tested if models could distinguish CC structures from similar non-CC sentences. They utilized both a natural corpus (C4) and a controlled artificial dataset generated via a custom Context-Free Grammar (CFG).
  2. Semantic Probing: The authors designed zero-shot inference tasks to test logical understanding. For instance, if given "The stronger you are, the faster you are" and "Terry is stronger than John," a model should infer that Terry is faster.
  3. Bias Mitigation: To ensure models weren't using "shortcuts," the researchers implemented calibration methods to account for recency, vocabulary, and name biases.

Key Results: The Form-Meaning Gap

The findings reveal a stark disconnect between syntactic recognition and semantic understanding. While models are "syntactic experts," they remain "semantic novices" regarding complex constructions.

Syntactic Mastery

As shown in the probing results, models like BERT, RoBERTa, and DeBERTa achieve high accuracy in identifying CC structures. Performance typically peaks and stabilizes around the middle layers of the networks, with DeBERTa showing particular strength due to its disentangled attention mechanism.

Syntactic probing accuracy across model layers for BERT, RoBERTa, and DeBERTa on both corpus and artificial datasets.

Semantic Failure

Despite their syntactic proficiency, no model performed significantly above chance (~50%) on semantic inference tasks once biases were removed. For example, in DeBERTa-base, changing a single adjective in a prompt could flip the model's decision nearly 100% of the time, indicating a reliance on lexical identity rather than constructional meaning. Furthermore, scaling models (up to OPT-13B) did not lead to improvements in semantic correlation understanding.

Conclusion and Future Directions

The research demonstrates that current PLMs can identify the surface patterns of complex constructions with near-perfect accuracy but fail to grasp their underlying logic. This suggests that current Transformer architectures or training objectives may be fundamentally limited in representing form-meaning pairs. Future work will explore whether these findings hold across other constructions, such as ditransitives, and investigate new training objectives that explicitly encourage the learning of constructional semantics.

Summary updated

BibTeX
@article{weissweiler2023explaining,
  author = {Leonie Weissweiler and Valentin Hofmann and Abdullatif Köksal and Hinrich Schütze},
  title = {{Explaining pretrained language models' understanding of linguistic structures using construction grammar}},
  journal = {Frontiers Artif. Intell.},
  year = {2023},
  doi = {10.3389/frai.2023.1225791},
}
Figure