Characterizing Intrinsic Compositionality in Transformers with Tree Projections
Not on the map. Why?
Abstract (arXiv)
When trained on language data, do transformers learn some arbitrary computation that utilizes the full capacity of the architecture or do they learn a simpler, tree-like computation, hypothesized to underlie compositional meaning systems like human languages? There is an apparent tension between compositional accounts of human language understanding, which are based on a restricted bottom-up computational process, and the enormous success of neural models like transformers, which can route information arbitrarily between different parts of their input. One possibility is that these models, while extremely flexible in principle, in practice learn to interpret language hierarchically, ultimately building sentence representations close to those predictable by a bottom-up, tree-structured model. To evaluate this possibility, we describe an unsupervised and parameter-free method to functionally project the behavior of any transformer into the space of tree-structured networks. Given an input sentence, we produce a binary tree that approximates the transformer's representation-building process and a score that captures how "tree-like" the transformer's behavior is on the input. While calculation of this score does not require training any additional models, it provably upper-bounds the fit between a transformer and any tree-structured approximation. Using this method, we show that transformers for three different tasks become more tree-like over the course of training, in some cases unsupervisedly recovering the same trees as supervised parsers. These trees, in turn, are predictive of model behavior, with more tree-like models generalizing better on tests of compositional generalization.
Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). Builds on 19 of its 32 references that are in the map. First posted on arXiv 2 Nov 2022.
Builds on
19 of 32 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2015Domain-Adversarial Training of Neural Networkscited by 3,023
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2013Domain Generalization via Invariant Feature Representationcited by 622
- 2015Neural Module Networkscited by 375
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 305
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2018Targeted Syntactic Evaluation of Language Modelscited by 239
- 2018Improving Text-to-SQL Evaluation Methodologycited by 133
- 2016Recurrent Neural Network Grammarscited by 109
7 more
- 2018Ordered Neurons: Integrating Tree Structures into Recurrent Neural Networkscited by 101
- 2019Measuring Compositionality in Representation Learningcited by 84
- 2017A Minimal Span-Based Neural Constituency Parsercited by 59
- 2018Finding Syntax in Human Encephalography with Beam Searchcited by 41
- 2020Assessing Phrasal Representation and Composition in Transformerscited by 41
- 2018RNNs Implicitly Implement Tensor Product Representationscited by 25
- 2022Revisiting the Compositional Generalization Abilities of Neural Sequence Modelscited by 20
Built on by
Citing papers per year: 2023: 19; 2024: 11; 2025: 6; 2026: 4.
40 papers.
Sort:
By area:
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 102
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
- 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
- 2024What does the Knowledge Neuron Thesis Have to do with Knowledge?cited by 49
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
- 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 33
- 2023Coarse-to-Fine Contrastive Learning in Image-Text-Graph Space for Improved Vision-Language Compositionalitycited by 32
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
- 2024Language Models as Models of Languagecited by 24
- 2023How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biasescited by 23
28 more
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?cited by 21
- 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
- 2023Large Linguistic Models: Investigating LLMs' metalinguistic abilitiescited by 18
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Modelscited by 18
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetimecited by 14
- 2025Position: A Theory of Deep Learning Must Include Compositional Sparsitycited by 13
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalizationcited by 10
- 2025Mechanisms vs. Outcomes: Probing for Syntax Fails to Explain Performance on Targeted Syntactic Evaluationscited by 7
- 2025Analyzing the Inner Workings of Transformers in Compositional Generalizationcited by 6
- 2023Data Factors for Better Compositional Generalizationcited by 5
- 2024Compositional Generalization Across Distributional Shifts with Sparse Tree Operationscited by 5
- 2023Approximating CKY with Transformerscited by 3
- 2023Modularity in Deep Learning: A Surveycited by 3
- 2023Emergence and Function of Abstract Representations in Self-Supervised Transformerscited by 3
- 2024Sneaking Syntax into Transformer Language Models with Tree Regularizationcited by 3
- 2023StrAE: Autoencoding for Pre-Trained Embeddings using Explicit Structurecited by 2
- 2026Structure Before Collapse: Transient semantic geometry in next-token predictioncited by 2
- 2023Syntax-guided Neural Module Distillation to Probe Compositionality in Sentence Embeddingscited by 1
- 2023Semantic Composition in Visually Grounded Language Modelscited by 1
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddingscited by 1
- 2024Using Shapley interactions to understand how models use structurecited by 1
- 2025Rethinking Memorization Measures and their Implications in Large Language Modelscited by 1
- 2026Fine-tuning vs. In-context Learning in Large Language Models: A Formal Language Learning Perspectivecited by 1
- 2023Compositional Fusion of Signals in Data Embeddingcited by 0
- 2025Exploring Compositional Generalization (in COGS/ReCOGS_pos) by Transformers using Restricted Access Sequence Processing (RASP)cited by 0
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AIcited by 0
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectivescited by 0
- 2026Compositional Sparsity as an Inductive Bias for Neural Architecture Designcited by 0
- 2026Structure Before Collapse: Transient semantic geometry in next-token prediction25 Jun 2026
- 2026Compositional Sparsity as an Inductive Bias for Neural Architecture Design14 May 2026
- 2026Fine-tuning vs. In-context Learning in Large Language Models: A Formal Language Learning Perspective25 Apr 2026
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectives14 Feb 2026
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AI27 Dec 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025Position: A Theory of Deep Learning Must Include Compositional Sparsity3 Jul 2025
- 2025Mechanisms vs. Outcomes: Probing for Syntax Fails to Explain Performance on Targeted Syntactic Evaluations20 Jun 2025
- 2025Exploring Compositional Generalization (in COGS/ReCOGS_pos) by Transformers using Restricted Access Sequence Processing (RASP)21 Apr 2025
- 2025Analyzing the Inner Workings of Transformers in Compositional Generalization21 Feb 2025
- 2024Compositional Generalization Across Distributional Shifts with Sparse Tree Operations18 Dec 2024
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalization5 Dec 2024
28 more
- 2024Sneaking Syntax into Transformer Language Models with Tree Regularization28 Nov 2024
- 2024Geometric Signatures of Compositionality Across a Language Model's Lifetime2 Oct 2024
- 2024Language Models as Models of Language13 Aug 2024
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?7 Jun 2024
- 2024What does the Knowledge Neuron Thesis Have to do with Knowledge?3 May 2024
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformers25 Apr 2024
- 2024Using Shapley interactions to understand how models use structure19 Mar 2024
- 2024Inducing Systematicity in Transformers by Attending to Structurally Quantized Embeddings9 Feb 2024
- 2024Self-attention Networks Localize When QK-eigenspectrum Concentrates3 Feb 2024
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reduction21 Dec 2023
- 2023Emergence and Function of Abstract Representations in Self-Supervised Transformers8 Dec 2023
- 2023Compositional Fusion of Signals in Data Embedding18 Nov 2023
- 2023Data Factors for Better Compositional Generalization8 Nov 2023
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Models30 Oct 2023
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Models29 Oct 2023
- 2023Modularity in Deep Learning: A Survey2 Oct 2023
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMs13 Sep 2023
- 2023How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biases31 May 2023
- 2023Grokking of Hierarchical Structure in Vanilla Transformers30 May 2023
- 2023Coarse-to-Fine Contrastive Learning in Image-Text-Graph Space for Improved Vision-Language Compositionality23 May 2023
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structures23 May 2023
- 2023Semantic Composition in Visually Grounded Language Models15 May 2023
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpaca15 May 2023
- 2023StrAE: Autoencoding for Pre-Trained Embeddings using Explicit Structure9 May 2023
- 2023Approximating CKY with Transformers3 May 2023
- 2023Large Linguistic Models: Investigating LLMs' metalinguistic abilities1 May 2023
- 2023Injecting structural hints: Using language models to study inductive biases in language learning25 Apr 2023
- 2023Syntax-guided Neural Module Distillation to Probe Compositionality in Sentence Embeddings21 Jan 2023
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 121
- 2023Interpretability at Scale: Identifying Causal Mechanisms in Alpacacited by 102
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
- 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
- 2024What does the Knowledge Neuron Thesis Have to do with Knowledge?cited by 49
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
- 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 33
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
- 2024Language Models as Models of Languagecited by 24
- 2023How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biasescited by 23
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?cited by 21
- 2024Self-attention Networks Localize When QK-eigenspectrum Concentratescited by 19
12 most cited of 36 All 36 (JSON)
- 2026Structure Before Collapse: Transient semantic geometry in next-token prediction25 Jun 2026
- 2026Compositional Sparsity as an Inductive Bias for Neural Architecture Design14 May 2026
- 2026Fine-tuning vs. In-context Learning in Large Language Models: A Formal Language Learning Perspective25 Apr 2026
- 2026Evaluating Adjective-Noun Compositionality in LLMs: Functional vs Representational Perspectives14 Feb 2026
- 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AI27 Dec 2025
- 2025Position: A Theory of Deep Learning Must Include Compositional Sparsity3 Jul 2025
- 2025Mechanisms vs. Outcomes: Probing for Syntax Fails to Explain Performance on Targeted Syntactic Evaluations20 Jun 2025
- 2025Exploring Compositional Generalization (in COGS/ReCOGS_pos) by Transformers using Restricted Access Sequence Processing (RASP)21 Apr 2025
- 2025Analyzing the Inner Workings of Transformers in Compositional Generalization21 Feb 2025
- 2024Compositional Generalization Across Distributional Shifts with Sparse Tree Operations18 Dec 2024
- 2024Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalization5 Dec 2024
- 2024Sneaking Syntax into Transformer Language Models with Tree Regularization28 Nov 2024
12 newest of 36 All 36 (JSON)