Abstract
Deep learning (DL) creates impactful advances following a virtuous recipe: model architecture search, creating large training data sets, and scaling computation. It is widely believed that growing training sets and models should improve accuracy and result in better products. As DL application domains grow, we would like a deeper understanding of the relationships between training set size, computational scale, and model accuracy improvements to advance the state-of-the-art. This paper presents a large scale empirical characterization of generalization error and model size growth as training sets grow. We introduce a methodology for this measurement and test four machine learning domains: machine translation, language modeling, image processing, and speech recognition. Our empirical results show power-law generalization error scaling across a breadth of factors, resulting in power-law exponents---the "steepness" of the learning curve---yet to be explained by theoretical work. Further, model improvements only shift the error but do not appear to affect the power-law exponent. We also show that model size scales sublinearly with data size. These scaling relationships have significant implications on deep learning research, practice, and systems. They can assist model debugging, setting accuracy targets, and decisions about data set growth. They can also guide computing system design and underscore the importance of continued computational scaling.
Introduction
The deep learning community has long relied on a "virtuous recipe": better architectures, larger datasets, and increased compute. While it is intuitively understood that more data improves performance, the precise relationship between data scale, model size, and error reduction has remained largely anecdotal. Theoretical bounds like VC dimension often prove too loose for practical application, predicting scaling exponents that do not match empirical observations. This research seeks to transform the "more data" heuristic into a predictable engineering science, allowing for the estimation of costs and requirements necessary to reach the next state-of-the-art (SOTA) milestone.
Methodology
The authors developed a rigorous framework to measure scaling across four domains: machine translation, language modeling, image classification, and speech recognition. The methodology involved:
- Data Sharding: Subdividing large SOTA datasets into shards spanning several orders of magnitude.
- Hyperparameter Optimization: Performing grid searches for each shard to find the "best-fit" model, specifically removing regularization to identify the minimum model size capable of overfitting the data scale.
- Power-Law Fitting: Modeling generalization error ($\epsilon$) as a function of training samples ($m$) using the form $\epsilon(m) \propto \alpha m^{\beta_g}$.
- Model Size Scaling: Modeling the growth of parameters ($s$) relative to data size as $s(m) \propto \alpha m^{\beta_p}$.
The Power-Law of Generalization Error
The study reveals that generalization error follows a predictable power-law relationship with training set size across all tested domains. Interestingly, the "steepness" of these learning curves (the exponent $\beta_g$) appears to be a fundamental property of the domain itself.
Empirical exponents were found to be significantly shallower than the $-0.5$ or $-1.0$ predicted by some theories, typically ranging between $-0.07$ and $-0.35$. For example, language modeling proved particularly "hard," with very small exponents ($-0.06$ to $-0.09$), indicating that massive data increases are required for marginal accuracy gains.
Architectural Impact and Model Size Scaling
A key finding is that while architectural improvements (such as adding layers or changing cell types) can lower the error rate, they do not change the scaling exponent. In other words, a better architecture shifts the learning curve downward but does not "rotate" it to provide better returns on additional data.
Furthermore, the research demonstrates that to maintain optimal performance as data grows, model size must also grow, but it does so sublinearly. The parameter scaling exponent $\beta_p$ typically falls between 0.5 and 0.9, suggesting that doubling the data does not require a doubling of model parameters.
Implications and Conclusion
These scaling laws provide a powerful tool for deep learning practitioners. They enable predictable debugging: if a model's performance deviates from the expected power-law curve, it suggests that hyperparameters are poorly tuned for that specific scale. Moreover, they guide the design of future computing systems by underscoring the necessity of continued computational scaling to handle the sublinear but still significant growth in model size required by ever-larger datasets.
While the "why" behind these specific exponents remains a theoretical challenge, the empirical evidence suggests that deep learning progress is more predictable than previously thought. Future work may explore whether techniques like curriculum learning or data filtering can eventually "break" these laws to achieve faster-than-power-law improvements.
Summary updated