arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.10081cs.SE
收藏

一种面向浮点错误检测的数学引导方法

A Mathematics-Guided Approach to Floating-Point Error Detection

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Wuhan University(武汉大学);University of Waterloo(滑铁卢大学)

Youshuai Tan, Zhanwei Zhang, Zishuo Ding, Lianyu Zheng, Jinfu Chen, Weiyi Shang

AI总结:

针对浮点错误检测中计算成本高和长程收敛能力有限的问题,提出基于数学引导的方法 MGDE,利用 Newton-Raphson 方法的二次收敛特性高效识别引发错误的输入,在单输入和多输入程序中均显著优于基线 FPCC。

摘要:

浮点程序错误可能导致严重后果,特别是在军事应用等关键领域。只有一小部分输入可能引发严重的浮点错误,这促使研究人员开发识别这些引发错误输入的方法。尽管现有方法取得了一定成功,但仍存在两大局限性:(1) 计算成本高:候选输入的错误量级评估依赖高精度程序,耗时过长。(2) 长程收敛能力有限:当前方法在搜索方面效率低下,使得该过程犹如大海捞针。为解决这两大局限,我们提出了一种名为 MGDE 的新方法,基于数学引导检测引发错误的输入。通过采用具有二次收敛特性的 Newton-Raphson 方法,我们实现了高效且快速的结果。由于识别引发错误输入的目标是揭示潜在的 bug,我们在实验中使用浮点程序中检测到的 bug 数量作为主要评估指标。由于 FPCC 代表了迄今为止最有效的最先进方法,我们将其作为比较基线。FPCC 的数据集包含 88 个单输入浮点程序。FPCC 能够在 29 个程序中检测到 48 个 bug,而我们的方法在 44 个程序中成功识别了 89 个 bug。此外,FPCC 耗时是我们提出方法的 6.4096 倍。我们还将该方法部署到多输入程序中,共识别出 9 个 bug,每个程序的平均检测时间为 0.6443 秒。相比之下,FPCC 未能检测到任何 bug,且每个程序的平均计算时间为 100 秒。

英文摘要:

Floating-point program errors can lead to severe consequences, particularly in critical domains such as military applications. Only a small subset of inputs may induce substantial floating-point errors, prompting researchers to develop methods for identifying these error-inducing inputs. Although existing approaches have achieved some success, they still suffer from two major limitations: (1) High computational cost: The evaluation of error magnitude for candidate inputs relies on high-precision programs, which are prohibitively time-consuming. (2) Limited long-range convergence capability: Current methods exhibit inefficiency in search, making the process akin to finding a needle in a haystack. To address these two limitations, we propose a novel method, named MGDE, to detect error-inducing inputs based on mathematical guidance. By employing the Newton-Raphson method, which exhibits quadratic convergence properties, we achieve highly effective and efficient results. Since the goal of identifying error-inducing inputs is to uncover the underlying bugs, we use the number of bugs detected in floating-point programs as the primary evaluation metric in our experiments. As FPCC represents the most effective state-of-the-art approach to date, we use it as the baseline for comparison. The dataset of FPCC consists of 88 single-input floating-point programs. FPCC is able to detect 48 bugs across 29 programs, whereas our method successfully identifies 89 bugs across 44 programs. Moreover, FPCC takes 6.4096 times as long as our proposed method. We also deploy our method to multi-input programs, identifying a total of nine bugs with an average detection time of 0.6443 seconds per program. In contrast, FPCC fails to detect any bugs while requiring an average computation time of 100 seconds per program.

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

↑