Saved in:
Bibliographic Details
Main Authors: Tan, Youshuai, Zhang, Zhanwei, Ding, Zishuo, Zheng, Lianyu, Chen, Jinfu, Shang, Weiyi
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.10081
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918158702477312
author Tan, Youshuai
Zhang, Zhanwei
Ding, Zishuo
Zheng, Lianyu
Chen, Jinfu
Shang, Weiyi
author_facet Tan, Youshuai
Zhang, Zhanwei
Ding, Zishuo
Zheng, Lianyu
Chen, Jinfu
Shang, Weiyi
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_10081
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Mathematics-Guided Approach to Floating-Point Error Detection
Tan, Youshuai
Zhang, Zhanwei
Ding, Zishuo
Zheng, Lianyu
Chen, Jinfu
Shang, Weiyi
Software Engineering
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.
title A Mathematics-Guided Approach to Floating-Point Error Detection
topic Software Engineering
url https://arxiv.org/abs/2510.10081