arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1901.02757cs.LGstat.ML
收藏

有多紧凑?:通过逐层剪枝评估表示的紧性

How Compact?: Assessing Compactness of Representations through Layer-Wise Pruning

Samsung Research(三星研究院);Samsung Electronics(三星电子);Texas A&M University(得克萨斯农工大学)

Hyun-Joo Jung, Jaedeok Kim, Yoonsuck Choe

摘要:

在嵌入深度神经网络(DNN)的许多层中可能出现各种形式的表示。其中,我们在哪里可以找到最紧凑的表示?我们建议使用一个修剪框架来回答这个问题:如何压缩每一层,而不损失性能?大多数现有的DNN压缩方法没有考虑各个层的相对可压缩性。它们统一地将单个目标稀疏性应用于所有层,或者使用算法和额外的训练来适应层稀疏性。我们提出了一个原则性的方法,自动确定的稀疏性的各个层的重要性。为了做到这一点,我们考虑一个度量来衡量每一层的重要性的基础上逐层的能力。给定训练好的模型和总目标稀疏度,我们首先评估模型中每一层的重要性。根据评估的重要性,我们计算每层的逐层稀疏度。所提出的方法可以应用于任何DNN架构,并且可以与任何以总目标稀疏度为参数的修剪方法相结合。为了验证所提出的方法,我们进行了图像分类任务与两种类型的DNN架构上的两个基准数据集,并使用三种修剪方法进行压缩。在ImageNet数据集上使用权重修剪的VGG-16模型的情况下,在相同的总目标稀疏度下,我们实现了比基线高出75%(平均17.5%)的前5名准确率。此外,我们还分析了网络中最大压缩可能发生的位置。这种分析可以帮助我们识别深度神经网络中最紧凑的表示。

英文摘要:

Various forms of representations may arise in the many layers embedded in deep neural networks (DNNs). Of these, where can we find the most compact representation? We propose to use a pruning framework to answer this question: How compact can each layer be compressed, without losing performance? Most of the existing DNN compression methods do not consider the relative compressibility of the individual layers. They uniformly apply a single target sparsity to all layers or adapt layer sparsity using heuristics and additional training. We propose a principled method that automatically determines the sparsity of individual layers derived from the importance of each layer. To do this, we consider a metric to measure the importance of each layer based on the layer-wise capacity. Given the trained model and the total target sparsity, we first evaluate the importance of each layer from the model. From the evaluated importance, we compute the layer-wise sparsity of each layer. The proposed method can be applied to any DNN architecture and can be combined with any pruning method that takes the total target sparsity as a parameter. To validate the proposed method, we carried out an image classification task with two types of DNN architectures on two benchmark datasets and used three pruning methods for compression. In case of VGG-16 model with weight pruning on the ImageNet dataset, we achieved up to 75% (17.5% on average) better top-5 accuracy than the baseline under the same total target sparsity. Furthermore, we analyzed where the maximum compression can occur in the network. This kind of analysis can help us identify the most compact representation within a deep neural network.

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

↑