arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00874cs.LGcs.NAmath.NA
收藏

使用更少比特训练:通过随机舍入解锁边缘 LLMs 训练

Training with Fewer Bits: Unlocking Edge LLMs Training with Stochastic Rounding

Department of Electrical and Electronic Engineering(电子与电气工程系)

Taowen Liu, Marta Andronic, Deniz Gündüz, George A. Constantinides

AI总结:

本文理论与实证研究了随机舍入在量化 LLM 训练中的作用,发现增大 batch size 可补偿反向传播中的精度降低,且权重与激活量化对梯度方差影响不同,为边缘 LLMs 训练提供依据。

摘要:

LLM 训练资源消耗大。量化训练提升了计算与内存效率,但引入了量化噪声,可能阻碍收敛并降低模型精度。Stochastic Rounding (SR) 作为确定性舍入的理论替代方案,提供了无偏梯度估计。然而,它与其他训练因素(尤其是 batch size)的交互仍待深入探索。本文对使用 SR 的 mini-batch SGD 进行了理论与实证研究,表明增大 batch size 能补偿反向传播中精度的降低。此外,量化权重与激活值以不同方式影响梯度方差。实验验证了这些理论见解。

英文摘要:

LLM training is resource-intensive. Quantized training improves computational and memory efficiency but introduces quantization noise, which can hinder convergence and degrade model accuracy. Stochastic Rounding (SR) has emerged as a theoretically attractive alternative to deterministic rounding, offering unbiased gradient estimates. However, its interaction with other training factors -- especially batch size -- remains under explored. In this paper, we present a theoretical and empirical study of mini-batch stochastic gradient descent (SGD) with SR, showing that increased batch sizes can compensate for reduced precision during back-propagation. Furthermore, we show that quantizing weights and activations impacts gradient variance in distinct ways. Our experiments validate these theoretical insights.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑