Skip to content
DraconiticResearch
Search Sources API
182,549 studies31 sourcesUpdated 40 min ago
PreprintCC BY 4.0arXiv

Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding

Abstract

Low-precision training reduces computation but introduces additional rounding error. We theoretically study how stochastic rounding (SR) affects prediction risk as model size, training time, and precision change. We consider a two-layer linear network with a fixed random first layer, trained by mini-batch SGD on fresh Gaussian data with power-law spectra. At each SGD step, the features used in forward and backward computations are rounded independently. We prove matched upper and lower bounds on prediction error for the final model and for uniform parameter averaging, with general learning-rate and precision schedules chosen before training. For fixed precisions and constant learning rates with parameter averaging, we derive how the smallest prediction error decreases with compute, and we identify model sizes and training times that achieve this optimal-compute scaling. Rounding only the forward features preserves the compute scaling of exact arithmetic, while rounding backward features changes it. Averaging parameters can change which computation needs higher precision and when higher precision is useful. Our results also give bit requirements for a given accuracy tolerance and show how backward rounding can change learning-rate schedule design. At a fixed compute budget, lower precision can improve prediction when the benefit of a larger model or longer training outweighs the additional SR-induced error. Model simulations illustrate these tradeoffs, and experiments with an MLP and a small transformer examine rounding choices beyond the theoretical model.

Related

  1. Where Is the Truth When AI Agents Disagree? Dependence-Aware Belief Propagation for Unsupervised Truth Discovery (Extended Version)
    Laure Berti-Equille
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  2. Scaling Local Solvers with the Many-Body Expansion
    Federico Zahariev, Amr Sabry
    arXivPreprintCC BY 4.0Full textOptimisation & controlarXiv
  3. Stochastic Gradient Methods with Online Scaling
    Wanyu Zhang, Wenzhi Gao, Yinyu Ye +1
    arXivPreprintCC BY 4.0Full textOptimisation & controlarXiv
  4. Explore Once, Evaluate Many: Multiple Policy Evaluation for Stochastic Linear Bandits
    Spyros Dragazis, Yilei Chen, Aldo Pacchiano
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  5. When do data mixtures improve scaling laws? Insights from high-dimensional regression
    Diyuan Wu, Lehan Chen, Theodor Misiakiewicz +1
    arXivPreprintCC BY-SA 4.0Full textStatisticsarXiv
BibTeX
@misc{wang2026where,
  title = {{Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding}},
  author = {Zhichao Wang and Michael W. Mahoney},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.41074},
  eprint = {2610.41074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41074},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding
AU  - Zhichao Wang
AU  - Michael W. Mahoney
PY  - 2026
DA  - 2026/10/29
PB  - arXiv
DO  - 10.48550/arxiv.2610.41074
UR  - https://arxiv.org/abs/2610.41074
AB  - Low-precision training reduces computation but introduces additional rounding error. We theoretically study how stochastic rounding (SR) affects prediction risk as model size, training time, and precision change. We consider a two-layer linear network with a fixed random first layer, trained by mini-batch SGD on fresh Gaussian data with power-law spectra. At each SGD step, the features used in forward and backward computations are rounded independently. We prove matched upper and lower bounds on prediction error for the final model and for uniform parameter averaging, with general learning-rate and precision schedules chosen before training. For fixed precisions and constant learning rates with parameter averaging, we derive how the smallest prediction error decreases with compute, and we identify model sizes and training times that achieve this optimal-compute scaling. Rounding only the forward features preserves the compute scaling of exact arithmetic, while rounding backward features changes it. Averaging parameters can change which computation needs higher precision and when higher precision is useful. Our results also give bit requirements for a given accuracy tolerance and show how backward rounding can change learning-rate schedule design. At a fixed compute budget, lower precision can improve prediction when the benefit of a larger model or longer training outweighs the additional SR-induced error. Model simulations illustrate these tradeoffs, and experiments with an MLP and a small transformer examine rounding choices beyond the theoretical model.
ER  -