Lune

POPL2022顶会

One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes

Jay P. Lim, Santosh Nagarakatte

摘要

Mainstream math libraries for floating point (FP) do not produce correctly rounded results for all inputs. In contrast, CR-LIBM and RLIBM provide correctly rounded implementations for a specific FP representation with one rounding mode. Using such libraries for a representation with a new rounding mode or with different precision will result in wrong results due to double rounding. This paper proposes a novel method to generate a single polynomial approximation that produces correctly rounded results for all inputs for multiple rounding modes and multiple precision configurations. To generate a correctly rounded library for n -bits, our key idea is to generate a polynomial approximation for a representation with n +2-bits using the round-to-odd mode. We prove that the resulting polynomial approximation will produce correctly rounded results for all five rounding modes in the standard and for multiple representations with k -bits such that | E | +1 < k ≤ n , where | E | is the number of exponent bits in the representation. Similar to our prior work in the RLIBM project, we approximate the correctly rounded result when we generate the library with n +2-bits using the round-to-odd mode. We also generate polynomial approximations by structuring it as a linear programming problem but propose enhancements to polynomial generation to handle the round-to-odd mode. Our prototype is the first 32-bit float library that produces correctly rounded results with all rounding modes in the IEEE standard for all inputs with a single polynomial approximation. It also produces correctly rounded results for any FP configuration ranging from 10-bits to 32-bits while also being faster than mainstream libraries.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 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
  • High performance correctly rounded math libraries for 32-bit floating point representations 引用了 Detecting floating-point errors via atomic conditions
  • Progressive polynomial approximations for fast correctly rounded math libraries 引用了 High performance correctly rounded math libraries for 32-bit floating point representations
  • Progressive polynomial approximations for fast correctly rounded math libraries 引用了 An approach to generate correctly rounded math libraries for new floating point variants
  • MiSo: A DSL for Robust and Efficient Solve and MInimize Problems 引用了 Progressive polynomial approximations for fast correctly rounded math libraries
  • Implementation and Synthesis of Math Library Functions 引用了 Progressive polynomial approximations for fast correctly rounded math libraries
  • Implementation and Synthesis of Math Library Functions 引用了 An approach to generate correctly rounded math libraries for new floating point variants
  • An approach to generate correctly rounded math libraries for new floating point variants 引用了 Detecting floating-point errors via atomic conditions
  • 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 引用了 Progressive polynomial approximations for fast correctly rounded math libraries
  • Fast shadow execution for debugging numerical errors using error free transformations 引用了 An approach to generate correctly rounded math libraries for new floating point variants
  • Fast shadow execution for debugging numerical errors using error free transformations 引用了 Detecting floating-point errors via atomic conditions
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Fast shadow execution for debugging numerical errors using error free transformationsSangeeta Chowdhary, Santosh NagarakatteOOPSLA 2022 · 13 次引用
  2. Progressive polynomial approximations for fast correctly rounded math librariesMridul Aanjaneya, Jay P. Lim, Santosh NagarakattePLDI 2022 · 9 次引用
  3. Implementation and Synthesis of Math Library FunctionsIan Briggs, Yash Lad, Pavel PanchekhaPOPL 2024 · 7 次引用
  4. Numerical Fuzz: A Type System for Rounding Error AnalysisAriel E. Kellison, Justin HsuPLDI 2024 · 4 次引用
  5. MiSo: A DSL for Robust and Efficient Solve and MInimize ProblemsFederico Sichetti, Enrico Puppo, Zizhou Huang, Marco Attene 等SIGGRAPH 2025 · 1 次引用

它引用的 Paper4

  1. Pushing the Limits of Narrow Precision Inferencing at Cloud Scale with Microsoft Floating PointBita Darvish Rouhani, Daniel Lo, Ritchie Zhao, Ming Liu 等NeurIPS 2020 · 153 次引用
  2. Detecting floating-point errors via atomic conditionsDaming Zou, Muhan Zeng, Yingfei Xiong, Zhoulai Fu 等POPL 2020 · 45 次引用
  3. An approach to generate correctly rounded math libraries for new floating point variantsJay P. Lim, Mridul Aanjaneya, John L. Gustafson, Santosh NagarakattePOPL 2021 · 21 次引用
  4. High performance correctly rounded math libraries for 32-bit floating point representationsJay P. Lim, Santosh NagarakattePLDI 2021 · 19 次引用

相关 Paper

  1. Correctly Rounded Math Libraries without Worrying about the Application's Rounding ModeSehyeok Park, Justin Kim, Santosh NagarakattePLDI 2025 · 1 次引用
  2. High-Performance Branch-Free Algorithms for Extended-Precision Floating-Point ArithmeticDavid Kai Zhang, Alex AikenSC 2025 · 3 次引用
  3. Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate RepresentationMridul Aanjaneya, Santosh NagarakattePLDI 2024 · 1 次引用
  4. FPVM: Towards a Floating Point Virtual MachinePeter A. Dinda, Nick Wanninger, Jiacheng Ma, Alex Bernat 等HPDC 2022 · 4 次引用
  5. Automatic Verification of Floating-Point Accumulation NetworksDavid Kai Zhang, Alex AikenCAV 2025 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖