mlsanityData to 7 Oct 2026

Unraveling Syntax: Language Modeling and the Substructure of Grammars

arXiv 2510.02524 ↗First posted 2 Oct 2025cs.CL cs.FL cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

While language models achieve impressive results, their learning dynamics are far from understood. Many domains of interest -- such as natural language syntax, coding languages, arithmetic -- are captured by context-free grammars (CFGs). In this work, we extend prior work on neural language modeling of CFGs in a novel direction: how language modeling behaves with respect to CFG substructure, namely subgrammars. We define subgrammars, and prove a set of fundamental theorems connecting language modeling and subgrammars. We show that language modeling loss recurses linearly over its top-level subgrammars; applied recursively, the loss decomposes into losses for "irreducible" subgrammars. Under additional assumptions, and empirically, parametrized models learn subgrammars in parallel, unlike children who first master simple substructures. We find that subgrammar pretraining can improve final performance, but only for tiny models relative to the grammar, while alignment analyses show that pretraining consistently leads to internal representations that better reflect the grammar's substructure.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 2 Oct 2025.

Builds on

25 of 38 references.

References · 25

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2019Similarity of Neural Network Representations Revisitedcited by 1,695
  4. 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
  5. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  6. 2015Neural Module Networkscited by 375
  7. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  8. 2016Benefits of depth in neural networkscited by 248
  9. 2022Neural Networks and the Chomsky Hierarchycited by 214
  10. 2022Analyzing Transformers in Embedding Spacecited by 131
  11. 2023What Formal Languages Can Transformers Express? A Surveycited by 120
  12. 2018Curriculum Learning by Transfer Learning: Theory and Experiments with Deep Networkscited by 113
13 more
  1. 2024Information Flow Routes: Automatically Interpreting Language Models at Scalecited by 92
  2. 2017One Model To Learn Them Allcited by 86
  3. 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
  4. 2020Learning Parities with Neural Networkscited by 77
  5. 2019Sequential Neural Networks as Automatacited by 54
  6. 2022Can language models handle recursively nested grammatical structures? A case study on comparing models and humanscited by 41
  7. 2023Language acquisition: do children and language models follow similar learning stages?cited by 40
  8. 2024Towards a theory of how the structure of language is acquired by deep neural networkscited by 38
  9. 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 36
  10. 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 33
  11. 2023Formal Aspects of Language Modelingcited by 7
  12. 2024Learning High-Degree Parities: The Crucial Role of the Initializationcited by 7
  13. 2017Subregular Complexity and Deep Learningcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.