techlist.io

Compute Optimization

1 posts

OpenAI2020-01-222 min readCurated summary

Scaling laws for neural language models

The study examines how language model performance on cross-entropy loss scales with model size, dataset size, and training compute. It finds that performance follows simple power laws across more than seven orders of magnitude, with architectural details like width and depth mattering little within a wide range. Because larger models are more sample-efficient, the compute-optimal strategy is to train very large models on a relatively modest amount of data and stop well before convergence. ### Power-Law Scaling - Loss follows a power law in model size, dataset size, and training compute. - These trends hold across more than seven orders of magnitude. ### Architecture Matters Less Than Scale - Network width and depth have minimal effects on performance within a wide range. ### Overfitting and Training Speed - Simple equations describe how overfitting depends on model and dataset size. - Simple equations also describe how training speed depends on model size. ### Allocating a Fixed Compute Budget - The relationships above make it possible to determine the optimal way to divide a fixed compute budget. - Larger models are significantly more sample-efficient, so they reach a given loss with less data. - The most compute-efficient training therefore uses very large models trained on a relatively small dataset, and stops significantly before convergence. For teams with limited compute, the practical takeaway is to prioritize model size over dataset size and to avoid training to convergence.