Skip to search boxSkip to navigationSkip to main content

Cost of Soundness in Mixed-Precision Tuning

  • Vienna University of Technology
    ,
  • Karlsruhe Institute of Technology
Research Output:
Journal Article or Conference Article in Journal
Journal article
Peer-review

Open access

Publication Information

Output type

Research Output:
Journal Article or Conference Article in Journal
Journal article
Peer-review

Original language

English

Article number

359

Pages from-to (Number of pages)

Pages 1-28 (28 pages)

Journal (Volume, Issue Number)

Proceedings of the ACM on Programming Languages (Volume 9)

Publication milestones

  • Published - 09/10/2025

Publication status

Published - 09/10/2025

Publication IDs

  • ORCID: /0000-0001-8639-4116/work/193828776
  • Scopus: 105018663308

Abstract

Numerical code is often executed repetitively and on hardware with limited resources, which makes it a perfect target for optimizations. One of the most effective ways to boost performance—especially in terms of runtime—is by reducing the precision of computations. However, low precision can introduce significant rounding errors, potentially compromising the correctness of results. Mixed-precision tuning addresses this trade-off by assigning the lowest possible precision to a subset of variables and arithmetic operations in the program while ensuring that the overall error remains within acceptable bounds. State-of-the-art tools validate the accuracy of optimized programs using either sound static analysis or dynamic sampling. While sound methods are often considered safer but overly conservative, and dynamic methods are more aggressive and potentially more effective, the question remains: how do these approaches compare in practice? In this paper, we present the first comprehensive evaluation of existing mixed-precision tuning tools for floating-point programs, offering a quantitative comparison between sound static and (unsound) dynamic approaches. We measure the trade-offs between performance gains, utilizing optimization potential, and the soundness guarantees on the accuracy---what we refer to as the cost of soundness. Our experiments on the standard FPBench benchmark suite challenge the common belief that dynamic optimizers consistently generate faster programs. In fact, for small straight-line numerical programs, we find that sound tools enhanced with regime inference match or outperform dynamic ones, while providing formal correctness guarantees, albeit at the cost of increased optimization time. Standalone sound tools, however, are overly conservative, especially when accuracy constraints are tight; whereas dynamic tools are consistently effective for different targets, but exceed the maximum allowed error by up to 9 orders of magnitude.

Publication metrics

PlumX, opens in new tab

Citations
1
Captures
1

Funding Details

This work was partially supported by funding from the pilot program for Core Informatics of the Association (HGF)