arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.11708math.NAcs.MScs.NA
收藏

快速混合精度实数求值

Fast Mixed-Precision Real Evaluation

Artem Yadrov, Pavel Panchekha

AI总结:

针对实值表达式高精度求值中统一精度的浪费问题,提出快速混合精度分配算法,利用低精度结果确定分配方案,较Sollya平均提速1.72倍,困难点达5.21倍,多数运算用低精度实现提速。

摘要:

在计算数学、物理学和数值学中,高精度地计算实值表达式是关键基础模块。典型实现以统一精度计算整个表达式,不断将精度翻倍直至得到足够准确的结果,这存在浪费:通常仅少数运算需高精度执行,而表达式主体可更快计算。但迄今此类非统一精度分配的计算不切实际。我们提出一种快速新算法推导该分配,利用低精度计算结果分析确定混合精度分配以得到足够准确的结果。我们的实现Reval相比最先进的Sollya工具平均提速1.72倍,在最困难输入点提速达5.21倍。对调优与未调优精度的分析显示,提速源于多数运算采用更低精度,非统一精度分配带来的额外优化也有作用。

英文摘要:

Evaluating real-valued expressions to high precision is a key building block in computational mathematics, physics, and numerics. A typical implementation evaluates the whole expression in a uniform precision, doubling that precision until a sufficiently-accurate result is achieved. This is wasteful: usually only a few operations really need to be performed at high precision, and the bulk of the expression could be computed much faster. However, such non-uniform precision assignments have, to date, been impractical to compute. We propose a fast new algorithm for deriving such precision assignments. The algorithm leverages results computed at lower precisions to analytically determine a mixed-precision assignment that will result in a sufficiently-accurate result. Our implementation, Reval, achieves an average speed-up of 1.72x compared to the state-of-the-art Sollya tool, with the speed-up increasing to 5.21x on the most difficult input points. An examination of the precisions used with and without precision tuning shows that the speed-up results from assigning lower precisions for the majority of operations, though additional optimizations enabled by the non-uniform precision assignments also play a role.

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

↑