基于ARMv8结构的有效相关卷积
Towards Effective Depthwise Convolutions on ARMv8 Architecture
摘要:
依赖卷积广泛用于轻量级卷积神经网络(CNN)。依赖卷积的性能主要受内存访问的限制,而不是经典卷积的算术运算,因此直接算法通常比具有额外内存访问的间接算法(矩阵乘法,Winograd和FFT卷积)更有效。然而,ARMv8架构上现有的dependency卷积的直接实现具有不同张量的寄存器级重用之间的糟糕权衡,这通常导致次优性能。在本文中,我们提出了新的直接实现的dependency卷积通过隐式填充,寄存器平铺等,其包含前向传播、后向传播和权重梯度更新过程。与现有的实现相比,我们的新实现可以产生更少的通信开销之间的寄存器和缓存。在两个ARMv8 CPU上的实验结果表明,我们的实现可以提供平均4.88倍和16.4倍的性能分别比现有的直接在开源库和基于矩阵乘法的Pytorch,分别。
英文摘要:
Depthwise convolutions are widely used in lightweight convolutional neural networks (CNNs). The performance of depthwise convolutions is mainly bounded by the memory access rather than the arithmetic operations for classic convolutions so that direct algorithms are often more efficient than indirect ones (matrix multiplication-, Winograd-, and FFT-based convolutions) with additional memory accesses. However, the existing direct implementations of depthwise convolutions on ARMv8 architectures feature a bad trade-off between register-level reuse of different tensors, which usually leads to sub-optimal performance. In this paper, we propose new direct implementations of depthwise convolutions by means of implicit padding, register tiling, etc., which contain forward propagation, backward propagation and weight gradient update procedures. Compared to the existing ones, our new implementations can incur much less communication overhead between registers and cache. Experimental results on two ARMv8 CPUs show that our implementations can averagely deliver 4.88x and 16.4x performance improvement over the existing direct ones in open source libraries and matrix multiplications-based ones in Pytorch, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。