ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
93
Citations
11
Influential Citations
International Conference on Learning Representations
Venue
2024
Year
Low precision training and inference affect both the quality and cost of language models, but current scaling laws do not account for this. In this work, we devise"precision-aware"scaling laws for both training and inference. We propose that training in lower precision reduces the model's"effective parameter count,"allowing us to predict the additional loss incurred from training in low precision and post-train quantization. For inference, we find that the degradation introduced by post-training quantization increases as models are trained on more data, eventually making additional pretraining data actively harmful. For training, our scaling laws allow us to predict the loss of a model with different parts in different precisions, and suggest that training larger models in lower precision may be compute optimal. We unify the scaling laws for post and pretraining quantization to arrive at a single functional form that predicts degradation from training and inference in varied precisions. We fit on over 465 pretraining runs and validate our predictions on model sizes up to 1.7B parameters trained on up to 26B tokens.
This paper addresses a critical gap in scaling law research: the impact of numerical precision on model quality and cost. As AI practitioners push toward larger models, low precision training (e.g., FP16, INT8) is essential for reducing memory and compute, but existing scaling laws ignore precision effects. By introducing precision-aware scaling laws, the authors enable practitioners to predict the loss incurred from low precision training and quantization, directly informing decisions on precision allocation for cost-efficient model development.
The finding that post-training quantization degrades more with more training data is particularly striking—it suggests that for heavily trained models, quantization can undo some benefits of additional data. This has immediate implications for deployment: models trained on massive datasets may require higher precision or more careful quantization strategies to maintain quality.
The paper demonstrates that their precision-aware scaling laws accurately predict loss for models trained with mixed precisions. Key quantitative findings include: (1) training in lower precision reduces effective parameter count, leading to predictable loss increases; (2) post-training quantization degradation grows with training data volume, making additional data harmful beyond a point; (3) for a fixed compute budget, training larger models in lower precision can achieve lower loss than training smaller models in higher precision. The unified scaling law fits well across all tested configurations.
This work bridges a crucial gap between theoretical scaling laws and practical low precision training, offering a framework for optimizing precision choices in large language model development. It challenges the conventional wisdom that more data always helps when using quantization, and provides a tool for compute-optimal precision allocation. For the AI field, this could lead to more efficient use of hardware resources, enabling larger models within fixed budgets and reducing the environmental impact of training.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba