BBS:面向深度学习加速的双向比特级稀疏性
BBS: Bi-directional Bit-level Sparsity for Deep Learning Acceleration
AI总结:
本文提出双向比特稀疏性BBS及免重训二值剪枝、张量编码方案,并协同设计BitVert比特串行加速器,在七个DNN上实现模型压缩、加速与节能。
摘要:
比特级稀疏性方法会跳过无效的零比特运算,通常适用于比特串行深度学习加速器。这种比特级稀疏性尤其值得关注,因为它与量化和剪枝等其他深度神经网络(DNN)效率方法既正交又兼容。在本文中,我们通过一种新颖的算法级比特剪枝、平均与压缩方法,以及协同设计的高效比特串行硬件加速器,提升了比特级稀疏性的实用性和效率。在算法方面,我们提出双向比特稀疏性(BBS)。BBS的关键洞见是,我们可以以对称方式利用比特稀疏性,对零比特或一比特进行剪枝。这显著改善了比特串行计算的负载均衡,并保证稀疏度超过50%。在BBS之上,我们进一步提出两种比特级二值剪枝方法,这些方法无需重新训练,并且可以无缝应用于量化后的DNN。通过将二值剪枝与新的张量编码方案相结合,BBS既能够跳过计算,又能够减少与双向稀疏比特列相关的内存占用。在硬件方面,我们通过BitVert展示了BBS的潜力;BitVert是一种比特串行架构,具有高效的PE设计,可利用我们提出的二值剪枝,以低开销加速DNN。在七个具有代表性的DNN模型上的评估表明,我们的方法实现了:(1)模型大小平均缩减1.66倍,而精度损失可忽略不计,低于0.5%;(2)与以往DNN加速器相比,最高实现3.03倍的加速和2.44倍的能耗节省。
英文摘要:
Bit-level sparsity methods skip ineffectual zero-bit operations and are typically applicable within bit-serial deep learning accelerators. This type of sparsity at the bit-level is especially interesting because it is both orthogonal and compatible with other deep neural network (DNN) efficiency methods such as quantization and pruning. In this work, we improve the practicality and efficiency of bitlevel sparsity through a novel algorithmic bit-pruning, averaging, and compression method, and a co-designed efficient bit-serial hardware accelerator. On the algorithmic side, we introduce bidirectional bit sparsity (BBS). The key insight of BBS is that we can leverage bit sparsity in a symmetrical way to prune either zero-bits or one-bits. This significantly improves the load balance of bit-serial computing and guarantees the level of sparsity to be more than 50%. On top of BBS, we further propose two bit-level binary pruning methods that require no retraining, and can be seamlessly applied to quantized DNNs. Combining binary pruning with a new tensor encoding scheme, BBS can both skip computation and reduce the memory footprint associated with bi-directional sparse bit columns. On the hardware side, we demonstrate the potential of BBS through BitVert, a bitserial architecture with an efficient PE design to accelerate DNNs with low overhead, exploiting our proposed binary pruning. Evaluation on seven representative DNN models shows that our approach achieves: (1) on average 1.66$\times$ reduction in model sizewith negligible accuracy loss of < 0.5%; (2) up to 3.03$\times$ speedupand 2.44$\times$ energy saving compared to prior DNN accelerators.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。