paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Arfa: An Agile Regime-Based Floating-Point Optimization Approach for Rounding Errors

Arfa:一种基于 regime 的敏捷浮点舍入误差优化方法
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 9/10 · 论文直接研究浮点程序中的舍入误差分析与基于 regime 的重写优化,属于用户画像中“浮点程序分析”的核心方向;虽未涉及 LLM/Agent,但与该子方向高度吻合。引用 1 inbox
Jinchen Xu, Mengqi Cui, Fei Li, Zuoyan Zhang, Hongru Yang, Bei Zhou, Jie Zhao
crossref: 2026-09-12

AI 速览

一句话:提出 Arfa,将浮点表达式定义域划分为 regime 并进行重写,以降低舍入误差。

浮点表达式因舍入误差而偏离精确结果,现有优化方法难以兼顾搜索效率与精度。Arfa 将表达式定义域 D 划分为多个 regime,并针对误差较大的 regime 重写表达式:先寻找在整个 D 上误差更低的替换式 fo 并利用其误差分布推断有效 regime;再在每个感兴趣的 regime 内生成不完整的、有序的重写候选集,以高效搜索最佳替换;最后检查排名靠前候选的误差并兼顾精度提升来选择最优重写。在 56 个 FPbench 例子和 4 个真实程序上,Arfa 平均将最大和平均误差降低 4.73 和 2.08 位(最高 33 和 16 位),且误差常低于 Herbie 和 NumOpt。

问题
浮点表达式的舍入误差会降低数值结果质量,如何自动重写表达式以有效降低其最大和平均误差。
方法
将定义域划分为 regime,在全域误差分布引导下为高误差 regime 生成有序重写候选并搜索、选择最佳替换。
评估
在 56 个 FPbench 基准和 4 个真实程序上,与 Herbie、NumOpt 比较最大/平均误差和精度提升。
原文摘要(Abstract)

We introduce a floating-point (FP) error optimization approach called Arfa that partitions the domain D of an FP expression fe into regimes and rewrites fe in each regime where fe shows larger errors. First, Arfa seeks a rewrite substitution fo with lower errors across D, whose error distribution is plotted for effective regime inference. Next, Arfa generates an incomplete set of ordered rewrite candidates within each regime of interest, so that searching for the best rewrite substitutions is performed efficiently. Finally, Arfa selects the best rewrite substitution by inspecting the errors of top ranked rewrite candidates, with enhancing precision also considered. Experiments on 56 FPbench examples and four real-life programs show that Arfa not only reduces the maximum and average errors of fe by 4.73 and 2.08 bits on average (and up to 33 and 16 bits), but also exhibits lower errors, sometimes to a significant degree, than Herbie and NumOpt.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8571,
  title = {Arfa: An Agile Regime-Based Floating-Point Optimization Approach for Rounding Errors},
  author = {Jinchen Xu and Mengqi Cui and Fei Li and Zuoyan Zhang and Hongru Yang and Bei Zhou and Jie Zhao},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3680378}
}