Learning curves theory for hierarchically compositional data with power-law distributed features
Francesco Cagnetta, Hyunmo Kang, Matthieu Wyart
TL;DR
The paper investigates how hierarchical compositional structure and Zipf-distributed features shape learning curves under data-limited regimes. By integrating the Random Hierarchy Model with Zipf feature frequencies into a PCFG framework, it derives that classification learning curves become power laws with exponent $a/(1+a)$, while next-token prediction’s asymptotic exponent depends on the hierarchy but not on $a$. The authors support these predictions with theoretical analyses and empirical experiments using deep CNNs and Transformers on RHM-generated data, showing pre-asymptotic phases governed by hierarchy and asymptotic behavior set by rule distributions. The work provides a principled link between data geometry, hierarchical generation, and scaling laws, offering insights into why language models exhibit certain scaling patterns and how architecture choice (CNNs vs. Transformers) interacts with data structure.
Abstract
Recent theories suggest that Neural Scaling Laws arise whenever the task is linearly decomposed into power-law distributed units. Alternatively, scaling laws also emerge when data exhibit a hierarchically compositional structure, as is thought to occur in language and images. To unify these views, we consider classification and next-token prediction tasks based on probabilistic context-free grammars -- probabilistic models that generate data via a hierarchy of production rules. For classification, we show that having power-law distributed production rules results in a power-law learning curve with an exponent depending on the rules' distribution and a large multiplicative constant that depends on the hierarchical structure. By contrast, for next-token prediction, the distribution of production rules controls the local details of the learning curve, but not the exponent describing the large-scale behaviour.
