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

全局稀疏约束下神经网络的有效稀疏化

Effective Sparsification of Neural Networks with Global Sparsity Constraint

The Hong Kong University of Science and Technology(香港科技大学)

Xiao Zhou, Weizhong Zhang, Hang Xu, Tong Zhang

摘要:

权重修剪是一种有效的技术,可以减少现实世界部署中深度神经网络的模型大小和推理时间。然而,由于权重的大小和相对重要性对于神经网络的不同层是非常不同的,现有的方法依赖于手动调整或手工制作的启发式规则来单独地为每一层找到适当的修剪率。这种方法通常导致次优性能。在本文中,通过直接工作的概率空间,我们提出了一个有效的网络稀疏化方法称为{ \it概率掩蔽}(ProbMask),它解决了一个自然的稀疏化公式下的全局稀疏性约束。关键思想是使用概率作为所有层的全局标准来衡量权重重要性。ProbMask的一个吸引人的特点是,权重冗余的数量可以通过我们的约束自动学习,从而避免了为网络中的不同层单独调整修剪率的问题。在CIFAR-10/100和ImageNet上的大量实验结果表明,我们的方法是非常有效的,并且可以明显优于以前的最先进的方法,特别是在高剪枝率的情况下。值得注意的是,我们的ProbMask和现有方法之间的Top-1准确度的差距可以高达10%。作为副产品,我们表明ProbMask在识别超级掩码方面也非常有效,超级掩码是随机加权密集神经网络中具有高性能的子网络。

英文摘要:

Weight pruning is an effective technique to reduce the model size and inference time for deep neural networks in real-world deployments. However, since magnitudes and relative importance of weights are very different for different layers of a neural network, existing methods rely on either manual tuning or handcrafted heuristic rules to find appropriate pruning rates individually for each layer. This approach generally leads to suboptimal performance. In this paper, by directly working on the probability space, we propose an effective network sparsification method called {\it probabilistic masking} (ProbMask), which solves a natural sparsification formulation under global sparsity constraint. The key idea is to use probability as a global criterion for all layers to measure the weight importance. An appealing feature of ProbMask is that the amounts of weight redundancy can be learned automatically via our constraint and thus we avoid the problem of tuning pruning rates individually for different layers in a network. Extensive experimental results on CIFAR-10/100 and ImageNet demonstrate that our method is highly effective, and can outperform previous state-of-the-art methods by a significant margin, especially in the high pruning rate situation. Notably, the gap of Top-1 accuracy between our ProbMask and existing methods can be up to 10\%. As a by-product, we show ProbMask is also highly effective in identifying supermasks, which are subnetworks with high performance in a randomly weighted dense neural network.

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

↑