随机舍入下和积算法的误差分析
Error Analysis of Sum-Product Algorithms under Stochastic Rounding
AI总结:
本文提出一种基于鞅的通用方法,自动为具有多线性误差的计算方案构造概率误差界,并将其推广到成对求和、Horner算法及Karatsuba多项式乘法,在随机舍入下将误差界从O(nu)改进为O(√n u)。
摘要:
数值计算的质量可以通过其前向误差来衡量,而寻找良好的误差界通常具有挑战性。对于若干算法并使用随机舍入(SR),概率分析已被证明是获得紧致误差界的有效替代方法。该分析考虑误差的分布,并评估算法在平均意义上的性能。利用鞅和Azuma-Hoeffding不等式,它提供的误差界以一定概率成立,并且量级为O(√n u),而非确定性的最坏情况界O(nu),其中n是运算次数,u是单位舍入误差。在本文中,我们提出了一种通用方法,能够为任何基于加法、减法和乘法且具有多线性误差的计算方案自动构造鞅。我们将这一推广应用于先前已用SR研究过的算法,如成对求和和Horner算法,并证明了等价的结果。我们还分析了一个此前未被研究过的算法——Karatsuba多项式乘法,该算法表明该方法能够处理被重复使用的中间计算结果。
英文摘要:
The quality of numerical computations can be measured through their forward error, for which finding good error bounds is challenging in general. For several algorithms and using stochastic rounding (SR), probabilistic analysis has been shown to be an effective alternative for obtaining tight error bounds. This analysis considers the distribution of errors and evaluates the algorithm's performance on average. Using martingales and the Azuma-Hoeffding inequality, it provides error bounds that are valid with a certain probability and in O($\sqrt$nu) instead of deterministic worst-case bounds in O(nu), where n is the number of operations and u is the unit roundoff. In this paper, we present a general method that automatically constructs a martingale for any computation scheme with multi-linear errors based on additions, subtractions, and multiplications. We apply this generalization to algorithms previously studied with SR, such as pairwise summation and the Horner algorithm, and prove equivalent results. We also analyze a previously unstudied algorithm, Karatsuba polynomial multiplication, which illustrates that the method can handle reused intermediate computations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。