Pushdown Layers: Encoding Recursive Structure in Transformer Language Models
Not on the map. Why?
Abstract (arXiv)
Recursion is a prominent feature of human language, and fundamentally challenging for self-attention due to the lack of an explicit recursive-state tracking mechanism. Consequently, Transformer language models poorly capture long-tail recursive structure and exhibit sample-inefficient syntactic generalization. This work introduces Pushdown Layers, a new self-attention layer that models recursive state via a stack tape that tracks estimated depths of every token in an incremental parse of the observed prefix. Transformer LMs with Pushdown Layers are syntactic language models that autoregressively and synchronously update this stack tape as they predict new tokens, in turn using the stack tape to softly modulate attention over tokens -- for instance, learning to "skip" over closed constituents. When trained on a corpus of strings annotated with silver constituency parses, Transformers equipped with Pushdown Layers achieve dramatically better and 3-5x more sample-efficient syntactic generalization, while maintaining similar perplexities. Pushdown Layers are a drop-in replacement for standard self-attention. We illustrate this by finetuning GPT2-medium with Pushdown Layers on an automatically parsed WikiText-103, leading to improvements on several GLUE text classification tasks.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 32 of its 46 references that are in the map. First posted on arXiv 29 Oct 2023.
Builds on
32 of 46 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 553
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
- 2018Targeted Syntactic Evaluation of Language Modelscited by 239
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2020A Systematic Assessment of Syntactic Generalization in Neural Language Modelscited by 163
- 2018Multilingual Constituency Parsing with Self-Attention and Pre-Trainingcited by 117
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
- 2016Recurrent Neural Network Grammarscited by 109
20 more
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
- 2018Linguistically-Informed Self-Attention for Semantic Role Labelingcited by 71
- 2014Grammar as a Foreign Languagecited by 70
- 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
- 2019Unsupervised Latent Tree Induction with Deep Inside-Outside Recursive Autoencoderscited by 60
- 2015Learning to Transduce with Unbounded Memorycited by 54
- 2019Unsupervised Recurrent Neural Network Grammarscited by 47
- 2022Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scalecited by 40
- 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 40
- 2016A Fast Unified Model for Parsing and Sentence Understandingcited by 34
- 2015Neural Random-Access Machinescited by 32
- 2019Memory-Augmented Recurrent Neural Networks Can Learn Generalized Dyck Languagescited by 31
- 2021Structural Guidance for Transformer Language Modelscited by 25
- 2017Effective Inference for Generative Neural Parsingcited by 24
- 2021Learning Hierarchical Structures with Differentiable Nondeterministic Stackscited by 16
- 2020Guiding Attention for Self-Supervised Learning with Transformerscited by 14
- 2019PaLM: A Hybrid Parser and Language Modelcited by 13
- 2015Dependency Recurrent Neural Language Models for Sentence Completioncited by 9
Built on by
Citing papers per year: 2024: 10; 2025: 4; 2026: 4.
18 papers.
Sort:
By area:
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
- 2024Mission: Impossible Language Modelscited by 31
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practicescited by 15
- 2024Generative Pretrained Structured Transformers: Unsupervised Syntactic Language Models at Scalecited by 9
- 2024Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Modelscited by 7
- 2024Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervisioncited by 4
- 2024Banyan: Improved Representation Learning with Explicit Structurecited by 3
- 2024Tree Transformers are an Ineffective Model of Syntactic Constituencycited by 3
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2024A Transformer with Stack Attentioncited by 2
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddingscited by 1
- 2025A Systematic Study of Compositional Syntactic Transformer Language Modelscited by 1
6 more
- 2025Referring Expressions as a Lens into Spatial Language Grounding in Vision-Language Modelscited by 1
- 2025Learning Model Successorscited by 0
- 2026Filling in the Mechanisms: How do LMs Learn Filler-Gap Dependencies under Developmental Constraints?cited by 0
- 2026GiLT: Augmenting Transformer Language Models with Dependency Graphscited by 0
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcriptscited by 0
- 2026Beyond Sequence Order: Syntax-Informed Positional Embeddings for Transformerscited by 0
- 2026Beyond Sequence Order: Syntax-Informed Positional Embeddings for Transformers6 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026GiLT: Augmenting Transformer Language Models with Dependency Graphs15 May 2026
- 2026Filling in the Mechanisms: How do LMs Learn Filler-Gap Dependencies under Developmental Constraints?15 Apr 2026
- 2025Referring Expressions as a Lens into Spatial Language Grounding in Vision-Language Models8 Nov 2025
- 2025A Systematic Study of Compositional Syntactic Transformer Language Models28 Jun 2025
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment16 Feb 2025
- 2025Learning Model Successors31 Jan 2025
- 2024Tree Transformers are an Ineffective Model of Syntactic Constituency25 Nov 2024
- 2024Banyan: Improved Representation Learning with Explicit Structure25 Jul 2024
- 2024Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Models24 Jul 2024
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024
6 more
- 2024A Transformer with Stack Attention7 May 2024
- 2024Generative Pretrained Structured Transformers: Unsupervised Syntactic Language Models at Scale13 Mar 2024
- 2024SynCode: LLM Generation with Grammar Augmentation3 Mar 2024
- 2024Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervision20 Feb 2024
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings9 Feb 2024
- 2024Mission: Impossible Language Models12 Jan 2024
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
- 2024Mission: Impossible Language Modelscited by 31
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practicescited by 15
- 2024Generative Pretrained Structured Transformers: Unsupervised Syntactic Language Models at Scalecited by 9
- 2024Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Modelscited by 7
- 2024Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervisioncited by 4
- 2024Banyan: Improved Representation Learning with Explicit Structurecited by 3
- 2024Tree Transformers are an Ineffective Model of Syntactic Constituencycited by 3
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignmentcited by 3
- 2024A Transformer with Stack Attentioncited by 2
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddingscited by 1
- 2025A Systematic Study of Compositional Syntactic Transformer Language Modelscited by 1
12 most cited of 17 All 17 (JSON)
- 2026Beyond Sequence Order: Syntax-Informed Positional Embeddings for Transformers6 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026GiLT: Augmenting Transformer Language Models with Dependency Graphs15 May 2026
- 2026Filling in the Mechanisms: How do LMs Learn Filler-Gap Dependencies under Developmental Constraints?15 Apr 2026
- 2025A Systematic Study of Compositional Syntactic Transformer Language Models28 Jun 2025
- 2025CARMA: Enhanced Compositionality in LLMs via Advanced Regularisation and Mutual Information Alignment16 Feb 2025
- 2025Learning Model Successors31 Jan 2025
- 2024Tree Transformers are an Ineffective Model of Syntactic Constituency25 Nov 2024
- 2024Banyan: Improved Representation Learning with Explicit Structure25 Jul 2024
- 2024Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Models24 Jul 2024
- 2024A Survey on Compositional Learning of AI Models: Theoretical and Experimental Practices13 Jun 2024
- 2024A Transformer with Stack Attention7 May 2024
12 newest of 17 All 17 (JSON)