现代计算单元混合精度算术的确定性与概率性舍入误差分析
Deterministic and Probabilistic Rounding Error Analysis for Mixed-Precision Arithmetic on Modern Computing Units
AI总结:
针对现代计算单元混合精度算术的舍入误差问题,提出确定性与概率性分析方法,对FMA、MPFMA及NVIDIA Tensor核心等操作进行误差量化,实验显示概率边界对矩阵乘法的误差估计比确定性边界紧近一个数量级。
摘要:
现代计算机架构支持低精度算术,这为采用混合精度算法以实现高计算吞吐量和降低能耗提供了机遇。随着越来越多的科学计算利用专用硬件加速器,舍入误差的风险增加,可能会损害模型的可靠性。这种向硬件优化的低精度计算的转变凸显了舍入误差分析的重要性,以确保性能提升不会以精度为代价,尤其是在高风险的科学应用中。在这项工作中,我们对融合乘加(FMA)、混合精度FMA(MPFMA)和NVIDIA Tensor核心等广泛使用的操作进行了舍入误差分析。我们提出了一种确定性和概率性方法来量化累积的舍入误差。我们进行了数值实验,使用带有随机数据的Tensor核心执行乘加操作(MAC)和矩阵-矩阵乘法。结果表明,对于矩阵-矩阵乘法,概率边界产生的估计比确定性边界紧近一个数量级。
英文摘要:
Modern computer architectures support low-precision arithmetic, which present opportunities for the adoption of mixed-precision algorithms to achieve high computational throughput and reduce energy consumption. As a growing number of scientific computations leverage specialized hardware accelerators, the risk of rounding errors increases, potentially compromising the reliability of models. This shift towards hardware-optimized, low-precision computations highlights the importance of rounding error analysis to ensure that performance gains do not come at the expense of accuracy, especially in high-stakes scientific applications. In this work, we conduct rounding error analysis on widely used operations such as fused multiply-add (FMA), mixed-precision FMA (MPFMA), and NVIDIA Tensor cores. We present a deterministic and probabilistic approach to quantifying the accumulated rounding errors. Numerical experiments are presented to perform the multiply and accumulate operation (MAC) and matrix-matrix multiplication using Tensor cores with random data. We show that probabilistic bounds produce tighter estimates by nearly an order of magnitude compared to deterministic ones for matrix-matrix multiplication.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。