CirCNN:使用Block-CirculantWeight矩阵加速和压缩深度神经网络
CirCNN: Accelerating and Compressing Deep Neural Networks Using Block-CirculantWeight Matrices
摘要:
大规模深度神经网络(DNN)是计算和存储密集型的。随着DNN的规模不断增长,在保持准确性的同时提高能效和性能至关重要。对于DNN,模型大小是影响性能、可扩展性和能效的重要因素。权值修剪虽然取得了很好的压缩比,但存在三个缺点:1)修剪后网络结构不规则; 2)训练复杂度增加; 3)压缩比和推理精度缺乏严格保证。为了克服这些限制,本文提出了CirCNN,这是一种使用块循环矩阵表示权重和处理神经网络的原则性方法。CirCNN利用基于快速傅立叶变换(FFT)的快速乘法,同时将计算复杂性(在推理和训练中)从O(n2)降低到O(nlogn),并将存储复杂度从O(n2)降低到O(n),精度损失可以忽略不计。与其他方法相比,CirCNN由于其数学严谨性而与众不同:它可以在不压缩的情况下收敛到与DNN相同的有效性。CirCNN架构,一种通用DNN推理引擎,可以在具有可配置网络架构的各种硬件/软件平台上实现。为了证明性能和能效,我们在FPGA,ASIC和嵌入式处理器中测试了CirCNN。我们的研究结果表明,CirCNN架构实现了非常高的能源效率和性能,硬件占用空间小。基于FPGA实现和ASIC合成结果,CirCNN实现了6- 102倍的能效提升,与最佳的最先进的结果相比。
英文摘要:
Large-scale deep neural networks (DNNs) are both compute and memory intensive. As the size of DNNs continues to grow, it is critical to improve the energy efficiency and performance while maintaining accuracy. For DNNs, the model size is an important factor affecting performance, scalability and energy efficiency. Weight pruning achieves good compression ratios but suffers from three drawbacks: 1) the irregular network structure after pruning; 2) the increased training complexity; and 3) the lack of rigorous guarantee of compression ratio and inference accuracy. To overcome these limitations, this paper proposes CirCNN, a principled approach to represent weights and process neural networks using block-circulant matrices. CirCNN utilizes the Fast Fourier Transform (FFT)-based fast multiplication, simultaneously reducing the computational complexity (both in inference and training) from O(n2) to O(nlogn) and the storage complexity from O(n2) to O(n), with negligible accuracy loss. Compared to other approaches, CirCNN is distinct due to its mathematical rigor: it can converge to the same effectiveness as DNNs without compression. The CirCNN architecture, a universal DNN inference engine that can be implemented on various hardware/software platforms with configurable network architecture. To demonstrate the performance and energy efficiency, we test CirCNN in FPGA, ASIC and embedded processors. Our results show that CirCNN architecture achieves very high energy efficiency and performance with a small hardware footprint. Based on the FPGA implementation and ASIC synthesis results, CirCNN achieves 6-102X energy efficiency improvements compared with the best state-of-the-art results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。