How to Allocate Your Tokens? Scaling Laws with Training Steps and Batch Size
Summary
A new "three-term scaling law" is introduced, designed to optimize token allocation during large language model training. This law explicitly incorporates model size, total training data, training steps, and batch size. Researchers found that this proposed law accurately predicts the scaling behavior of optimal batch sizes. A significant advantage is its ability to be robustly fitted using a considerably smaller number of training runs, as it effectively utilizes data from runs with suboptimal batch sizes. Furthermore, the three-term law can be employed to derive scaling laws for suboptimal batch sizes and aligns with prior empirical observations concerning the critical batch size in model training.
Key takeaway
For Machine Learning Engineers optimizing large language model training, this three-term scaling law offers a more efficient approach to resource allocation. You can utilize its ability to predict optimal batch sizes and derive scaling laws even from suboptimal training runs. This means you can achieve robust scaling law fitting with significantly fewer experimental runs, accelerating your model development and reducing computational costs.
Key insights
The three-term scaling law optimizes token allocation by integrating model size, training steps, and batch size, enabling robust fitting with fewer runs.
Principles
- Scaling laws can incorporate training steps and batch size.
- Suboptimal batch size data improves scaling law robustness.
- Optimal batch size scaling can be recovered.
Method
The paper proposes fitting a three-term scaling law that explicitly splits training data into training steps and batch size, using a large set of training runs, including those with suboptimal batch sizes.
In practice
- Use the three-term law for optimal batch size prediction.
- Derive scaling laws for suboptimal batch sizes.
- Reduce training runs needed for scaling law fitting.
Topics
- Scaling Laws
- Large Language Models
- Training Optimization
- Batch Size Optimization
- Token Allocation
- Model Training Efficiency
Best for: Research Scientist, AI Scientist, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.