Scaling Laws for Precision

Tanishq Kumar, Zachary Ankner, Benjamin F. Spector, Blake Bordelon, Niklas Muennighoff, Mansheej Paul, Cengiz Pehlevan, Christopher Ré, Aditi Raghunathan

TL;DR

This paper introduces "precision-aware" scaling laws that unify model size, data, and bit-precision for both training and inference. The most striking finding: for models destined for post-training quantization, adding more training data can eventually increase final loss, making overtraining actively harmful at inference time.

What Problem Does This Paper Address?

Standard scaling laws, like the famous "Chinchilla" laws, treat model size ($N$) and training data ($D$) as the primary levers for performance. However, they ignore a third critical factor: precision ($P$). As the industry moves toward training in FP8 and serving in 4-bit or even lower, we lack a principled way to predict the tradeoffs between bits, parameters, and tokens.

Specifically, the authors tackle two main questions:

  1. How does the degradation from post-training quantization (PTQ) scale with model size and data?
  2. How should we allocate a compute budget across parameters, data, and precision during training to achieve the lowest possible loss?

Methods

The authors propose a "precision-aware" functional form for scaling laws. The core idea is that training in lower precision reduces a model's effective parameter count ($N_{eff}$). They model $N_{eff}$ as a saturating exponential function of the bit-width, allowing them to substitute $N$ with $N_{eff}$ in the standard Chinchilla loss formula.

To validate this, they performed an extensive empirical sweep:

  • 465 pretraining runs ranging from 3-bit to 16-bit precision.
  • Model sizes up to 1.7B parameters and data budgets up to 26B tokens.
  • Exploration of both Quantization-Aware Training (QAT) (weights only) and Low-Precision Training (weights, activations, and attention all quantized).
  • Testing multiple quantization methods, including GPTQ, AWQ, and simple round-to-nearest (RTN).

Datasets

The primary training and evaluation were conducted on the Dolma V1.7 dataset, using a standard Transformer++ architecture. For robustness checks and ablations, they also utilized the C4 dataset.

Key Insights and Ideas

  • Overtraining makes models brittle: As models are trained on more data (increasing the $D/N$ ratio), they become significantly more sensitive to post-training quantization. Beyond a certain "critical data size," adding more training tokens actually makes the quantized model worse.
  • Precision and Parameters are Interchangeable: The authors show that a smaller model in high precision can achieve the same loss as a larger model in lower precision, governed by the $N_{eff}$ relationship.
  • 7-8 Bits is the "Sweet Spot": When jointly optimizing for $N$, $D$, and $P$ under a fixed compute budget, the optimal training precision is generally independent of the total budget and sits around 7-8 bits for integer quantization. This suggests that current 16-bit training is suboptimal, but the race to sub-4-bit training might also be counterproductive.
  • Fixed-Size Models Need More Bits: If you are constrained to a specific model size (e.g., to fit on a specific GPU) but have a massive data budget, the compute-optimal precision actually increases logarithmically with the amount of data.
Figure 1: Schematic of key findings. (Left) Training a fixed model size to various data budgets in BF16 and quantizing weights at the end. We find that degradation due to post-train quantization increases with tokens seen during pretraining, so that eventually additional pretraining data can be harmful. (Right) Our scaling suggests training larger models in lower precision can be compute-optimal according to the cost model in Section 4.3. Weights, activations, attention quantized, all models trained on the same data budget, details in Appendix J.

Key Results

The authors arrived at a Unified Scaling Law for Precision: $$L(N, D, P_{train}, P_{post}) = AN_{eff}^{-\alpha} + BD^{-\beta} + E + \delta_{PTQ}(N_{eff}, D, P_{train}, P_{post})$$

Key quantitative findings include:

  • PTQ Degradation: $\delta_{PTQ}$ increases as a power law of the token-to-parameter ratio ($D/N$).
  • Compute Optimality: Training larger models in lower precision (e.g., FP6 or FP8) often yields lower loss for the same compute budget than training smaller models in FP32.
  • Validation: Their scaling laws accurately predicted the performance of a 1.7B parameter model based on fits from much smaller models.
Figure 6: Scaling law predictions vs. empirical values, showing the 7-8 bit optimum and how optimal precision scales with data for fixed-size models.

Limitations and Future Work

  • Fixed Architecture: The study uses a standard Transformer++ throughout. Low-precision training often benefits from specific architectural tweaks (like extra LayerNorms) which were not the focus here.
  • Loss vs. Downstream Tasks: The scaling laws are fit to cross-entropy loss. While loss is a good proxy, it doesn't always perfectly capture performance on specific downstream reasoning or coding tasks.
  • Systems Overhead: The cost model assumes compute scales linearly with precision. In reality, hardware support for arbitrary bit-widths is limited, and systems overhead means halving precision rarely results in a perfect 2x speedup.
  • Future Work: The authors suggest extending this analysis to floating-point mantissa vs. exponent scaling and investigating the "edge of stability" as a theoretical explanation for why overtrained models become sensitive to noise.

Summary updated

BibTeX
@inproceedings{kumar2025scaling,
  author = {Tanishq Kumar and Zachary Ankner and Benjamin F. Spector and Blake Bordelon and Niklas Muennighoff and Mansheej Paul and Cengiz Pehlevan and Christopher Ré and Aditi Raghunathan},
  title = {{Scaling Laws for Precision}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=wg1PCg3CUP},
}
Figure