arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1601.06815cs.NEcs.LG
收藏

利用快速傅立叶变换和重叠相加训练卷积神经网络

Very Efficient Training of Convolutional Neural Networks using Fast Fourier Transform and Overlap-and-Add

Wright State University(莱特州立大学);Air Force Research Laboratory(空军研究实验室)

Tyler Highlander, Andres Rodriguez

摘要:

卷积神经网络(CNN)目前是各种分类任务的最新技术,但计算昂贵。通过卷积层的迭代是非常慢的,因为每层中的每个核必须顺序地计算用于单个前向和后向传播的许多点积,这等于每层每核$\mathcal{O}(N^{2}n^{2})$,其中输入是$N \times N$阵列,并且核是$n \times n$阵列。卷积可以作为频域中的Hadamard乘积有效地执行。瓶颈是使用快速傅立叶变换(FFT)的具有$\mathcal{O}(N^{2}\log_2 N)$的成本的变换。然而,当使用$N\gg n$时,效率的提高不太显著,CNN就是这种情况。我们通过使用“累加”技术将计算复杂性降低到每个内核的$\mathcal{O}(N^2\log_2 n)$来减轻这一点。这种方法提高了算法在前向和后向传播中的效率,减少了CNN的训练和测试时间。我们的经验结果表明,我们的方法减少了计算时间的一个因素,高达16.3倍的传统卷积实现8 $\times$ 8内核和224 $\times$ 224图像。

英文摘要:

Convolutional neural networks (CNNs) are currently state-of-the-art for various classification tasks, but are computationally expensive. Propagating through the convolutional layers is very slow, as each kernel in each layer must sequentially calculate many dot products for a single forward and backward propagation which equates to $\mathcal{O}(N^{2}n^{2})$ per kernel per layer where the inputs are $N \times N$ arrays and the kernels are $n \times n$ arrays. Convolution can be efficiently performed as a Hadamard product in the frequency domain. The bottleneck is the transformation which has a cost of $\mathcal{O}(N^{2}\log_2 N)$ using the fast Fourier transform (FFT). However, the increase in efficiency is less significant when $N\gg n$ as is the case in CNNs. We mitigate this by using the "overlap-and-add" technique reducing the computational complexity to $\mathcal{O}(N^2\log_2 n)$ per kernel. This method increases the algorithm's efficiency in both the forward and backward propagation, reducing the training and testing time for CNNs. Our empirical results show our method reduces computational time by a factor of up to 16.3 times the traditional convolution implementation for a 8 $\times$ 8 kernel and a 224 $\times$ 224 image.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑