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

有限精度随机取整的概率误差分析:霍纳算法与成对求和

Probabilistic Error Analysis of Limited-Precision Stochastic Rounding: Horner's Algorithm and Pairwise Summation

Sorbonne University(索邦大学);CNRS(法国国家科学研究中心);University of Leeds(利兹大学);Université de Rennes(雷恩大学);Inria(法国国家信息与自动化研究所)

El-Mehdi El Arar, Massimiliano Fasi, Silviu-Ioan Filip, Mantas Mikaitis

AI总结:

本文研究有限精度随机取整在霍纳算法和成对求和中的误差分析,探讨精度与硬件成本的平衡,提供理论与实验结果。

摘要:

随机取整(SR)是一种概率性舍入模式,用于减轻大规模数值计算中的误差,特别是在易出现停滞效应的情况下。除了数值分析外,SR在深度学习和气候建模等实际应用中也显示出显著优势。经典SR的定义要求算术运算的结果具有无限精度。这通常不可行,当可行时,所得到的硬件实现可能在能耗、面积和延迟方面成本过高。更实际的替代方法是有限精度SR,它仅要求算术运算的结果在较高、有限的精度下可用。我们扩展了之前在[El Arar等人,SIAM J. Sci. Comput. 47(5) (2025), B1227-B1249]中关于有限精度SR的工作,该工作开发了一个评估SR实现中精度与硬件资源成本权衡的框架。在该框架内,我们研究霍纳算法和成对求和,在使用有限精度SR的情况下提供理论见解和实际实验结果。

英文摘要:

Stochastic rounding (SR) is a probabilistic rounding mode that mitigates errors in large-scale numerical computations, especially when prone to stagnation effects. Beyond numerical analysis, SR has shown significant benefits in practical applications such as deep learning and climate modelling. The definition of classical SR requires that results of arithmetic operations are known with infinite precision. This is often not possible, and when it is, the resulting hardware implementation can become prohibitively expensive in terms of energy, area, and latency. A more practical alternative is limited-precision SR, which only requires that the outputs of arithmetic operations are available in higher, finite, precision. We extend previous work on limited-precision SR presented in [El Arar et al., SIAM J. Sci. Comput. 47(5) (2025), B1227-B1249], which developed a framework to evaluate the trade-off between accuracy and hardware resource cost in SR implementations. Within this framework, we study the Horner algorithm and pairwise summation, providing both theoretical insights and practical experiments in these settings when using limited-precision SR.

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

↑