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 Jun Times are displayed in time zone: (GMT-07:00) Tijuana, Baja California change
|09:00 - 09:15|
|09:15 - 09:40|
Pavel PanchekhaUniversity of Washington, Alex Sanchez-SternUniversity of Washington, James R. WilcoxUniversity of Washington, Zachary TatlockUniversity of Washington, SeattleMedia Attached
|09:40 - 10:05|
Danfeng ZhangCornell University, Andrew Myers, Dimitrios VytiniotisMicrosoft Research, Cambridge, Simon Peyton JonesMicrosoft Research, CambridgeMedia Attached
|10:05 - 10:30|
Nuno P. LopesMicrosoft Research, David MenendezRutgers University, Santosh NagarakatteRutgers University, John RegehrUniversity of UtahMedia Attached
|10:30 - 10:50|