Sound Mixed-Precision Optimization with Rewriting
Eva Darulova, Einar Horn, Saksham Sharma

TL;DR
This paper introduces an automated, sound method combining rewriting and mixed-precision tuning to optimize finite-precision arithmetic programs, balancing accuracy and efficiency.
Contribution
It presents the first fully automated technique that jointly uses rewriting and mixed-precision tuning for optimizing finite-precision computations.
Findings
Rewriting finds evaluation orders minimizing roundoff error without runtime cost.
Mixed-precision tuning assigns different precisions for finer control.
Combined approach yields higher performance improvements.
Abstract
Finite-precision arithmetic computations face an inherent tradeoff between accuracy and efficiency. The points in this tradeoff space are determined, among other factors, by different data types but also evaluation orders. To put it simply, the shorter a precision's bit-length, the larger the roundoff error will be, but the faster the program will run. Similarly, the fewer arithmetic operations the program performs, the faster it will run; however, the effect on the roundoff error is less clear-cut. Manually optimizing the efficiency of finite-precision programs while ensuring that results remain accurate enough is challenging. The unintuitive and discrete nature of finite-precision makes estimation of roundoff errors difficult; furthermore the space of possible data types and evaluation orders is prohibitively large. We present the first fully automated and sound technique and tool for…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
