arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.00389cs.AR
收藏

Sense:一种基于Syrup阵列的稀疏CNN加速模型硬件协同设计

Sense: Model Hardware Co-design for Accelerating Sparse CNN on Systolic Array

Wenhao Sun, Deng Liu, Zhiwei Zou, Wendi Sun, Yi Kang, Song Chen

摘要:

稀疏性是卷积神经网络(CNN)的固有属性,值得CNN加速器利用,但额外的处理伴随着硬件开销,导致许多架构只能获得很少的利润。同时,脉动阵列以其高时空局部性和低硬件开销在CNN加速方面越来越具有竞争力。然而,稀疏性的不规则性会导致刚性收缩压下的工作负载不平衡,从而导致性能下降。因此,本文提出了一种基于系统阵列的架构(称为Sense),通过模型-硬件协同设计进行稀疏CNN加速,实现了大幅性能提升。为了平衡处理单元阵列(PE)的输入特征映射(IFM)和权重负载,采用通道聚类方法收集近似稀疏度的IFM进行阵列计算,并共同设计了一种负载平衡权重修剪方法,使每个内核的稀疏度保持在一定值,同时精度损失很小,提高了PE利用率和整体性能。此外,采用自适应数据流配置,根据IFM的存储比例和权重确定计算策略,与Swallow相比,降低了1.17 - 1.8倍的DRAM访问,进一步降低了系统能耗。整个设计在200 MHz的ZynqZCU 102上实现,并在AlexNet,VGG-16,ResNet-50和GoogleNet上分别以471-,34-,53-和191-image/s的速度执行。与基于稀疏收缩阵列的加速器Swallow、FESA和SPOTS相比,Sense在这些CNN上分别实现了1x-2.25x、1.95x-2.5x和1.17x-2.37x的性能提升,且开销合理。

英文摘要:

Sparsity is an intrinsic property of convolutional neural network(CNN) and worth exploiting for CNN accelerators, but extra processing comes with hardware overhead, causing many architectures suffering from only minor profit. Meanwhile, systolic array has been increasingly competitive on CNNs acceleration for its high spatiotemporal locality and low hardware overhead. However, the irregularity of sparsity induces imbalanced workload under the rigid systolic dataflow, causing performance degradation. Thus, this paper proposed a systolicarray-based architecture, called Sense, for sparse CNN acceleration by model-hardware co-design, achieving large performance improvement. To balance input feature map(IFM) and weight loads across Processing Element(PE) array, we applied channel clustering to gather IFMs with approximate sparsity for array computation, and co-designed a load-balancing weight pruning method to keep the sparsity ratio of each kernel at a certain value with little accuracy loss, improving PE utilization and overall performance. Additionally, Adaptive Dataflow Configuration is applied to determine the computing strategy based on the storage ratio of IFMs and weights, lowering 1.17x-1.8x DRAM access compared with Swallow and further reducing system energy consumption. The whole design is implemented on ZynqZCU102 with 200MHz and performs at 471-, 34-, 53- and 191-image/s for AlexNet, VGG-16, ResNet-50 and GoogleNet respectively. Compared against sparse systolic-array-based accelerators, Swallow, FESA and SPOTS, Sense achieves 1x-2.25x, 1.95x-2.5x and 1.17x-2.37x performance improvement on these CNNs respectively with reasonable overhead.

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

↑