mlsanityData to 14 Oct 2026

Towards a theory of how the structure of language is acquired by deep neural networks

arXiv 2406.00048 ↗First posted 28 May 2024cs.CL cond-mat.dis-nn cs.LGcited by 39

Not on the map. Why?

Abstract (arXiv)

How much data is required to learn the structure of a language via next-token prediction? We study this question for synthetic datasets generated via a Probabilistic Context-Free Grammar (PCFG) -- a tree-like generative model that captures many of the hierarchical structures found in natural languages. We determine token-token correlations analytically in our model and show that they can be used to build a representation of the grammar's hidden variables, the longer the range the deeper the variable. In addition, a finite training set limits the resolution of correlations to an effective range, whose size grows with that of the training set. As a result, a Language Model trained with increasingly many examples can build a deeper representation of the grammar's structure, thus reaching good performance despite the high dimensionality of the problem. We conjecture that the relationship between training set size and effective range of correlations holds beyond our synthetic datasets. In particular, our conjecture predicts how the scaling law for the test loss behaviour with training set size depends on the length of the context window, which we confirm empirically in Shakespeare's plays and Wikipedia articles.

Key facts. Cited by 39 papers in the map (data through 14 Oct 2026). Builds on 32 of its 57 references that are in the map. First posted on arXiv 28 May 2024.

Builds on

32 of 57 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2020Scaling Laws for Neural Language Modelscited by 6,586
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2022Emergent Abilities of Large Language Modelscited by 2,512
  8. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  9. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  10. 2023Large Language Modelscited by 780
  11. 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 523
  12. 2021Explaining Neural Scaling Lawscited by 363
20 more
  1. 2022Predictability and Surprise in Large Generative Modelscited by 210
  2. 2020Feature Learning in Infinite-Width Neural Networkscited by 190
  3. 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
  4. 2023A Theory for Emergence of Complex Skills in Language Modelscited by 113
  5. 2024A Dynamical Model of Neural Scaling Lawscited by 111
  6. 2024A Phase Transition in Diffusion Models Reveals the Hierarchical Nature of Datacited by 93
  7. 2020Does syntax need to grow on trees? Sources of hierarchical inductive bias in sequence-to-sequence networkscited by 72
  8. 2023How Deep Neural Networks Learn Compositional Data: The Random Hierarchy Modelcited by 71
  9. 2024The Benefits of Reusing Batches for Gradient Descent in Two-Layer Networks: Breaking the Curse of Information and Leap Exponentscited by 52
  10. 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
  11. 2016Criticality in Formal Languages and Statistical Physicscited by 35
  12. 2016Deep Learning and Hierarchal Generative Modelscited by 25
  13. 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
  14. 2018A Provably Correct Algorithm for Deep Learning that Actually Workscited by 20
  15. 2024U-Nets as Belief Propagation: Efficient Classification, Denoising, and Diffusion in Generative Hierarchical Modelscited by 17
  16. 2022What Can Be Learnt With Wide Convolutional Neural Networks?cited by 16
  17. 2020LSTMs Compose (and Learn) Bottom-Upcited by 11
  18. 2023Autocorrelations Decay in Texts and Applicability Limits of Language Modelscited by 9
  19. 2024How Deep Networks Learn Sparse and Hierarchical Data: the Sparse Random Hierarchy Modelcited by 7
  20. 2019Emergence of order in random languagescited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 6; 2025: 12; 2026: 21.

39 papers.

Sort:

By area:

  1. 2025How Linguistics Learned to Stop Worrying and Love the Language Modelscited by 51
  2. 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
  3. 2024Probing the Latent Hierarchical Structure of Data via Diffusion Modelscited by 26
  4. 2025How Compositional Generalization and Creativity Improve as Diffusion Models are Trainedcited by 25
  5. 2025Bigger Isn't Always Memorizing: Early Stopping Overparameterized Diffusion Modelscited by 25
  6. 2024A distributional simplicity bias in the learning dynamics of transformerscited by 24
  7. 2026Deriving Neural Scaling Laws from the statistics of natural languagecited by 23
  8. 2024How transformers learn structured data: insights from hierarchical filteringcited by 18
  9. 2025Learning curves theory for hierarchically compositional data with power-law distributed featurescited by 17
  10. 2024Analyzing Neural Scaling Laws in Two-Layer Networks with Power-Law Data Spectracited by 9
  11. 2026Provable Learning of Random Hierarchy Models and Hierarchical Shallow-to-Deep Chainingcited by 6
  12. 2025Scaling Laws and Representation Learning in Simple Hierarchical Languages: Transformers vs. Convolutional Architecturescited by 5
27 more
  1. 2026Deep networks learn to parse uniform-depth context-free languages from local statisticscited by 5
  2. 2026Deep Learning of Compositional Targets with Hierarchical Spectral Methodscited by 5
  3. 2025Unraveling Syntax: Language Modeling and the Substructure of Grammarscited by 4
  4. 2026Scale Dependent Data Duplicationcited by 4
  5. 2026Jailbreak Scaling Laws for Large Language Models: Polynomial-Exponential Crossovercited by 4
  6. 2024Bilinear Sequence Regression: A Model for Learning from Long Sequences of High-dimensional Tokenscited by 3
  7. 2026Towards Worst-Case Guarantees with Scale-Aware Interpretabilitycited by 3
  8. 2026Positive Distribution Shift as a Framework for Understanding Tractable Learningcited by 3
  9. 2026Incremental Learning of Sparse Attention Patterns in Transformerscited by 2
  10. 2026Sampling Data with Chains of Forward-Backward Diffusion Stepscited by 2
  11. 2026Learn from your own latents and not from tokens: A sample-complexity theorycited by 2
  12. 2026Statistical Properties of Training & Generalizationcited by 2
  13. 2026Structure Before Collapse: Transient semantic geometry in next-token predictioncited by 2
  14. 2025Rethinking the Relationship between the Power Law and Hierarchical Structurescited by 1
  15. 2026Learning with Shallow Neural Networks on Cluster-Structured Featurescited by 1
  16. 2026Self-supervised local learning rules learn the hidden hierarchical structure of high-dimensional datacited by 1
  17. 2025Testing Transformer Learnability on the Arithmetic Sequence of Rooted Treescited by 0
  18. 2025Language models as tools for investigating the distinction between possible and impossible natural languagescited by 0
  19. 2025Large language models have learned to use languagecited by 0
  20. 2025Large language models are not about natural languagecited by 0
  21. 2025Linguists should learn to love speech-based deep learning modelscited by 0
  22. 2026Are Language Models Models?cited by 0
  23. 2026Across the Levels of Analysis: Explaining Predictive Processing in Humans Requires More Than Machine-Estimated Probabilitiescited by 0
  24. 2026You Can't Fight in Here! This is BBS!cited by 0
  25. 2026Not-So-Strange Love: Language Models and Generative Linguistic Theories are More Compatible than They Appearcited by 0
  26. 2026Critical Percolation as a Synthetic Data Model for Interpretabilitycited by 0
  27. 2026A Solvable Theory of Pre-training Data Poisoning: Regime-Dependent Scaling Exponentscited by 0