mlsanityData to 14 Oct 2026

Sometimes I am a Tree: Data Drives Unstable Hierarchical Generalization

arXiv 2412.04619 ↗First posted 5 Dec 2024cs.LG cs.CLcited by 10

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  3. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  4. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
  5. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  6. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
  7. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
  8. 2020Underspecification Presents Challenges for Credibility in Modern Machine Learningcited by 496
  9. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
  10. 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 354
  11. 2018Stress Test Evaluation for Natural Language Inferencecited by 213
  12. 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 187
21 more
  1. 2020What shapes feature representations? Exploring datasets, architectures, and trainingcited by 126
  2. 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 124
  3. 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 92
  4. 2023A Tale of Two Circuits: Grokking as Competition of Sparse and Dense Subnetworkscited by 83
  5. 2020Does syntax need to grow on trees? Sources of hierarchical inductive bias in sequence-to-sequence networkscited by 72
  6. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
  7. 2023Grokking of Hierarchical Structure in Vanilla Transformerscited by 53
  8. 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 41
  9. 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 35
  10. 2018Revisiting the poverty of the stimulus: hierarchical generalization without a hierarchical bias in recurrent neural networkscited by 33
  11. 2022Coloring the Blank Slate: Pre-training Imparts a Hierarchical Inductive Bias to Sequence-to-sequence Modelscited by 28
  12. 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
  13. 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
  14. 2024Critical Data Size of Language Models from a Grokking Perspectivecited by 24
  15. 2023How to Plant Trees in Language Models: Data and Architectural Effects on the Emergence of Syntactic Inductive Biasescited by 23
  16. 2024Unified View of Grokking, Double Descent and Emergent Abilities: A Perspective from Circuits Competitioncited by 23
  17. 2020The Curse of Performance Instability in Analysis Datasets: Consequences, Source, and Suggestionscited by 22
  18. 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntaxcited by 22
  19. 2021Transformers Generalize Linearlycited by 19
  20. 2023Latent State Models of Training Dynamicscited by 16
  21. 2023ParaAMR: A Large-Scale Syntactically Diverse Paraphrase Dataset by AMR Back-Translationcited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 4.

10 papers.