Satire:为混合精度无循环程序中的浮点舍入误差计算严格界限
Satire: Computing Rigorous Bounds for Floating-Point Rounding Error in Mixed-Precision Loop-Free Programs
AI总结:
本文提出工具Satire,通过抽象引导优化和全局误差分析,为含条件语句与混合精度算术的无循环程序计算严格浮点舍入误差界限,并展示其在共轭梯度求解器设计中的应用。
摘要:
能够严格界定数值程序所表现出的整体舍入误差的技术,对于开发数值软件的各个社区而言具有重大意义。然而,当今可用的工具很少能够在误差分析中运用全局优化,对采用条件语句(一项基本需求)以及混合精度算术(一个具有重大未来意义的方向)的程序进行严格的误差界定。在本文中,我们提出了一个新工具来填补这一空白,同时采用抽象引导的优化方法,使设计者能够在误差界限的紧致性与分析时间的收益之间进行权衡——这在搜索设计备选方案时非常有用。我们首先介绍Satire的基本严格分析框架,然后展示如何扩展该框架以纳入抽象、条件语句和混合精度算术。我们首先描述Satire的设计及其在一组基准示例上的性能。然后我们描述Satire的以下方面:(1)误差界限和工具执行时间如何随抽象级别变化;(2)处理条件表达式分支的额外机制,包括定义不稳定性跳变和不稳定性窗口宽度的概念,并测量这些量;以及(3)当使用混合精度值时误差如何变化。为了展示Satire在设计过程中如何增加价值,我们从一个共轭梯度求解器开始,演示其步长和搜索方向如何受到不同精度设置的影响。Satire可免费用于评估,并可在数值例程的设计过程中使用,以在严格的实证误差保证指导下实现设计权衡。
英文摘要:
Techniques that rigorously bound the overall rounding error exhibited by a numerical program are of significant interest for communities developing numerical software. However, there are few available tools today that can be used to rigorously bound errors in programs that employ conditional statements (a basic need) as well as mixed-precision arithmetic (a direction of significant future interest) employing global optimization in error analysis. In this paper, we present a new tool that fills this void while also employing an abstraction-guided optimization approach to allow designers to trade error-bound tightness for gains in analysis time -- useful when searching for design alternatives. We first present the basic rigorous analysis framework of Satire and then show how to extend it to incorporate abstractions, conditionals, and mixed-precision arithmetic. We begin by describing Satire's design and its performance on a collection of benchmark examples. We then describe these aspects of Satire: (1) how the error-bound and tool execution time vary with the abstraction level; (2) the additional machinery to handle conditional expression branches, including defining the concepts of instability jumps and instability window widths and measuring these quantities; and (3) how the error changes when a mix of precision values are used. To showcase how \satire can add value during design, we start with a Conjugate Gradient solver and demonstrate how its step size and search direction are affected by different precision settings. Satire is freely available for evaluation, and can be used during the design of numerical routines to effect design tradeoffs guided by rigorous empirical error guarantees.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。