How to Allocate Your Tokens? Scaling Laws with Training Steps and Batch Size

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

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

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

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.