Deriving Scaling Laws for OpenEuroLLM Models: Learning Rate, Batch Size and Loss

Machine LearningArtificial Intelligence

Summary

The authors studied how to best choose learning rates and batch sizes when training large language models on mostly English data. They looked at how these choices change with bigger models and more data and created a model to explain these changes. They also explored a specific learning rate schedule with three phases and checked if the best settings work the same way in each phase. Lastly, they examined how the training loss depends on model size and dataset size, testing ideas that consider both factors together. Their work provides guidelines for future model training and shares all their training runs publicly.

learning ratebatch sizelarge language modelspretrainingscaling lawsloss functionlearning rate schedulemodel capacitydataset sizehyperparameters

Authors

Niccolò Ajroldi, Diana Alexandra Onutu, Haider Al-Tahan, Jörg Franke, Sampo Pyysalo, Jenia Jitsev, Aaron Klein

Abstract

We study the scaling behavior of learning rate and batch size in pretraining dense large language models on English-prevalent corpora. Beyond scaling \textit{jointly optimal} learning rates and batch sizes, we investigate their \textit{marginal} evolution with model capacity and data scale and develop a model that captures these relationships. As we employ a Warmup-Stable-Decay learning rate schedule, we further investigate the gains from learning rate annealing over a broad range of hyperparameters settings, models and data budgets, and whether the optimal learning rate and batch size \textit{transfer} between the stable and decay phases. Finally, we characterize the dependence of loss on model capacity and dataset size, evaluating recently proposed scaling forms that explicitly model their interaction. We find these approaches particularly effective at capturing both undertraining and overtraining regimes across our experiments. This study establishes a first baseline and scaling procedure for the development of future OpenEuroLLM models. We open-source the complete collection of pretraining runs used in this study.