Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalization
Not on the map. Why?
Abstract (arXiv)
Early in training, LMs can behave like n-gram models, but eventually they often learn tree-based syntactic rules and generalize hierarchically out of distribution (OOD). We study this shift using controlled grammar-learning tasks: question formation and tense inflection. We find that a model learns to generalize hierarchically if its training data is _complex_-in particular, if it includes center-embedded clauses, a special syntactic structure. Under this definition, complex data drives hierarchical rules, while less complex data encourages shortcut learning in the form of n-gram-like linear rules. Furthermore, we find that a model uses rules to generalize, whether hierarchical or linear, if its training data is _diverse_-in particular, if it includes many distinct syntax trees in the training set. Under this definition, diverse data promotes stable rule learning, whereas less diverse data promotes memorization of individual syntactic sequences. Finally, intermediate diversity and intermediate complexity form an *unstable regime*, which is characterized by oscillatory learning dynamics and inconsistent behaviors across random seeds. These results highlight the central role of training data in shaping generalization and explain why competing strategies can lead to unstable outcomes.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 33 of its 54 references that are in the map. First posted on arXiv 5 Dec 2024.
Builds on
33 of 54 references.
References · 33
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
- 2020Underspecification Presents Challenges for Credibility in Modern Machine Learningcited by 496
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
- 2018Stress Test Evaluation for Natural Language Inferencecited by 213
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 187
21 more
- 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 124
- 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 92
- 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 83
- 2020Does syntax need to grow on trees? Sources of hierarchical inductive bias in sequence-to-sequence networkscited by 72
- 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
- 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
- 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 41
- 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 35
- 2018Revisiting the poverty of the stimulus: hierarchical generalization without a hierarchical bias in recurrent neural networkscited by 33
- 2022Coloring the Blank Slate: Pre-training Imparts a Hierarchical Inductive Bias to Sequence-to-sequence Modelscited by 28
- 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
- 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
- 2024Critical Data Size of Language Models from a Grokking Perspectivecited by 24
- 2023How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biasescited by 23
- 2024Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competitioncited by 23
- 2020The Curse of Performance Instability in Analysis Datasets: Consequences, Source, and Suggestionscited by 22
- 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntaxcited by 22
- 2021Transformers Generalize Linearlycited by 19
- 2023Latent State Models of Training Dynamicscited by 16
- 2023ParaAMR: A Large-Scale Syntactically Diverse Paraphrase Dataset by AMR Back-Translationcited by 11
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 4.
10 papers.
- 2024ICLR: In-Context Learning of Representationscited by 50
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuitcited by 49
- 2025Hidden Breakthroughs in Language Model Trainingcited by 15
- 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
- 2025Random Scaling of Emergent Capabilitiescited by 7
- 2026Position: Don't Just "Fix it in Post": A Science of AI Must Study Training Dynamicscited by 3
- 2026Structure Before Collapse: Transient semantic geometry in next-token predictioncited by 2
- 2026RL Excursions during Pre-Training: Re-examining Policy Optimization for LLM trainingcited by 1
- 2025Testing Transformer Learnability on the Arithmetic Sequence of Rooted Treescited by 0
- 2026Structure and Scale in Simplicial Sequence Modellingcited by 0
- 2026Structure Before Collapse: Transient semantic geometry in next-token prediction25 Jun 2026
- 2026Position: Don't Just "Fix it in Post": A Science of AI Must Study Training Dynamics3 Jun 2026
- 2026RL Excursions during Pre-Training: Re-examining Policy Optimization for LLM training2 Jun 2026
- 2026Structure and Scale in Simplicial Sequence Modelling31 May 2026
- 2025Testing Transformer Learnability on the Arithmetic Sequence of Rooted Trees1 Dec 2025
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Hidden Breakthroughs in Language Model Training18 Jun 2025
- 2025From Flat to Hierarchical: Extracting Sparse Representations with Matching Pursuit3 Jun 2025
- 2025Random Scaling of Emergent Capabilities24 Feb 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024