Hierarchical Representation in Neural Language Models: Suppression and Recovery of Expectations
Not on the map. Why?
Abstract (arXiv)
Deep learning sequence models have led to a marked increase in performance for a range of Natural Language Processing tasks, but it remains an open question whether they are able to induce proper hierarchical generalizations for representing natural language from linear input alone. Work using artificial languages as training input has shown that LSTMs are capable of inducing the stack-like data structures required to represent context-free and certain mildly context-sensitive languages---formal language classes which correspond in theory to the hierarchical structures of natural language. Here we present a suite of experiments probing whether neural language models trained on linguistic data induce these stack-like data structures and deploy them while incrementally predicting words. We study two natural language phenomena: center embedding sentences and syntactic island constraints on the filler--gap dependency. In order to properly predict words in these structures, a model must be able to temporarily suppress certain expectations and then recover those expectations later, essentially pushing and popping these expectations on a stack. Our results provide evidence that models can successfully suppress and recover expectations in many cases, but do not fully recover their previous grammatical state.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 10 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 1; 2023: 0; 2024: 1; 2025: 1; 2026: 1.
8 papers.
- 2022Can language models handle recursively nested grammatical structures? A case study on comparing models and humanscited by 41
- 2021How much pretraining data do language models need to learn syntax?cited by 21
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stackscited by 16
- 2021Syntactic Perturbations Reveal Representational Correlates of Hierarchical Phrase Structure in Pretrained Language Modelscited by 14
- 2021Assessing the Syntactic Capabilities of Transformer-based Multilingual Language Modelscited by 7
- 2024Experimental Contexts Can Facilitate Robust Semantic Property Inference in Language Models, but Inconsistentlycited by 3
- 2026Humans and transformer LMs: Abstraction drives language learningcited by 2
- 2025The Dog the Cat Chased Stumped the Model: Measuring When Language Models Abandon Structure for Shortcutscited by 0
- 2026Humans and transformer LMs: Abstraction drives language learning18 Mar 2026
- 2025The Dog the Cat Chased Stumped the Model: Measuring When Language Models Abandon Structure for Shortcuts23 Oct 2025
- 2024Experimental Contexts Can Facilitate Robust Semantic Property Inference in Language Models, but Inconsistently12 Jan 2024
- 2022Can language models handle recursively nested grammatical structures? A case study on comparing models and humans27 Oct 2022
- 2021How much pretraining data do language models need to learn syntax?7 Sep 2021
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stacks5 Sep 2021
- 2021Assessing the Syntactic Capabilities of Transformer-based Multilingual Language Models10 May 2021
- 2021Syntactic Perturbations Reveal Representational Correlates of Hierarchical Phrase Structure in Pretrained Language Models15 Apr 2021