paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Probabilistic Floating-Point Round-Off Analysis via Concentration Inequalities

基于集中不等式的概率浮点舍入误差分析
OOPSLA 10(OOPSLA2)2026匹配度 8/10 · 论文直接针对浮点程序分析中的舍入误差问题,提出基于集中不等式的概率阈值分析方法,并建立在 FPTaylor 的 Taylor 展开之上,同时具备理论形式化与工程实现,与用户关注的浮点程序分析方向高度匹配。但其未涉及 LLM/Agent 或贝叶斯程序分析交叉,因此距离整体画像的多个子方向仍有距离。引用 0 inbox
Yichen Tao, Hongfei Fu, Jiawei Chen, Jean-Baptiste Jeannin
crossref: 2026-10-02

AI 速览

一句话:提出在 FPTaylor 的 Taylor 展开上应用集中不等式的概率浮点舍入分析方法,可高效生成概率阈值。

本文研究数值程序中普遍存在且可能导致灾难性故障的浮点舍入误差。确定性舍入阈值往往需覆盖小概率大误差,因而过于保守。作者提出概率化舍入分析:在 FPTaylor 的 Taylor 展开上应用集中不等式,推导“舍入误差超过阈值概率低于给定置信度”的概率阈值。主要困难在于 Taylor 展开含绝对值,使一阶偏导项期望难以计算。作者先给出多项式表达式中去除绝对值的可靠过近似,再将分式表达式转化为多项式情形,并用区间划分改进精度。该方法可扩展,关键计算是多变量独立多项式的期望,可利用期望的线性性与独立性高效完成。实验表明,与当前先进方法相比,该方法时间效率提升数个数量级,同时阈值精度相当。

问题
确定性浮点舍入阈值过于保守,难以实用,因此需要在给定置信度下推导概率化舍入阈值,以保证数值程序的正确性。
方法
在 FPTaylor 的 Taylor 展开上应用集中不等式,并通过移除绝对值的安全过近似、将分式表达式转化为多项式情形以及区间划分来计算概率阈值。
评估
通过实验与当前先进方法比较,结果显示该方法时间效率提升数个数量级,同时产生精度相当的阈值。
原文摘要(Abstract)

Floating-point round-off errors are ubiquitous in numerically intensive programs arising in fields such as scientific computing and optimization. As floating-point errors potentially lead to unexpected and catastrophic program failures, one must derive guaranteed round-off thresholds to ensure the correctness of these programs. However, deterministic round-off thresholds tend to be too conservative to be usable in practice, since they often involve large round-off errors that occur with small probability. Probabilistic thresholds relax deterministic ones by specifying that the probability of the round-off error exceeding a threshold is below a given confidence. In this work, we propose a novel approach to probabilistic round-off analysis, by applying concentration inequalities over the Taylor expansion from FPTaylor (TOPLAS 2018). A major obstacle in applying concentration inequalities is that the Taylor expansion involves absolute value operators that make the calculation of the expected values of the first order partial differential terms difficult. Our first step to overcome this obstacle is a sound over-approximation that removes the absolute value operators in polynomial expressions. Then, we show how to handle fractional expressions by a transformation into polynomial case. Finally, we show how to improve our approach with range partitioning. Our approach is scalable since the key computational part is the calculation of expected values of polynomial expressions with independent variables, for which the linear and independence properties of expectation boost the computation. Experimental results show that our approach is orders of magnitude more time efficient, while producing thresholds with comparable precision against the state of the art.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{abs-2605-04232,
  title = {Probabilistic Floating-Point Round-Off Analysis via Concentration Inequalities},
  author = {Yichen Tao and Hongfei Fu and Jiawei Chen and Jean-Baptiste Jeannin},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {OOPSLA2},
  year = {2026},
  doi = {10.1145/3839447}
}