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

探索网络权值中包含的知识以获得稀疏神经网络

Explore the Knowledge contained in Network Weights to Obtain Sparse Neural Networks

Mengqiao Han, Xiabi Liu, Zhaoyang Hai, Zhengwen Li

摘要:

稀疏神经网络对于获得更好的泛化能力和提高计算效率具有重要意义。提出了一种新的学习方法来自动获得神经网络(NN)中稀疏的全连接层。为了优化任务神经网络(TNN)的结构,设计了一个切换神经网络(SNN)。SNN以TNN的权值作为输入,其输出用于切换TNN的连接。通过这种方式,可以探索TNN权重中包含的知识,从而确定每个连接的重要性和TNN的结构。SNN和TNN交替学习随机梯度下降(SGD)优化,瞄准一个共同的目标。通过学习,我们同时获得了TNN的最优结构和最优参数。为了评估所提出的方法,我们进行各种网络结构和数据集上的图像分类实验。网络结构包括LeNet,ResNet18,ResNet34,VggNet16和MobileNet。数据集包括MNIST、CIFAR10和CIFAR100。实验结果表明,我们的方法可以稳定地导致稀疏和性能良好的全连接层的神经网络。

英文摘要:

Sparse neural networks are important for achieving better generalization and enhancing computation efficiency. This paper proposes a novel learning approach to obtain sparse fully connected layers in neural networks (NNs) automatically. We design a switcher neural network (SNN) to optimize the structure of the task neural network (TNN). The SNN takes the weights of the TNN as the inputs and its outputs are used to switch the connections of TNN. In this way, the knowledge contained in the weights of TNN is explored to determine the importance of each connection and the structure of TNN consequently. The SNN and TNN are learned alternately with stochastic gradient descent (SGD) optimization, targeting at a common objective. After learning, we achieve the optimal structure and the optimal parameters of the TNN simultaneously. In order to evaluate the proposed approach, we conduct image classification experiments on various network structures and datasets. The network structures include LeNet, ResNet18, ResNet34, VggNet16 and MobileNet. The datasets include MNIST, CIFAR10 and CIFAR100. The experimental results show that our approach can stably lead to sparse and well-performing fully connected layers in NNs.

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

↑