Lune

PLDI2022Top-tier venue

Progressive polynomial approximations for fast correctly rounded math libraries

Mridul Aanjaneya, Jay P. Lim, Santosh Nagarakatte

Abstract

This paper presents a novel method for generating a single polynomial approximation that produces correctly rounded results for all inputs of an elementary function for multiple representations. The generated polynomial approximation has the nice property that the first few lower degree terms produce correctly rounded results for specific representations of smaller bitwidths, which we call progressive performance. To generate such progressive polynomial approximations, we approximate the correctly rounded result and formulate the computation of correctly rounded polynomial approximations as a linear program similar to our prior work on the RLIBM project. To enable the use of resulting polynomial approximations in mainstream libraries, we want to avoid piecewise polynomials with large lookup tables. We observe that the problem of computing polynomial approximations for elementary functions is a linear programming problem in low dimensions, i.e., with a small number of unknowns. We design a fast randomized algorithm for computing polynomial approximations with progressive performance. Our method produces correct and fast polynomials that require a small amount of storage. A few polynomial approximations from our prototype have already been incorporated into LLVM’s math library.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High performance correctly rounded math libraries for 32-bit floating point representations cites An approach to generate correctly rounded math libraries for new floating point variants
  • MiSo: A DSL for Robust and Efficient Solve and MInimize Problems cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
  • Implementation and Synthesis of Math Library Functions cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
  • Implementation and Synthesis of Math Library Functions cites 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 cites 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 cites An approach to generate correctly rounded math libraries for new floating point variants
  • Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites High performance correctly rounded math libraries for 32-bit floating point representations
  • Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
  • Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation cites An approach to generate correctly rounded math libraries for new floating point variants
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites High performance correctly rounded math libraries for 32-bit floating point representations
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites Implementation and Synthesis of Math Library Functions
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modes
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites An approach to generate correctly rounded math libraries for new floating point variants
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate Representation
  • Correctly Rounded Math Libraries without Worrying about the Application's Rounding Mode cites Fast shadow execution for debugging numerical errors using error free transformations
  • Fast shadow execution for debugging numerical errors using error free transformations cites High performance correctly rounded math libraries for 32-bit floating point representations
  • Fast shadow execution for debugging numerical errors using error free transformations cites 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 cites An approach to generate correctly rounded math libraries for new floating point variants
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Fast shadow execution for debugging numerical errors using error free transformationsSangeeta Chowdhary, Santosh NagarakatteOOPSLA 2022 · 13 citations
  2. Implementation and Synthesis of Math Library FunctionsIan Briggs, Yash Lad, Pavel PanchekhaPOPL 2024 · 7 citations
  3. MiSo: A DSL for Robust and Efficient Solve and MInimize ProblemsFederico Sichetti, Enrico Puppo, Zizhou Huang, Marco Attene et al.SIGGRAPH 2025 · 1 citation
  4. Maximum Consensus Floating Point Solutions for Infeasible Low-Dimensional Linear Programs with Convex Hull as the Intermediate RepresentationMridul Aanjaneya, Santosh NagarakattePLDI 2024 · 1 citation
  5. Correctly Rounded Math Libraries without Worrying about the Application's Rounding ModeSehyeok Park, Justin Kim, Santosh NagarakattePLDI 2025 · 1 citation

Builds on3

  1. An approach to generate correctly rounded math libraries for new floating point variantsJay P. Lim, Mridul Aanjaneya, John L. Gustafson, Santosh NagarakattePOPL 2021 · 21 citations
  2. High performance correctly rounded math libraries for 32-bit floating point representationsJay P. Lim, Santosh NagarakattePLDI 2021 · 19 citations
  3. One polynomial approximation to produce correctly rounded results of an elementary function for multiple representations and rounding modesJay P. Lim, Santosh NagarakattePOPL 2022 · 15 citations

Related papers

  1. NFGen: Automatic Non-linear Function Evaluation Code Generator for General-purpose MPC PlatformsXiaoyu Fan, Kun Chen, Guosai Wang, Mingchun Zhuang et al.CCS 2022 · 9 citations
  2. Fast linear programming through transprecision computing on small and sparse dataTobias Grosser, Theodoros Theodoridis, Maximilian Falkenstein, Arjun Pitchanathan et al.OOPSLA 2020 · 4 citations
  3. LIBSHALOM: optimizing small and irregular-shaped matrix multiplications on ARMv8 multi-coresWeiling Yang, Jianbin Fang, Dezun Dong, Xing Su et al.SC 2021 · 40 citations
  4. FPL: fast Presburger arithmetic through transprecisionArjun Pitchanathan, Christian Ulmann, Michel Weber, Torsten Hoefler et al.OOPSLA 2021 · 10 citations
  5. SURF: A Simple, Universal, Robust, Fast Distribution Learning AlgorithmYi Hao, Ayush Jain, Alon Orlitsky, Vaishakh RavindrakumarNeurIPS 2020 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines