arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.04184cs.ARcs.LGeess.SP
收藏

自定义数字表示和精度

Customizing Number Representation and Precision

Univ. Rennes(雷恩大学);Inria(法国国家信息与自动化研究所);IRISA(雷恩信息与随机系统研究所);INSA(国立应用科学学院);IETR(电子与电信研究所)

Olivier Sentieys, Daniel Menard

摘要:

人们对降低精度算法的使用越来越感兴趣,最近对人工智能的兴趣加剧了这种兴趣,特别是深度学习。大多数架构已经提供了降低精度的能力(例如,8-位整数、16位浮点)。在FPGA中,任何数字格式和位宽都可以考虑。在计算机运算中,实数的表示是一个主要问题。定点(FxP)和浮点(FlP)是表示实数的主要选择,它们都有各自的优点和缺点。本章介绍了FxP和FlP两种数字表示,并对它们的成本、性能和能量以及它们对计算精度的影响进行了公平的比较。结果表明,FxP和FlP之间的选择并不明显,而且在很大程度上取决于所考虑的应用。在某些情况下,低精度浮点运算可能是最有效的,并且在能量受限的应用程序中提供了一些优于经典定点选择的优点。

英文摘要:

There is a growing interest in the use of reduced-precision arithmetic, exacerbated by the recent interest in artificial intelligence, especially with deep learning. Most architectures already provide reduced-precision capabilities (e.g., 8-bit integer, 16-bit floating point). In the context of FPGAs, any number format and bit-width can even be considered.In computer arithmetic, the representation of real numbers is a major issue. Fixed-point (FxP) and floating-point (FlP) are the main options to represent reals, both with their advantages and drawbacks. This chapter presents both FxP and FlP number representations, and draws a fair a comparison between their cost, performance and energy, as well as their impact on accuracy during computations.It is shown that the choice between FxP and FlP is not obvious and strongly depends on the application considered. In some cases, low-precision floating-point arithmetic can be the most effective and provides some benefits over the classical fixed-point choice for energy-constrained applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑