arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.10274math.NAcs.MScs.NAcs.PL
收藏

对使用初等函数的程序进行声音近似

Sound Approximation of Programs with Elementary Functions

MPI-SWS(马克斯·普朗克计算机研究所);Univ Lyon, Inria, CNRS, ENS de Lyon, Université Claude Bernard Lyon 1, LIP UMR 5668(里昂大学、法国国家信息与自动化研究所、法国国家科学研究中心、里昂高等师范学校、里昂第一大学、LIP实验室)

Eva Darulova, Anastasia Volkova

AI总结:

本文提出了一种自动化方法和工具,用于在小型程序中近似初等函数调用,同时保证用户提供的误差界。该工具利用现有的舍入误差计算和单个初等函数调用近似的技术,并提供自动选择多个参数的功能。实验表明,通过牺牲但保证的准确性,可以实现显著的效率提升。

摘要:

初等函数调用是数值程序中的常见特征。尽管库函数的实现高度优化,但其计算成本仍远高于普通算术运算。然而,全精度并不总是必需的。与算术不同,初等函数调用在精度和效率之间提供了更丰富的权衡空间。导航这一空间具有挑战性。首先,生成保证满足精度误差界的初等函数调用近似非常非平凡。其次,此类近似的性能通常取决于几个参数,这些参数手动选择起来直观,尤其是对非专家而言。我们提出了一种完全自动的方法和工具,用于在小型程序中近似初等函数调用,同时保证用户提供的误差界。我们的工具利用现有的舍入误差计算和单个初等函数调用近似的技术,并提供自动选择多个参数的功能。我们的实验表明,通过牺牲但保证的准确性,可以实现显著的效率提升。

英文摘要:

Elementary function calls are a common feature in numerical programs. While their implementions in library functions are highly optimized, their computation is nonetheless very expensive compared to plain arithmetic. Full accuracy is, however, not always needed. Unlike arithmetic, where the performance difference between for example single and double precision floating-point arithmetic is relatively small, elementary function calls provide a much richer tradeoff space between accuracy and efficiency. Navigating this space is challenging. First, generating approximations of elementary function calls which are guaranteed to satisfy accuracy error bounds is highly nontrivial. Second, the performance of such approximations generally depends on several parameters which are unintuitive to choose manually, especially for non-experts. We present a fully automated approach and tool which approximates elementary function calls inside small programs while guaranteeing overall user provided error bounds. Our tool leverages existing techniques for roundoff error computation and approximation of individual elementary function calls, and provides automated selection of many parameters. Our experiments show that significant efficiency improvements are possible in exchange for reduced, but guaranteed, accuracy.

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

↑