NEAT:一个自动探索浮点逼近的框架
NEAT: A Framework for Automated Exploration of Floating Point Approximations
摘要:
最近的许多研究致力于探索在不同级别的系统堆栈的计算精度和能源效率之间的权衡。在浮点单元(FPU)处的近似允许通过简单地减少计算的浮点位的数量以换取精度损失来节省能量。尽管如此,以最小的努力为各种应用找到最节能的近似是主要的挑战。为了解决这个问题,我们提出了NEAT:一个引脚工具,帮助用户自动探索各种浮点实现引起的精度-能量权衡空间。NEAT帮助程序员探索同时使用多个浮点实现的效果,以实现精度约束的最低能耗,反之亦然。NEAT接受一个或多个用户定义的浮点实现和可编程的放置规则,用于在何处/何时应用它们。然后,NEAT在运行时根据用户指定的规则自动将浮点运算替换为不同的实现,并探索由此产生的权衡空间,以找到近似浮点实现的最佳用途,从而在整个程序中进行精度调整。我们评估NEAT强制执行24/53不同的浮点实现与三套放置规则在广泛的基准组合。我们发现,启发式精度调整在功能级别提供了高达22%和48%的能源节省1%和10%的准确性损失相比,适用于整个应用程序的单一实现。此外,NEAT也适用于神经网络,它会根据模型的精度目标为每一层找到最佳精度水平。
英文摘要:
Much recent research is devoted to exploring tradeoffs between computational accuracy and energy efficiency at different levels of the system stack. Approximation at the floating point unit (FPU) allows saving energy by simply reducing the number of computed floating point bits in return for accuracy loss. Although, finding the most energy efficient approximation for various applications with minimal effort is the main challenge. To address this issue, we propose NEAT: a pin tool that helps users automatically explore the accuracy-energy tradeoff space induced by various floating point implementations. NEAT helps programmers explore the effects of simultaneously using multiple floating point implementations to achieve the lowest energy consumption for an accuracy constraint or vice versa. NEAT accepts one or more user-defined floating point implementations and programmable placement rules for where/when to apply them. NEAT then automatically replaces floating point operations with different implementations based on the user-specified rules during the runtime and explores the resulting tradeoff space to find the best use of approximate floating point implementations for the precision tuning throughout the program. We evaluate NEAT by enforcing combinations of 24/53 different floating point implementations with three sets of placement rules on a wide range of benchmarks. We find that heuristic precision tuning at the function level provides up to 22% and 48% energy savings at 1% and 10% accuracy loss comparing to applying a single implementation for the whole application. Also, NEAT is applicable to neural networks where it finds the optimal precision level for each layer considering an accuracy target for the model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。