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

随机舍入误差及其偏差对低精度浮点运算梯度下降法收敛性的影响

On the influence of stochastic roundoff errors and their bias on the convergence of the gradient descent method with low-precision floating-point computation

Eindhoven University of Technology(埃因霍温理工大学);Università di Pisa(比萨大学)

Lu Xia, Stefano Massei, Michiel E. Hochstenbach, Barry Koren

摘要:

当在低精度下实现梯度下降方法时,采用随机舍入方案有助于防止由消失梯度效应引起的收敛停滞。无偏随机舍入通过保留与其相对大小成比例的概率的小更新来产生零偏差。该研究为梯度下降法在低精度计算中的停滞现象提供了理论解释。此外,我们提出了两个新的随机舍入方案,以更大的概率交易零偏置属性,以保持小梯度。我们的方法产生一个恒定的舍入偏差,平均而言,在于下降的方向。对于凸问题,我们证明了所提出的舍入方法通常对梯度下降的收敛速度有有益的影响。我们验证了我们的理论分析,通过比较性能的各种舍入方案时,优化多项逻辑回归模型和训练一个简单的神经网络与8位浮点格式。

英文摘要:

When implementing the gradient descent method in low precision, the employment of stochastic rounding schemes helps to prevent stagnation of convergence caused by the vanishing gradient effect. Unbiased stochastic rounding yields zero bias by preserving small updates with probabilities proportional to their relative magnitudes. This study provides a theoretical explanation for the stagnation of the gradient descent method in low-precision computation. Additionally, we propose two new stochastic rounding schemes that trade the zero bias property with a larger probability to preserve small gradients. Our methods yield a constant rounding bias that, on average, lies in a descent direction. For convex problems, we prove that the proposed rounding methods typically have a beneficial effect on the convergence rate of gradient descent. We validate our theoretical analysis by comparing the performances of various rounding schemes when optimizing a multinomial logistic regression model and when training a simple neural network with an 8-bit floating-point format.

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

↑