BSC:基于块的随机计算,以实现精确和高效的TinyML
BSC: Block-based Stochastic Computing to Enable Accurate and Efficient TinyML
摘要:
随着人工智能民主化的进展,机器学习(ML)已成功应用于边缘应用,如智能手机和自动驾驶。如今,越来越多的应用需要在资源极其有限的小型设备上使用ML,例如植入式心律转复除颤器(ICD),即TinyML。与边缘上的ML不同,能量供应有限的TinyML对低功耗执行有更高的要求。使用比特流进行数据表示的随机计算(SC)对于TinyML来说是有希望的,因为它可以使用简单的逻辑门来执行基本的ML操作,而不是复杂的二进制加法器和乘法器。然而,由于数据精度低和算术单元不准确,SC通常遭受ML任务的低精度。在现有的作品中,增加比特流的长度可以缓解精度问题,但会导致更高的延迟。在这项工作中,我们提出了一种新的SC架构,即基于块的随机计算(BSC)。BSC将输入划分为块,使得可以通过利用高数据并行来减少延迟。此外,还提出了优化运算单元和输出修正(OUR)方案来提高精度。在此基础上,设计了一种全局优化方法来确定块的数量,这可以使延迟功率更好地权衡。实验结果表明,BSC可以实现超过10%的ML任务的准确性和超过6倍的功耗降低,优于现有的设计。
英文摘要:
Along with the progress of AI democratization, machine learning (ML) has been successfully applied to edge applications, such as smart phones and automated driving. Nowadays, more applications require ML on tiny devices with extremely limited resources, like implantable cardioverter defibrillator (ICD), which is known as TinyML. Unlike ML on the edge, TinyML with a limited energy supply has higher demands on low-power execution. Stochastic computing (SC) using bitstreams for data representation is promising for TinyML since it can perform the fundamental ML operations using simple logical gates, instead of the complicated binary adder and multiplier. However, SC commonly suffers from low accuracy for ML tasks due to low data precision and inaccuracy of arithmetic units. Increasing the length of the bitstream in the existing works can mitigate the precision issue but incur higher latency. In this work, we propose a novel SC architecture, namely Block-based Stochastic Computing (BSC). BSC divides inputs into blocks, such that the latency can be reduced by exploiting high data parallelism. Moreover, optimized arithmetic units and output revision (OUR) scheme are proposed to improve accuracy. On top of it, a global optimization approach is devised to determine the number of blocks, which can make a better latency-power trade-off. Experimental results show that BSC can outperform the existing designs in achieving over 10% higher accuracy on ML tasks and over 6 times power reduction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。