CSB-RNN:一种基于压缩结构块的快于实时的RNN加速框架
CSB-RNN: A Faster-than-Realtime RNN Acceleration Framework with Compressed Structured Blocks
摘要:
递归神经网络(RNN)已被广泛应用于时间序列分析,其中实时性能往往是需要的。然而,RNN的计算工作量很大,因为模型通常具有较大的权重矩阵。已经提出了RNN的剪枝方案,以消除冗余(接近零)的权重值。一方面,非结构化剪枝方法虽然剪枝率高,但会引入计算不规则性(随机稀疏性),对并行硬件不友好。另一方面,面向硬件的结构化剪枝由于对允许的剪枝结构的限制而导致剪枝率低。本文提出了CSB-RNN,一个优化的全栈RNN框架,具有新的压缩结构块(CSB)修剪技术。CSB修剪RNN模型具有精细的修剪粒度,有利于高修剪率和规则的结构,有利于硬件并行性。为了解决并行化的CSB修剪模型推理与细粒度的结构稀疏性的挑战,我们提出了一种新的硬件架构与专用的编译器。从架构编译协同设计中获益,硬件不仅支持各种RNN单元类型,而且还能够解决具有挑战性的工作负载不平衡问题,从而显着提高硬件效率。
英文摘要:
Recurrent neural networks (RNNs) have been widely adopted in temporal sequence analysis, where realtime performance is often in demand. However, RNNs suffer from heavy computational workload as the model often comes with large weight matrices. Pruning schemes have been proposed for RNNs to eliminate the redundant (close-to-zero) weight values. On one hand, the non-structured pruning methods achieve a high pruning rate but introducing computation irregularity (random sparsity), which is unfriendly to parallel hardware. On the other hand, hardware-oriented structured pruning suffers from low pruning rate due to restricted constraints on allowable pruning structure. This paper presents CSB-RNN, an optimized full-stack RNN framework with a novel compressed structured block (CSB) pruning technique. The CSB pruned RNN model comes with both fine pruning granularity that facilitates a high pruning rate and regular structure that benefits the hardware parallelism. To address the challenges in parallelizing the CSB pruned model inference with fine-grained structural sparsity, we propose a novel hardware architecture with a dedicated compiler. Gaining from the architecture-compilation co-design, the hardware not only supports various RNN cell types, but is also able to address the challenging workload imbalance issue and therefore significantly improves the hardware efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。