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

深度神经网络的并发训练与层级剪枝

Concurrent Training and Layer Pruning of Deep Neural Networks

University of California, Irvine(加州大学欧文分校)

Valentin Frank Ingmar Guenter, Athanasios Sideris

AI总结:

本文提出一种基于变分推断和残差连接的并发训练与层级剪枝算法,通过“展平”超先验和投影SGD实现早期自动识别并移除不相关层,在多个数据集和架构上以更低计算成本达到领先的层级剪枝性能。

摘要:

我们提出了一种能够在训练早期阶段识别并消除神经网络中不相关层的算法。与权重级或滤波器级剪枝相比,层级剪枝能够减少神经网络中更难并行化的顺序计算。我们采用一种在网络非线性部分周围使用残差连接的结构,使得一旦某个非线性部分被剪枝,信息仍能通过网络流动。我们的方法基于变分推断原理,在神经网络权重上使用高斯尺度混合先验,并能在训练和推理过程中实现显著的成本节约。更具体地说,我们学习标量伯努利随机变量的变分后验分布,这些变量乘以其非线性部分的层权重矩阵,类似于自适应逐层 dropout。为了克服并发学习和剪枝所面临的挑战,例如过早剪枝以及对权重初始化或起始网络规模缺乏鲁棒性的问题,我们在先验参数上采用了“展平”超先验。我们证明,由于其使用,所得到的优化问题的解描述了具有后验分布参数为 0 或 1 的确定性网络。我们提出了一种投影 SGD 算法,并利用随机逼近结果证明了其收敛到这样的解。特别地,我们证明了导致某层权重收敛到零的条件,并从理论结果中推导出实用的剪枝条件。所提出的算法在 MNIST、CIFAR-10 和 ImageNet 数据集以及常见的 LeNet、VGG16 和 ResNet 架构上进行了评估。仿真结果表明,由于并发训练和剪枝,与竞争方法相比,我们的方法在降低计算成本的同时实现了最先进的层级剪枝性能。

英文摘要:

We propose an algorithm capable of identifying and eliminating irrelevant layers of a neural network during the early stages of training. In contrast to weight or filter-level pruning, layer pruning reduces the harder to parallelize sequential computation of a neural network. We employ a structure using residual connections around nonlinear network sections that allow the flow of information through the network once a nonlinear section is pruned. Our approach is based on variational inference principles using Gaussian scale mixture priors on the neural network weights and allows for substantial cost savings during both training and inference. More specifically, the variational posterior distribution of scalar Bernoulli random variables multiplying a layer weight matrix of its nonlinear sections is learned, similarly to adaptive layer-wise dropout. To overcome challenges of concurrent learning and pruning such as premature pruning and lack of robustness with respect to weight initialization or the size of the starting network, we adopt the "flattening" hyper-prior on the prior parameters. We prove that, as a result of its usage, the solutions of the resulting optimization problem describe deterministic networks with parameters of the posterior distribution at either 0 or 1. We formulate a projected SGD algorithm and prove its convergence to such a solution using stochastic approximation results. In particular, we prove conditions that lead to a layer's weights converging to zero and derive practical pruning conditions from the theoretical results. The proposed algorithm is evaluated on the MNIST, CIFAR-10 and ImageNet datasets and common LeNet, VGG16 and ResNet architectures. The simulations demonstrate that our method achieves state-of the-art performance for layer pruning at reduced computational cost in distinction to competing methods due to the concurrent training and pruning.

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

↑