Detecting Floating-Point Expression Errors Based Improved PSO Algorithm

被引:0
|
作者
Yang, Hongru [1 ]
Xu, Jinchen [1 ]
Hao, Jiangwei [1 ]
Zhang, Zuoyan [1 ]
Zhou, Bei [1 ]
机构
[1] Informat Engn Univ, 62 Sci Ave, Zhengzhou 450001, Henan, Peoples R China
关键词
OPTIMIZATION; ACCURACY;
D O I
10.1049/2023/6681267
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The use of floating-point numbers inevitably leads to inaccurate results and, in certain cases, significant program failures. Detecting floating-point errors is critical to ensuring that floating-point programs outputs are proper. However, due to the sparsity of floating-point errors, only a limited number of inputs can cause significant floating-point errors, and determining how to detect these inputs and to selecting the appropriate search technique is critical to detecting significant errors. This paper proposes characteristic particle swarm optimization (CPSO) algorithm based on particle swarm optimization (PSO) algorithm. The floating-point expression error detection tool PSOED is implemented, which can detect significant errors in floating-point arithmetic expressions and provide corresponding input. The method presented in this paper is based on two insights: (1) treating floating-point error detection as a search problem and selecting reliable heuristic search strategies to solve the problem; (2) fully utilizing the error distribution laws of expressions and the distribution characteristics of floating-point numbers to guide the search space generation and improve the search efficiency. This paper selects 28 expressions from the FPBench standard set as test cases, uses PSOED to detect the maximum error of the expressions, and compares them to the current dynamic error detection tools S3FP and Herbie. PSOED detects the maximum error 100% better than S3FP, 68% better than Herbie, and 14% equivalent to Herbie. The results of the experiments indicate that PSOED can detect significant floating-point expression errors.
引用
收藏
页数:16
相关论文
共 50 条
  • [41] Algorithm 908: Online Exact Summation of Floating-Point Streams
    Zhu, Yong-Kang
    Hayes, Wayne B.
    ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2010, 37 (03):
  • [42] Accuracy improvement of genetic algorithm for obtaining floating-point solution
    Nishijima, Kengo
    Kanasugi, Akinori
    Ando, Ki
    ARTIFICIAL LIFE AND ROBOTICS, 2014, 19 (04) : 328 - 332
  • [43] Optimized UD filtering algorithm for floating-point hardware execution
    Gonzalez, Rodrigo
    Sutter, Gustavo
    Daniel Patino, Hector
    2014 17TH INTERNATIONAL CONFERENCE ON INFORMATION FUSION (FUSION), 2014,
  • [44] A HARDWARE-ORIENTED ALGORITHM FOR FLOATING-POINT FUNCTION GENERATION
    OGRADY, EP
    YOUNG, BK
    IEEE TRANSACTIONS ON COMPUTERS, 1991, 40 (02) : 237 - 241
  • [45] Floating-point versus symbolic computations in the QD-algorithm
    Cuyt, A
    JOURNAL OF SYMBOLIC COMPUTATION, 1997, 24 (06) : 695 - 703
  • [47] A Hardware Implementation of the PID Algorithm Using Floating-Point Arithmetic
    Kulisz, Jozef
    Jokiel, Filip
    ELECTRONICS, 2024, 13 (08)
  • [48] Floating-Point Inverse Square Root Algorithm Based on Taylor-Series Expansion
    Wei, Jianglin
    Kuwana, Anna
    Kobayashi, Haruo
    Kubo, Kazuyoshi
    Tanaka, Yuuki
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS II-EXPRESS BRIEFS, 2021, 68 (07) : 2640 - 2644
  • [49] Resolving IEEE floating-point error using precision-based rounding algorithm
    Awan, MA
    Siddiqui, MR
    IEEE: 2005 International Conference on Emerging Technologies, Proceedings, 2005, : 329 - 333
  • [50] Research on Floating Point Accumulation Based on Improved Kahan Algorithm
    Wang, Chunling
    MANUFACTURING TECHNOLOGY, 2023, 23 (04): : 551 - 556