一句话:提出广义复用模式及精度/延迟分析模型,显著加速微控制器上的 DNN 推理。
深度神经网络在微控制器等资源受限设备上部署时计算需求高,利用输入数据与激活图中的冗余进行计算复用可加速推理,但现有复用优化对数据复用模式的定义过于狭窄。本文提出广义复用概念,揭示广义复用模式与输入/激活图的矩阵视图行列重排之间的关系,从而大幅扩展可探索的复用空间;进一步提出两个分析模型,评估复用模式对 DNN 精度和延迟的影响,以高效选择合适模式。实验表明,广义复用在不同 DNN 与微控制器硬件上均带来显著收益,相比传统复用实现 1.03-2.2 倍加速或 1-8% 精度提升。
Deep Neural Networks (DNNs) face challenges in deployment on resource-constrained devices due to their high computational demands. Leveraging redundancy in input data and activation maps for computation reuse is an effective way to accelerate DNN inference, especially for microcontrollers where the computing power is very limited. This work points out an important limitation in current reuse-based DNN optimizations, the narrow definition of reuse patterns in data. It proposes the concept of generalized reuse and uncovers the relations between generalized reuse patterns and row/column reorder of a matrix view of the input or activation map of a DNN. It revolutionizes the conventional view of explorable reuse patterns, drastically expanding the reuse space. It further develops two novel analytical models for analyzing the impacts of reuse patterns on the accuracy and latency of DNNs, enabling efficient selection of appropriate reuse patterns. Experiments show that generalized reuse consistently brings significant benefits, regardless of the differences among DNNs or microcontroller hardware. It delivers 1.03-2.2x speedups or 1-8% accuracy improvement over conventional reuse.