基于前向和反向传播稀疏化的高效神经网络训练
Efficient Neural Network Training via Forward and Backward Propagation Sparsification
摘要:
稀疏训练是加快深度神经网络训练速度和节省内存使用的自然想法,特别是因为大型现代神经网络明显过度参数化。然而,大多数现有的方法在实践中不能实现这一目标,因为基于链规则的梯度(w.r.t.结构参数)估计至少在反向传播步骤中需要密集计算。本文通过提出一种有效的稀疏训练方法来解决这个问题,该方法具有完全稀疏的向前和向后传递。我们首先制定的训练过程中作为一个连续的全局稀疏约束下的最小化问题。然后,我们将优化过程分为两个步骤,对应的权重更新和结构参数更新。对于前一步,我们使用传统的链规则,它可以通过利用稀疏结构稀疏。对于后一步,而不是在现有的方法中使用基于链规则的梯度估计,我们提出了一个方差减少的策略梯度估计,它只需要两个前向通过没有向后传播,从而实现完全稀疏的训练。我们证明了我们的梯度估计的方差是有界的。在真实世界数据集上的大量实验结果表明,与以前的方法相比,我们的算法在加速训练过程方面更有效,快了一个数量级。
英文摘要:
Sparse training is a natural idea to accelerate the training speed of deep neural networks and save the memory usage, especially since large modern neural networks are significantly over-parameterized. However, most of the existing methods cannot achieve this goal in practice because the chain rule based gradient (w.r.t. structure parameters) estimators adopted by previous methods require dense computation at least in the backward propagation step. This paper solves this problem by proposing an efficient sparse training method with completely sparse forward and backward passes. We first formulate the training process as a continuous minimization problem under global sparsity constraint. We then separate the optimization process into two steps, corresponding to weight update and structure parameter update. For the former step, we use the conventional chain rule, which can be sparse via exploiting the sparse structure. For the latter step, instead of using the chain rule based gradient estimators as in existing methods, we propose a variance reduced policy gradient estimator, which only requires two forward passes without backward propagation, thus achieving completely sparse training. We prove that the variance of our gradient estimator is bounded. Extensive experimental results on real-world datasets demonstrate that compared to previous methods, our algorithm is much more effective in accelerating the training process, up to an order of magnitude faster.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。