Scaling laws and representation learning in simple hierarchical languages: Transformers versus convolutional architectures
- 23 December 2025
- journal article
- Published by American Physical Society (APS) in Physical Review E
- Vol. 112 (6) , 065312
Abstract
How do neural language models acquire a language's structure when trained for next-token prediction? We address this question by deriving theoretical scaling laws for neural network performance on synthetic datasets generated by the random hierarchy model (RHM)-an ensemble of probabilistic context-free grammars designed to capture the hierarchical structure of natural language while remaining analytically tractable. Previously, we developed a theory of representation learning based on data correlations that explains how deep learning models capture the hierarchical structure of the data sequentially, one layer at a time. Here, we extend our theoretical framework to account for architectural differences. In particular, we predict and empirically validate that convolutional networks, whose structure aligns with that of the generative process through locality and weight sharing, enjoy a faster scaling of performance compared to transformer models, which rely on global self-attention mechanisms. This finding clarifies the architectural biases underlying neural scaling laws and highlights how representation learning is shaped by the interaction between model architecture and the statistical properties of data.Keywords
All Related Versions
Funding Information
- H2020 Marie Skłodowska-Curie Actions (101154584)
This publication has 18 references indexed in Scilit:
- A phase transition in diffusion models reveals the hierarchical nature of dataProceedings of the National Academy of Sciences of the United States of America, 2025
- Explaining neural scaling lawsProceedings of the National Academy of Sciences of the United States of America, 2024
- Locality defeats the curse of dimensionality in convolutional teacher–student scenarios*Journal of Statistical Mechanics: Theory and Experiment, 2022
- Geometric compression of invariant manifolds in neural networksJournal of Statistical Mechanics: Theory and Experiment, 2021
- Asymptotic learning curves of kernel methods: empirical data versus teacher–student paradigmJournal of Statistical Mechanics: Theory and Experiment, 2020
- Random Language ModelPhysical Review Letters, 2019
- Information, Physics, and Computation2009
- Optimal Rates for the Regularized Least-Squares AlgorithmFoundations of Computational Mathematics, 2006
- Natural languages and context-free languagesLinguistics and Philosophy, 1982
- The theory of equilibrium critical phenomenaReports on Progress in Physics, 1967