arXiv reaDer
畳み込みニューラルネットワークを剪定するための1xNパターン
1xN Pattern for Pruning Convolutional Neural Networks
ネットワークプルーニングは、畳み込みニューラルネットワーク(CNN)の複雑さを軽減することで人気がありますが、モデルの精度を同時に維持し、一般的なCPUで大幅な高速化を実現することは未解決の問題です。この論文では、この制限を打破するための新しい1xN剪定パターンを提案します。特に、同じ入力チャネルインデックスを持つ連続するN個の出力カーネルは、1つのブロックにグループ化されます。これは、プルーニングパターンの基本的なプルーニング粒度として機能します。 1xNパターンは、重要でないと見なされたこれらのブロックを削除します。また、最初に出力チャネル次元の重み行列を再配置して精度を向上させるためにより影響力のあるブロックを導出し、次に入力チャネル次元の次の層の重みに同様の再配置を適用して正しい畳み込み演算を保証するフィルター再配置のワークフローも提供します。さらに、1xNプルーニング後の出力計算は、並列化されたブロック単位のベクトル化された操作によって実現できるため、一般的なCPUで大幅な高速化が実現します。剪定パターンの有効性は、ILSVRC-2012での実験で証明されています。たとえば、プルーニング率が50%でN = 4の場合、MobileNet-V2のトップ1の精度で、フィルタープルーニングよりも約3.0%改善されます。一方、Cortex-A7 CPUでは、ウェイトプルーニングよりも56.04msの推論の節約が得られます。私たちのプロジェクトはhttps://github.com/lmbxmu/1xNで利用できます。
Though network pruning receives popularity in reducing the complexity of convolutional neural networks (CNNs), it remains an open issue to concurrently maintain model accuracy as well as achieve significant speedups on general CPUs. In this paper, we propose a novel 1xN pruning pattern to break this limitation. In particular, consecutive N output kernels with the same input channel index are grouped into one block, which serves as a basic pruning granularity of our pruning pattern. Our 1xN pattern prunes these blocks considered unimportant. We also provide a workflow of filter rearrangement that first rearranges the weight matrix in the output channel dimension to derive more influential blocks for accuracy improvements and then applies similar rearrangement to the next-layer weights in the input channel dimension to ensure correct convolutional operations. Moreover, the output computation after our 1xN pruning can be realized via a parallelized block-wise vectorized operation, leading to significant speedups on general CPUs. The efficacy of our pruning pattern is proved with experiments on ILSVRC-2012. For example, Given the pruning rate of 50% and N=4, our pattern obtains about 3.0% improvements over filter pruning in the top-1 accuracy of MobileNet-V2. Meanwhile, it obtains 56.04ms inference savings on Cortex-A7 CPU over weight pruning. Our project is made available at https://github.com/lmbxmu/1xN.
updated: Wed Nov 17 2021 08:38:44 GMT+0000 (UTC)
published: Mon May 31 2021 05:50:33 GMT+0000 (UTC)
参考文献 (このサイトで利用可能なもの) / References (only if available on this site)
被参照文献 (このサイトで利用可能なものを新しい順に) / Citations (only if available on this site, in order of most recent)
Amazon.co.jpアソシエイト