Landscape-Aware Growing: The Power of a Little LAG

Stefani Karp, Nikunj Saunshi, Sobhan Miryoosefi, Sashank J. Reddi, Sanjiv KumararXiv 2024 · DOI

Introduction

Training Large Language Models (LLMs) from scratch is a massive computational undertaking. To optimize resources, researchers often employ "growing" or "stacking" techniques, where a smaller pretrained model is expanded by adding layers. A critical decision in this process is selecting the right growth strategy—determining where to insert layers and how to initialize them. Historically, the "best" strategy was thought to be the one that minimizes validation loss at the exact moment of growth (step zero). This paper challenges that assumption, introducing Landscape-Aware Growing (LAG) and demonstrating that early training dynamics are far more predictive of long-term success than initialization loss.

The LAG Methodology

The core of LAG is a "wait and see" approach to model expansion. Rather than relying on instantaneous metrics, LAG evaluates candidate growth strategies after a brief period of training. The methodology follows three steps:

  1. Define a Search Space: Researchers create a pool of diverse growth operators, varying layer placement (e.g., stacking at the end vs. interleaving) and initialization methods.
  2. Short-term "Lag" Training: All candidate strategies are trained in parallel for a very small number of steps ($k$).
  3. Selection: The strategy with the lowest validation loss at step $k$ is selected to continue training to completion.

The Fallacy of Initialization Loss

The authors' empirical analysis reveals that validation loss at the moment of growth (step 0) is a poor indicator of a model's final performance. They found a weak Pearson correlation (approximately -0.51) between initial loss and final loss. A strategy that appears "clean" at initialization may create a difficult "loss landscape" that causes the model to plateau early.

Figure 1: The weak correlation between validation loss at the moment of growth (step 500,000) and final performance (step 600,000).

The Phase Transition and Predictive Power

The research identifies a critical "Phase 1" adaptation period occurring within the first 50 to 200 steps post-growth. During this window, the model's internal representations adjust to the new architecture. Once this phase transition is complete, the model enters a stable "Phase 2" where training dynamics become highly predictable. By step 5,000, the correlation between current validation loss and final performance jumps to a staggering 0.98. LAG capitalizes on this by making selections after the model has "found its stride" in Phase 2.

Figure 2: The strong linear correlation between early validation loss (after 5,000 steps of 'lag') and final performance.

Key Results and Impact

The effectiveness of LAG was demonstrated on BERT and 1.1B parameter UL2 models:

  • BERT Growing: LAG@200 successfully identified the optimal "Oracle" strategy among 30 candidates, whereas initialization-based selection failed.
  • UL2 Scaling: In large-scale experiments, LAG@2000 achieved near-zero "relative regret," finding strategies nearly as good as the theoretical best.
  • Efficiency: When applied iteratively, LAG outperformed vanilla stacking, achieving a final validation loss of 1.5301 compared to 1.5432.

Conclusion

While running multiple candidates for a few hundred steps requires an upfront compute investment, this "lag" is negligible compared to the total training budget. By prioritizing the training landscape over immediate loss preservation, LAG provides a robust framework for efficiently scaling the next generation of large-scale neural networks.

Summary updated

BibTeX
@misc{karp2024landscape,
  author = {Stefani Karp and Nikunj Saunshi and Sobhan Miryoosefi and Sashank J. Reddi and Sanjiv Kumar},
  title = {{Landscape-Aware Growing: The Power of a Little LAG}},
  year = {2024},
  eprint = {2406.02469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02469},
}
Figure