arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.03837math.NAcs.NA
收藏

随机舍入在数值算法中的积极作用

The Positive Effects of Stochastic Rounding in Numerical Algorithms

El-Mehdi El Arar, Devan Sohier, Pablo de Oliveira Castro, Eric Petit

摘要:

最近,随机舍入(SR)已在专用硬件中实现,但大多数当前的计算节点还不支持这种舍入模式。一些工程经验说明随机舍入在各个领域,如神经网络和常微分方程的好处。对于求和、内积或矩阵向量乘等算法,SR提供的概率误差界优于传统的确定性误差界。在本文中,我们扩展了这一理论基础,更广泛地采用SR的计算机体系结构。首先,我们分析了两种SR模式的偏差:SR接近和SR向上或向下。我们证明了欧拉的前向方法的IEEE-754默认舍入模式和SR向上或向下的累积舍入误差的迭代和SR接近,是无偏的,没有一个案例研究。其次,我们证明了一个O($\sqrt$ n)概率界的霍纳多项式估计方法与SR的前向误差,改进了已知的确定性O(n)界。

英文摘要:

Recently, stochastic rounding (SR) has been implemented in specialized hardware but most current computing nodes do not yet support this rounding mode. Several works empirically illustrate the benefit of stochastic rounding in various fields such as neural networks and ordinary differential equations. For some algorithms, such as summation, inner product or matrixvector multiplication, it has been proved that SR provides probabilistic error bounds better than the traditional deterministic bounds. In this paper, we extend this theoretical ground for a wider adoption of SR in computer architecture. First, we analyze the biases of the two SR modes: SR-nearness and SR-up-or-down. We demonstrate on a case-study of Euler's forward method that IEEE-754 default rounding modes and SR-up-or-down accumulate rounding errors across iterations and that SR-nearness, being unbiased, does not. Second, we prove a O($\sqrt$ n) probabilistic bound on the forward error of Horner's polynomial evaluation method with SR, improving on the known deterministic O(n) bound.

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

↑