随机舍入下 SGD 的缩放律研究:模型规模、训练时长与比特精度如何取舍
Where, When, and How Many Bits? Scaling Laws for SGD with Stochastic Rounding
AI 导读
arXiv 论文理论研究随机舍入(SR)低精度训练对预测风险的影响,对象为固定随机第一层的两层线性网络,用 mini-batch SGD 在幂律谱高斯数据上训练,并给出最终模型与参数均匀平均的匹配上下界。
正文 · 原文
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.
| Comments: | 67 pages, 6 figures |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Machine Learning (stat.ML) |
| Cite as: | arXiv:2610.41074 [cs.LG] |
| (or arXiv:2610.41074v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.41074 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Zhichao Wang [view email]
[v1]
Thu, 29 Oct 2026 23:42:46 UTC (351 KB)
来源:arXiv cs.AI · arxiv.org