Deep networks learn to parse uniform-depth context-free languages from local statistics
Not on the map. Why?
Abstract (arXiv)
Understanding how the structure of language can be learned from sentences alone is a central question in both cognitive science and machine learning. Studies of the internal representations of Large Language Models (LLMs) support their ability to parse text when predicting the next word, while representing semantic notions independently of surface form. Yet, which data statistics make these feats possible, and how much data is required, remain largely unknown. Probabilistic context-free grammars (PCFGs) provide a tractable testbed for studying these questions. However, prior work has focused either on the post-hoc characterization of the parsing-like algorithms used by trained networks; or on the learnability of PCFGs with fixed syntax, where parsing is unnecessary. Here, we (i) introduce a tunable class of PCFGs in which both the degree of ambiguity and the correlation structure across scales can be controlled; (ii) provide a learning mechanism -- an inference algorithm inspired by the structure of deep convolutional networks -- that links learnability and sample complexity to specific language statistics; and (iii) validate our predictions empirically across deep convolutional and transformer-based architectures. Overall, we propose a unifying framework where correlations at different scales lift local ambiguities, enabling the emergence of hierarchical representations of the data.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 16 of its 50 references that are in the map. First posted on arXiv 31 Jan 2026.
Builds on
16 of 50 references.
References · 16
- 2017Attention Is All You Needcited by 59,932
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2018Dissecting Contextual Word Embeddings: Architecture and Representationcited by 146
- 2024A Phase Transition in Diffusion Models Reveals the Hierarchical Nature of Datacited by 88
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
- 2023How Deep Neural Networks Learn Compositional Data: The Random Hierarchy Modelcited by 70
- 2023Do Transformers Parse while Predicting the Masked Word?cited by 48
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 43
- 2024Towards a theory of how the structure of language is acquired by deep neural networkscited by 38
- 2024A polar coordinate system represents syntax in large language modelscited by 24
- 2025How Compositional Generalization and Creativity Improve as Diffusion Models are Trainedcited by 24
- 2018A Provably Correct Algorithm for Deep Learning that Actually Workscited by 19
4 more
- 2024U-Nets as Belief Propagation: Efficient Classification, Denoising, and Diffusion in Generative Hierarchical Modelscited by 17
- 2025Scaling Laws and Representation Learning in Simple Hierarchical Languages: Transformers vs. Convolutional Architecturescited by 5
- 2025Unraveling Syntax: Language Modeling and the Substructure of Grammarscited by 4
- 2024Sneaking Syntax into Transformer Language Models with Tree Regularizationcited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Jailbreak Scaling Laws for Large Language Models: Polynomial-Exponential Crossovercited by 2
- 2026Statistical Properties of Training & Generalizationcited by 2
- 2026Learn from your own latents and not from tokens: A sample-complexity theorycited by 1
- 2026Sampling Data with Chains of Forward-Backward Diffusion Stepscited by 0
- 2026Statistical Properties of Training & Generalization18 Jun 2026
- 2026Learn from your own latents and not from tokens: A sample-complexity theory26 May 2026
- 2026Sampling Data with Chains of Forward-Backward Diffusion Steps26 May 2026
- 2026Jailbreak Scaling Laws for Large Language Models: Polynomial-Exponential Crossover11 Mar 2026