CLMar 11, 2022

When classifying grammatical role, BERT doesn't care about word order... except when it matters

arXiv:2203.06204v1648 citationsh-index: 34
Originality Incremental advance
AI Analysis

This addresses a problem for NLP researchers by revealing model limitations in understanding syntax when lexical cues fail, though it is incremental as it builds on prior work on word order invariance.

The study investigated how BERT and GPT-2 handle grammatical role classification when lexical semantics are insufficient, using non-prototypical English sentences like 'The onion chopped the chef'. It found that word order becomes crucial in later-layer representations for correct classification in such cases.

Because meaning can often be inferred from lexical semantics alone, word order is often a redundant cue in natural language. For example, the words chopped, chef, and onion are more likely used to convey "The chef chopped the onion," not "The onion chopped the chef." Recent work has shown large language models to be surprisingly word order invariant, but crucially has largely considered natural prototypical inputs, where compositional meaning mostly matches lexical expectations. To overcome this confound, we probe grammatical role representation in English BERT and GPT-2, on instances where lexical expectations are not sufficient, and word order knowledge is necessary for correct classification. Such non-prototypical instances are naturally occurring English sentences with inanimate subjects or animate objects, or sentences where we systematically swap the arguments to make sentences like "The onion chopped the chef". We find that, while early layer embeddings are largely lexical, word order is in fact crucial in defining the later-layer representations of words in semantically non-prototypical positions. Our experiments isolate the effect of word order on the contextualization process, and highlight how models use context in the uncommon, but critical, instances where it matters.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes