Automatically Improving Accuracy for Floating Point Expressions
Scientific and engineering applications depend on floating point arithmetic to approximate real arithmetic. Unfortunately, this approximation introduces rounding error, which can accumulate to produce unacceptable results. While the numerical methods literature provides techniques to mitigate rounding error, applying these techniques requires manually rearranging expressions and understanding the finer details of floating point arithmetic.
We introduce Herbie, a tool which automatically improves floating point accuracy by searching for error-reducing transformations. Herbie estimates and localizes rounding error, applies a database of rules to generate improvements, takes series expansions, and combines improvements for different input regions. We evaluated Herbie on every example from a chapter in a classic numerical methods textbook, and found that Herbie was able to improve accuracy on each example, some by up to 60 bits, while imposing an average performance overhead of 11%. Colleagues in machine learning have applied Herbie to significantly improve the results of a clustering algorithm, and a mathematical library has accepted a patch generated using Herbie.
Mon 15 JunDisplayed time zone: Tijuana, Baja California change
09:00 - 11:00 | Distinguished PapersResearch Papers at PLDI Main BLUE (Portland 254-255) Chair(s): Steve Blackburn Australian National University | ||
09:00 15mDay opening | Opening and Welcome Research Papers | ||
09:15 25mTalk | Automatically Improving Accuracy for Floating Point Expressions Research Papers Pavel Panchekha University of Washington, Alex Sanchez-Stern University of Washington, James R. Wilcox University of Washington, Zachary Tatlock University of Washington, Seattle Media Attached | ||
09:40 25mTalk | Diagnosing Type Errors with Class Research Papers Danfeng Zhang Cornell University, Andrew Myers , Dimitrios Vytiniotis Microsoft Research, Cambridge, Simon Peyton Jones Microsoft Research, Cambridge Media Attached | ||
10:05 25mTalk | Provably Correct Peephole Optimizations with Alive Research Papers Nuno P. Lopes Microsoft Research, David Menendez Rutgers University, Santosh Nagarakatte Rutgers University, John Regehr University of Utah Pre-print Media Attached | ||
10:30 20mTalk | One Minute Madness Research Papers |