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

DevFeed: [Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding](<https://devfeed.tech/articles/where-when-and-how-many-bits-scaling-laws-for-sgd-with-stochastic-rounding-111545.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41074>)

Author: Zhichao Wang, Michael W. Mahoney

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [scaling laws](<https://devfeed.tech/topics/scaling-laws.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [also](<https://devfeed.tech/tags/also.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [batch](<https://devfeed.tech/tags/batch.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [bits](<https://devfeed.tech/tags/bits.md>), [budget](<https://devfeed.tech/tags/budget.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [compute](<https://devfeed.tech/tags/compute.md>), [consider](<https://devfeed.tech/tags/consider.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [design](<https://devfeed.tech/tags/design.md>), [error](<https://devfeed.tech/tags/error.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [scaling-laws](<https://devfeed.tech/tags/scaling-laws.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The study derives matched prediction-error bounds for stochastic rounding in a two-layer linear network trained by mini-batch SGD on fresh Gaussian data with power-law spectra. Forward and backward features are rounded independently. Rounding only forward features preserves exact-arithmetic compute scaling, while rounding backward features changes it and can affect learning-rate schedule design. Uniform parameter averaging can shift which computation benefits from higher precision and when. The analysis also identifies bit requirements for target accuracy and shows that, at a fixed compute budget, lower precision can improve prediction when gains from a larger model or longer training outweigh added rounding error. Simulations and MLP and small-transformer experiments explore these tradeoffs beyond the theoretical model.

## Source excerpt

arXiv:2610.41074v1 Announce Type: new 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.