Detecting floating-point errors via atomic conditions
Daming Zou, Muhan Zeng, Yingfei Xiong, Zhoulai Fu, Lu Zhang, Zhendong Su
摘要
This paper tackles the important, difficult problem of detecting program inputs that trigger large floating-point errors in numerical code. It introduces a novel, principled dynamic analysis that leverages the mathematically rigorously analyzed condition numbers for atomic numerical operations, which we call atomic conditions, to effectively guide the search for large floating-point errors. Compared with existing approaches, our work based on atomic conditions has several distinctive benefits: (1) it does not rely on high-precision implementations to act as approximate oracles, which are difficult to obtain in general and computationally costly; and (2) atomic conditions provide accurate, modular search guidance. These benefits in combination lead to a highly effective approach that detects more significant errors in real-world code (e.g., widely-used numerical library functions) and achieves several orders of speedups over the state-of-the-art, thus making error analysis significantly more practical. We expect the methodology and principles behind our approach to benefit other floating-point program analysis tasks such as debugging, repair and synthesis. To facilitate the reproduction of our work, we have made our implementation, evaluation data and results publicly available on GitHub at https://github.com/FP-Analysis/atomic-condition.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- High performance correctly rounded math libraries for 32-bit floating point representations 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Parallel shadow execution to accelerate the debugging of numerical errors 引用了 High performance correctly rounded math libraries for 32-bit floating point representations
- Parallel shadow execution to accelerate the debugging of numerical errors 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes 引用了 High performance correctly rounded math libraries for 32-bit floating point representations
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes 引用了 An approach to generate correctly rounded math libraries for new floating point variants
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 High performance correctly rounded math libraries for 32-bit floating point representations
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 Parallel shadow execution to accelerate the debugging of numerical errors
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
- Fast shadow execution for debugging numerical errors using error free transformations 引用了 An approach to generate correctly rounded math libraries for new floating point variants
引用它的顶会 Paper12
- Parallel shadow execution to accelerate the debugging of numerical errorsSangeeta Chowdhary, Santosh NagarakatteFSE 2021 · 21 次引用
- An approach to generate correctly rounded math libraries for new floating point variantsJay P. Lim, Mridul Aanjaneya, John L. Gustafson, Santosh NagarakattePOPL 2021 · 21 次引用
- High performance correctly rounded math libraries for 32-bit floating point representationsJay P. Lim, Santosh NagarakattePLDI 2021 · 19 次引用
- One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modesJay P. Lim, Santosh NagarakattePOPL 2022 · 15 次引用
- Fast shadow execution for debugging numerical errors using error free transformationsSangeeta Chowdhary, Santosh NagarakatteOOPSLA 2022 · 13 次引用
相关 Paper
- Mathematically-Guided Detection of Floating-Point ErrorsYoushuai Tan, Zhanwei Zhang, Haonan Zhang, Lianyu Zheng 等ISSTA 2026
- Oracle-free repair synthesis for floating-point programsDaming Zou, Yuchen Gu, Yuanfeng Shi, Mingzhe Wang 等OOPSLA 2022 · 9 次引用
- FPCC: Detecting Floating-Point Errors via Chain ConditionsXin Yi, Hengbiao Yu, Liqian Chen, Xiaoguang Mao 等OOPSLA 2024 · 7 次引用
- Floating-Point Usage on GitHub: A Large-Scale Study of Statically Typed LanguagesAndrea Gilot, Tobias Wrigstad, Eva DarulovaOOPSLA 2026 · 1 次引用
- Efficient generation of error-inducing floating-point inputs via symbolic executionHui Guo, Cindy Rubio-GonzálezICSE 2020 · 27 次引用
