Scaling Laws for Precision
2024/11/07 by Tanishq Kumar, Kumar, Tanishq, Zachary Ankner +16 · 7 voices · 29 citations
Arts and Humanities · #Philosophy and History of Science
paper · pdf · doi:10.48550/arxiv.2411.04330
Abstract
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.
Cited by
Discussions
- Scaling Laws for Precision
yes, llama models are harder to quantize. They’re “overtrained”, on more data, so quantization removes a lot of critical information
arxiv.org/abs/2411.04330 [bsky, 22 points, 1 comments]
- This recent paper arxiv.org/abs/2411.04330 suggests that it’s model specific depending on their size and number of tokens trained on. A small model trained with lots of tokens doesn’t compress as well [bsky, 16 points, 1 comments]
- Scaling Laws for Precision
arxiv.org/abs/2411.04330
From Tanishq Kumar, Aditi Ragunathan et al.
Studies effects of precision & quantization of parameters for training and inference in DL / language [bsky, 8 points, 0 comments]
- Scaling Laws for Precision [hn, 2 points, 0 comments]
- AI- Lot's of imprecise data, quantization to lower the number of bits, in a large model can be worse than a small model with precise data.
arxiv.org/pdf/2411.04330 [bsky, 0 points, 0 comments]
- Thx. So if post-training quant was abandoned (relevant: arxiv.org/pdf/2411.04330), there might be new rationale for low-power (not just low latency) phys compute? Aside: holding params constant, I wou [bsky, 0 points, 1 comments]
- Pick of the week @fbk-mt.bsky.social Super interesting paper on the limitations of quantization, demonstrating how post-training quantization scales poorly in data. arxiv.org/abs/2411.04330 [bsky, 0 points, 0 comments]
Related