Rethinking Conventional Wisdom in Machine Learning: From Generalization to Scaling

Lechao XiaoarXiv 2024 · DOI

Introduction

For decades, the central challenge in machine learning was overcoming overfitting. Practitioners operated in a "generalization-centric" paradigm, using relatively small datasets and large models. This created a "generalization gap" where performance on training data significantly outpaced performance on unseen test data. To bridge this gap, the community developed a suite of "Golden Rules"—regularization techniques like L2 weight decay, dropout, and small batch sizes—designed to prevent models from memorizing noise.

However, the rise of Large Language Models (LLMs) has fundamentally shifted the landscape. In the "scaling-centric" paradigm, datasets (like the whole of the internet) are often far larger than the model's capacity. Here, the primary enemy is not overfitting, but underfitting (approximation error). This research re-evaluates whether our established ML intuition still holds as we scale compute and data by orders of magnitude.

The Three Regimes of Machine Learning

The transition from classical methods to modern LLMs can be understood through three distinct regimes of model capacity relative to data scale.

The three regimes of machine learning: Skydiving (LLM scale), U-shaped (Classical ML), and Second-descent (ImageNet scale).
  1. U-shaped Regime (Classical ML): Characterized by undercapacity relative to the data. As model capacity increases, test error initially drops but eventually rises as the model begins to overfit the small training set.
  2. Second-descent Regime (ImageNet Scale): In the overcapacity regime, increasing model size further can lead to a second drop in test error, a phenomenon known as double descent. Here, generalization is still the primary focus.
  3. Skydiving Regime (Internet Scale): This is the domain of LLM pretraining. Because the model is heavily under-parameterized relative to the massive dataset, training and test losses "skydive" together. There is virtually no generalization gap, rendering many traditional regularization techniques obsolete.

Empirical Evidence: The Skydiving Regime

The "skydiving" effect is most visible when comparing models of different sizes on massive corpora like C4. In the scaling-centric regime, the training and evaluation curves become nearly indistinguishable as the model grows.

C4 Log Perplexity for 20M and 10B models. Note how the training and evaluation curves for the 10B model overlap, illustrating the skydiving regime.

As shown in Figure 6, while a smaller 20M model might show some separation between training and evaluation, a 10B model exhibits a tight alignment. This confirms that for large-scale pretraining, the model is primarily struggling to approximate the data distribution rather than struggling to generalize from a limited sample.

The Curse of the Scaling Law Crossover

Perhaps the most critical finding is the concept of the Scaling Law Crossover. The paper demonstrates that a technique which appears superior at a small scale can become detrimental as compute increases.

For instance, while gradient normalization might improve performance in low-compute settings, its scaling curve can intersect and fall behind a simpler baseline at higher exaflops. This "crossover" makes it dangerous to rely on small-scale experiments to select architectures or hyperparameters for billion-parameter models. Naive extrapolation fails because the "best" method is scale-dependent.

Key Results and Deviations from Conventional Wisdom

The study systematically tested several pillars of traditional ML on the C4 dataset:

  • L2 Regularization: While L2 boosted ImageNet accuracy by 6%, it provided zero benefit for LLM pretraining. In the skydiving regime, there is no "gap" for regularization to close.
  • Learning Rate (LR) Strategies: Traditional wisdom suggests pushing the LR to the edge of instability to aid generalization. In scaling, the optimal LR is often significantly lower than the maximum stable one. The paper found that scaling LR inversely with model width outperformed constant rates, but only after a specific crossover point.
  • Batch Size: The "smaller is better" rule for generalization does not hold. Instead, there is a U-shaped optimal batch size that shifts as the total compute scale increases.

Conclusion

As we move deeper into the scaling-centric era, we must acknowledge that our "generalization-centric" intuition is often a liability. Techniques designed to fight overfitting are frequently counterproductive when the real challenge is minimizing approximation error at scale. The existence of scaling law crossovers necessitates a new set of guiding principles that accounts for the fundamental shifts in behavior that occur as we add orders of magnitude of compute.

Summary updated

Abstract

The remarkable success of large language pretraining and the discovery of scaling laws signify a paradigm shift in machine learning. Notably, the primary objective has evolved from minimizing generalization error to reducing approximation error, and the most effective strategy has transitioned from regularization (in a broad sense) to scaling up models. This raises a critical question: Do the established principles that proved successful in the generalization-centric era remain valid in this new era of scaling? This paper examines several influential regularization-based principles that may no longer hold true in the scaling-centric, large language model (LLM) era. These principles include explicit L2 regularization and implicit regularization through small batch sizes and large learning rates. Additionally, we identify a new phenomenon termed ``scaling law crossover,'' where two scaling curves intersect at a certain scale, implying that methods effective at smaller scales may not generalize to larger ones. Together, these observations highlight two fundamental questions within this new paradigm: $\bullet$ Guiding Principles for Scaling: If regularization is no longer the primary guiding principle for model design, what new principles are emerging to guide scaling? $\bullet$ Model Comparison at Scale: How to reliably and effectively compare models at the scale where only a single experiment is feasible?
BibTeX
@misc{xiao2024rethinking,
  author = {Lechao Xiao},
  title = {{Rethinking Conventional Wisdom in Machine Learning: From Generalization to Scaling}},
  year = {2024},
  eprint = {2409.15156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.15156},
}
Figure