arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.07707cs.CV
收藏

点态卷积的频域稠密剪枝

Dense Pruning of Pointwise Convolutions in the Frequency Domain

Cornell University(康奈尔大学)

Mark Buckler, Neil Adit, Yuwei Hu, Zhiru Zhang, Adrian Sampson

摘要:

相关可分离卷积和频域卷积是构建高效卷积神经网络的两种新思想。它们似乎是不相容的:深度可分离的CNN中的绝大多数操作都在逐点卷积层中,但是逐点层使用1 × 1内核,这并不受益于频率变换。本文通过转换激活,而不是内核,统一了这两个想法。我们的关键见解是:1)逐点卷积与频率变换互换,因此可以在频域中计算而无需修改,2)给定层内的每个通道对频域修剪具有不同的敏感度水平,以及3)每个通道对频率修剪的敏感度相对于频率近似单调。我们通过提出一种新技术来利用这些知识,该技术将每个逐点层包裹在离散余弦变换(DCT)中,该DCT被截断以根据每个通道的需要选择性地修剪高于给定阈值的系数。为了学习哪些频率应该从哪些信道中修剪,我们引入了一个新的学习参数,指定每个信道的修剪阈值。我们添加了一个新的正则化项,激励模型减少保留频率的数量,同时仍然保持任务的准确性。与依赖于稀疏算子的权重修剪技术不同,我们的连续频带修剪导致完全密集的计算。我们将我们的技术应用于MobileNetV2,并在此过程中将计算时间减少了22%,准确性降低了<1%。

英文摘要:

Depthwise separable convolutions and frequency-domain convolutions are two recent ideas for building efficient convolutional neural networks. They are seemingly incompatible: the vast majority of operations in depthwise separable CNNs are in pointwise convolutional layers, but pointwise layers use 1x1 kernels, which do not benefit from frequency transformation. This paper unifies these two ideas by transforming the activations, not the kernels. Our key insights are that 1) pointwise convolutions commute with frequency transformation and thus can be computed in the frequency domain without modification, 2) each channel within a given layer has a different level of sensitivity to frequency domain pruning, and 3) each channel's sensitivity to frequency pruning is approximately monotonic with respect to frequency. We leverage this knowledge by proposing a new technique which wraps each pointwise layer in a discrete cosine transform (DCT) which is truncated to selectively prune coefficients above a given threshold as per the needs of each channel. To learn which frequencies should be pruned from which channels, we introduce a novel learned parameter which specifies each channel's pruning threshold. We add a new regularization term which incentivizes the model to decrease the number of retained frequencies while still maintaining task accuracy. Unlike weight pruning techniques which rely on sparse operators, our contiguous frequency band pruning results in fully dense computation. We apply our technique to MobileNetV2 and in the process reduce computation time by 22% and incur <1% accuracy degradation.

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

↑