[论文解读] Gradient-Coherent Strong Regularization for Deep Neural Networks
本文提出梯度一致强正则化方法,该方法仅在梯度保持一致时选择性地应用强 L1/L2 正则化,从而防止训练失败。通过避免随机梯度下降过程中主导正则化梯度引起的破坏性权重衰减,该方法实现了高达 9.9 倍的模型压缩,并提升了准确率。
Regularization plays an important role in generalization of deep neural networks, which are often prone to overfitting with their numerous parameters. L1 and L2 regularizers are common regularization tools in machine learning with their simplicity and effectiveness. However, we observe that imposing strong L1 or L2 regularization with stochastic gradient descent on deep neural networks easily fails, which limits the generalization ability of the underlying neural networks. To understand this phenomenon, we first investigate how and why learning fails when strong regularization is imposed on deep neural networks. We then propose a novel method, gradient-coherent strong regularization, which imposes regularization only when the gradients are kept coherent in the presence of strong regularization. Experiments are performed with multiple deep architectures on three benchmark data sets for image recognition. Experimental results show that our proposed approach indeed endures strong regularization and significantly improves both accuracy and compression (up to 9.9x), which could not be achieved otherwise.
研究动机与目标
- 研究为何在使用随机梯度下降时,强 L1/L2 正则化会在深层神经网络中导致失败。
- 解决强正则化下学习失败的问题,该问题会导致过度权重衰减和梯度消失。
- 开发一种方法,实现在不损害训练稳定性或模型性能的前提下进行强正则化。
- 通过稀疏且强正则化的解实现高模型压缩和改进的泛化能力。
提出的方法
- 该方法引入梯度一致性条件,以确定在每个训练步骤是否应用强正则化。
- 仅当损失梯度与正则化梯度之和的方向与损失梯度方向保持一致时,才施加正则化。
- 通过总梯度与损失梯度之间的余弦相似度来度量一致性,确保正则化不会干扰学习信号。
- 当梯度变得不一致时,该方法动态跳过正则化,从而防止权重和梯度幅值被持续抑制。
- 该方法具有通用性,适用于 L1 和 L2 正则化,可集成到标准 SGD 训练流程中。
- 避免了标准强正则化中梯度和权重幅值的指数衰减,从而保留了学习能力。
实验结果
研究问题
- RQ1为何在使用随机梯度下降时,强 L1 或 L2 正则化会导致深层神经网络训练失败?
- RQ2是什么导致正则化梯度占主导地位,从而抑制学习并引发权重衰减?
- RQ3如果仅在梯度保持一致时应用正则化,是否可以强正则化而不破坏学习过程?
- RQ4强正则化在不损失准确率的前提下,能在多大程度上改善模型泛化能力和压缩率?
- RQ5梯度一致性如何作为深层网络中选择性正则化应用的可靠判据?
主要发现
- 所提方法成功训练了使用强 L2 正则化(λ = 2×10⁻³)的深层神经网络,其准确率高于使用较弱正则化(λ = 1×10⁻³)的基线模型。
- 所提方法在第 20 个周期后梯度幅值趋于稳定,避免了标准强正则化中观察到的指数衰减。
- 所提模型的权重幅值在某一时刻后停止减小,表明有效防止了持续抑制。
- 该方法在保持或提升测试准确率的同时,实现了高达 9.9 倍的模型尺寸压缩。
- 在三个基准数据集(CIFAR-10、CIFAR-100、ImageNet)上,该方法在准确率和稀疏性方面均持续优于标准强正则化。
- 该方法通过 L1 正则化实现了稀疏解,其稀疏度显著高于基线模型(保留参数比例为 10–30% 对比 20–90%),且未造成准确率损失。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。