缩小浮点与正数硬件效率之间的差距
Closing the Gap Between Float and Posit Hardware Efficiency
AI总结:
b-posit通过限制范围字段和优化硬件设计,在保持正数精度的同时,显著降低了功耗、面积和延迟,优于传统浮点和正数硬件。
摘要:
b-posit,或称为有界正数,是一种针对高性能计算(HPC)和人工智能应用设计的正数格式变种。与传统的浮点格式不同,正数使用可变长度的字段来缩放指数和有效数字部分,为相同的位宽提供了更好的效率。然而,这种灵活性引入了解码-编码逻辑的高最坏情况开销,超过了处理次正常数的浮点格式的成本。为了解决这个问题,b-posit将范围字段限制在6位以内,减少了范围和分数大小的变化性。当指数大小eS为5位时,动态范围是2^-192到2^192(大约10^-58到10^58),任何精度n>12的quire大小为800位。这种限制通过允许使用基本的多路复用器进行解码-编码操作,提高了数值属性并简化了硬件实现。我们的32位b-posit解码器电路实现了显著的改进:比标准正数解码器的功率消耗减少了79%,面积减少了71%,延迟减少了60%。32位b-posit编码器的功率使用降低了68%,面积减少了46%,延迟更短44%。所提出的b-posit硬件在增加位宽时表现出优越的可扩展性,在更高精度下优于标准正数硬件,甚至在64位时有更大的优势。值得注意的是,b-posit解码-编码硬件匹配或超过了IEEE兼容的32位浮点性能,提供了更快的实现和更小的面积,但因速度提高导致最坏情况下的功率略有增加。b-posit硬件设计在数学行为和精度上优于正数相对于IEEE浮点,而无需承受正数标准(2022)中观察到的功率、面积或延迟成本。我们相信b-posit应该影响未来标准的修订。
英文摘要:
The b-posit, or bounded posit, is a variation of the posit format designed for high performance computing (HPC) and AI applications. Unlike traditional floating-point formats (floats), posits use variable-length fields for exponent scaling and significand, providing better efficiency for the same bit width. However, this flexibility introduces high worst-case overhead in decode-encode logic, exceeding the cost of handling subnormals for floats. To address this, the b-posit restricts the regime field to a 6-bit limit, reducing variability in regime and fraction sizes. With an exponent size eS of 5 bits, the dynamic range is $2^{-192}$ to $2^{192}$ (about $10^{-58}$ to $10^{58}$) and the quire size is 800 bits, for any precision $n>12$. This constraint improves numerical properties and simplifies hardware implementation by allowing decode-encode operations with basic multiplexers. Our 32-bit b-posit decoder circuits achieve significant improvements: 79 percent less power consumption, 71 percent smaller area, and 60 percent reduced latency compared to standard posit decoders. The 32-bit b-posit encoder shows 68 percent lower power usage, 46 percent less area, and 44 percent shorter delay. The proposed b-posit hardware exhibits superior scalability with increasing bit widths, outperforming standard posit hardware at higher precisions, with even greater advantages at 64-bit. Notably, the b-posit decode-encode hardware matches or exceeds IEEE compliant 32-bit floating-point performance, offering faster and smaller area implementation, with slight increase in worst-case power due to higher speed. The b-posit hardware design provides the clean mathematical behavior and higher accuracy of posits versus IEEE floats without the power, area, or latency costs observed for the Posit Standard (2022). We believe the b-posit should influence future standard revisions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。