arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.07983cs.ARcs.LG
收藏

S2TA:利用结构化稀疏性实现节能移动CNN加速

S2TA: Exploiting Structured Sparsity for Energy-Efficient Mobile CNN Acceleration

University of Rochester(罗切斯特大学);Arm ML Research Lab(Arm机器学习研究实验室)

Zhi-Gang Liu, Paul N. Whatmough, Yuhao Zhu, Matthew Mattina

摘要:

利用稀疏性是在移动设备上加速量化卷积神经网络(CNN)推理的关键技术。现有的稀疏CNN加速器在很大程度上利用了非结构化的稀疏性,并实现了显著的加速。然而,由于无边界的、在很大程度上不可预测的稀疏模式,利用非结构化稀疏性需要复杂的硬件设计,具有显著的能量和面积开销,这对于能量和面积效率至关重要的移动/物联网推理场景尤其不利。我们建议利用结构化稀疏性,更具体地说,密度约束块(DBB)稀疏的权重和激活。DBB块张量限制了每个块的最大非零数量。因此,DBB暴露了静态可预测的稀疏模式,使精益稀疏利用硬件。我们提出了新的硬件原语实现DBB稀疏(静态)权重和(动态)激活,分别具有非常低的开销。在原语的基础上,我们描述了S2 TA,一个基于脉动阵列的CNN加速器,它利用了传统脉动阵列上不可用的联合权重和激活DBB稀疏性以及数据重用的新维度。在五个流行的CNN基准测试中,与具有零值时钟门控的脉动阵列的强基线相比,16 nm的S2 TA实现了超过2倍的加速和能量降低。与最近的两个非收缩稀疏加速器Eyeriss v2(65 nm)和Sparten(45 nm)相比,65 nm的S2 TA每次推理分别使用约2.2倍和3.1倍的能量。

英文摘要:

Exploiting sparsity is a key technique in accelerating quantized convolutional neural network (CNN) inference on mobile devices. Prior sparse CNN accelerators largely exploit un-structured sparsity and achieve significant speedups. Due to the unbounded, largely unpredictable sparsity patterns, however, exploiting unstructured sparsity requires complicated hardware design with significant energy and area overhead, which is particularly detrimental to mobile/IoT inference scenarios where energy and area efficiency are crucial. We propose to exploit structured sparsity, more specifically, Density Bound Block (DBB) sparsity for both weights and activations. DBB block tensors bound the maximum number of non-zeros per block. DBB thus exposes statically predictable sparsity patterns that enable lean sparsity-exploiting hardware. We propose new hardware primitives to implement DBB sparsity for (static) weights and (dynamic) activations, respectively, with very low overheads. Building on top of the primitives, we describe S2TA, a systolic array-based CNN accelerator that exploits joint weight and activation DBB sparsity and new dimensions of data reuse unavailable on the traditional systolic array. S2TA in 16nm achieves more than 2x speedup and energy reduction compared to a strong baseline of a systolic array with zero-value clock gating, over five popular CNN benchmarks. Compared to two recent non-systolic sparse accelerators, Eyeriss v2 (65nm) and SparTen (45nm), S2TA in 65nm uses about 2.2x and 3.1x less energy per inference, respectively.

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

↑