TL;DR
This paper introduces two novel methods for computing rigorous upper bounds on floating-point roundoff errors in polynomial programs. By leveraging Bernstein expansions and sparse Krivine-Stengle representations, the authors achieve competitive accuracy with existing tools while significantly improving computational efficiency, particularly for larger problems.
What Problem Does This Paper Address?
Implementing algorithms designed in real algebra on computers introduces roundoff errors due to the limitations of floating-point arithmetic. For safety-critical systems, it's crucial to guarantee that these errors remain within acceptable bounds, especially on resource-constrained embedded systems. While methods exist for linear programs, non-linear polynomial functions pose a significant challenge due to their NP-hard nature in optimization. Existing approaches often struggle with either accuracy or computational cost, leaving a need for efficient and reliable methods to certify roundoff error bounds for polynomial programs.
Methods
The paper proposes two primary methods:
- Bernstein Expansions: This method approximates the polynomial function using Bernstein expansions. The core idea is to bound the roundoff error by finding the maximum and minimum values of the Bernstein coefficients. This approach is particularly effective for bounding polynomials over the unit box.
- Sparse Krivine-Stengle Representations: This method utilizes a hierarchy of linear programming (LP) relaxations derived from sparse Krivine-Stengle representations. By exploiting the sparsity of the polynomial and its input constraints, this technique significantly reduces the size of the LP problems compared to dense representations, leading to more efficient computations.
Both methods are designed to provide certified bounds, meaning their correctness can be mathematically proven. The authors also release software packages, FPBern and FPKriSten, implementing these methods.
Datasets
The paper evaluates its methods on a set of 20 programs. These include:
- 12 existing benchmarks from fields like biology, space control, and optimization.
- 8 generated benchmarks designed to test the scalability of the methods with respect to the number of input variables and the degree of the polynomials.
Key Insights and Ideas
- Sparsity is Key: The significant performance improvements observed, especially with the sparse Krivine-Stengle method, highlight the critical role of exploiting sparsity in polynomial optimization for practical applications.
- Trade-offs in Methods: While Bernstein expansions offer a more direct approach, sparse Krivine-Stengle representations provide a more scalable solution for larger problems, demonstrating a clear trade-off between method complexity and problem size.
- Certified Bounds Matter: The emphasis on certified bounds is crucial for safety-critical applications, ensuring that the computed error bounds are mathematically guaranteed and not just approximations.
- Software Release: The availability of open-source software (FPBern and FPKriSten) is a significant contribution, enabling researchers and practitioners to use and build upon these new techniques.
Key Results
- Competitive Accuracy: The proposed methods achieve accuracy comparable to state-of-the-art tools like Real2Float and FPTaylor. In some cases, they provide more accurate bounds, particularly for programs with a large number of error variables (e.g.,
kepler1,sineTaylor,kepler2). - Significant Speedup: The sparse Krivine-Stengle method (FPKristen) and the C++ implementation of Bernstein expansions (FPBern(a)) demonstrate substantial improvements in computation time compared to existing methods, especially for larger and more complex polynomials. For instance, FPKristen significantly outperforms FPTaylor in computation time for large polynomials while maintaining competitive accuracy.
- Scalability: The sparse Krivine-Stengle approach shows better scalability with increasing input variable dimensions compared to dense methods.
Limitations and Future Work
- Input Set Limitations: The current methods are primarily designed for box-constrained input variables. Extending them to more complex semialgebraic sets is a significant future research direction, though it presents implementation challenges.
- Formal Verification: The authors plan to integrate their tools with formal verification frameworks like PVS and Coq to provide formal proof certificates for the computed bounds.
- Handling Loops and Conditionals: A major open problem is extending these techniques to handle programs with loops and conditional statements, which are common in real-world software.
- Bernstein Coefficient Certification: While FPBern(b) uses rational arithmetic for certification, FPBern(a) currently lacks full certification for its Bernstein coefficients, which is a planned improvement.
Summary updated