Grammar Sparsity Sets How Transformers Learn Random Languages
Abstract
We study language acquisition by transformers trained on the Random Language Model: a synthetic hierarchical grammar with random production rules, whose sparsity is controlled by a single parameter and whose conditional entropies are known exactly. On depth-two grammars, we find that sparsity sets both the order and the speed of learning. Dense grammars are learnt one level at a time: a token is predicted from its sibling after steps and from the full context only after , so the two stages are separated by a plateau that widens with . Sparse grammars are learnt all at once, at , with a smaller exponent than even the first stage of a dense one. The exponents and already appear at depth one, where we derive them for a linear model trained with Adam.
Create a lesson
Related papers
Diversity in Unity, Theory in Practice: Hierarchical Multitask Benchmarks for Chinese Minority Languages
Shared title terminology · Yijie Li, Xi Cao, Yuan Sun et al.
Explainable Emotion and Mental Health Reasoning in Large Language Models Using Theories of Emotion
Shared title terminology · Tadesse Destaw Bela, Iqra Ameer, Helena Gómez Adorno et al.
Single-Coordinate Activation Steering for Controllable Social Stance in Language Models
Shared title terminology · Naman Chawla, Chhavi Dhiman
LM2 Compiling a Language Model into Another Model Weights
Shared title terminology · Naman Chawla, Chhavi Dhiman
HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models
Shared title terminology · Xudong Wang, Siwei Cheng, Haozhe Hu
From Vanishing Gradients to Recursive Self-Improvement: Evaluating the Most Influential Papers in Large Language Model Evolution (1997-2026)
Shared title terminology · Saadh Jawwadh