考虑偏差和方差的概率性舍入误差分析用于浮点运算
Bias- and Variance-Aware Probabilistic Rounding Error Analysis for Floating-Point Arithmetic
AI总结:
本文提出一种考虑偏差和方差的概率性舍入误差分析方法,通过显式置信参数和方差意识的后向误差界,改进低精度浮点运算中的误差分析。
摘要:
概率性舍入误差分析可以提供比经典最坏情况理论更精确的界限,但现有结果通常依赖于零均值舍入误差且常隐含置信参数。本文重新审视在矩意识设置下的概率性舍入误差分析。我们首先推导出一个置信度校准的Higham和Mary[16]界限的改写形式,使其置信参数显式化。然后我们引入基于log(1+δ)的前两个矩的方差意识的概率性后向误差界,其中δ是相对舍入误差。这使分析能够适应具有偏置的舍入误差模型,而不是依赖零均值假设。为了说明这一框架,我们研究了均匀模型和log空间Beta模型的舍入误差,后者提供了一种简单表示偏置的方式。这种视角表明,概率性舍入误差界限的增长并非普遍:接近零均值的区域恢复sqrt(n)-样的行为,而具有偏置的模型可以表现出更快的累积。在单精度和半精度下对点积、稀疏矩阵向量积和随机边界值问题的CUDA实验显示,所提出的框架在低精度区域特别有用,其中确定性界限过于保守,而偏置意识建模更符合观察到的误差增长。
英文摘要:
Probabilistic rounding error analysis can yield much sharper bounds than classical worst-case theory, but existing results typically rely on zero-mean rounding errors and often leave the confidence parameter implicit. This work revisits probabilistic rounding error analysis in a moment-aware setting. We first derive a confidence-calibrated reformulation of the Higham and Mary [16] bound that makes its confidence parameter explicit. We then introduce a variance-informed probabilistic backward error bound based on the first two moments of $\log(1+δ)$, where $δ$ is the relative rounding error. This allows the analysis to accommodate biased rounding error models rather than relying on a zero-mean assumption. To illustrate this framework, we study both a uniform model and a log-space $\operatorname{Beta}$ model for rounding errors, the latter of which provides a simple way to represent bias. This perspective shows that the growth of probabilistic rounding error bounds is not universal: near-zero-mean regimes recover $\sqrt{n}$-like behavior, while biased models can exhibit faster accumulation. $\texttt{CUDA}$ experiments in single and half precision on dot products, sparse matrix-vector products, and a stochastic boundary-value problem show that the proposed framework is especially useful in low-precision regimes where deterministic bounds are overly conservative and where bias-aware modeling better matches observed error growth.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。