Skip to main content
QUICK REVIEW

[论文解读] Time Matters in Regularizing Deep Networks: Weight Decay and Data Augmentation Affect Early Learning Dynamics, Matter Little Near Convergence

Aditya Golatkar, Alessandro Achille|arXiv (Cornell University)|May 30, 2019
Stochastic Gradient Optimization TechniquesComputer Science参考文献 31被引用 21
一句话总结

本文表明,通过权重衰减或数据增强进行正则化,主要通过影响训练初期的动力学行为来改善泛化性能,而非改变模型收敛后的损失景观。关键发现是在训练初期存在一个‘关键时期’,此时正则化至关重要;若在后期才应用正则化,即使最终模型收敛到相同解,其影响也微乎其微。

ABSTRACT

Regularization is typically understood as improving generalization by altering the landscape of local extrema to which the model eventually converges. Deep neural networks (DNNs), however, challenge this view: We show that removing regularization after an initial transient period has little effect on generalization, even if the final loss landscape is the same as if there had been no regularization. In some cases, generalization even improves after interrupting regularization. Conversely, if regularization is applied only after the initial transient, it has no effect on the final solution, whose generalization gap is as bad as if regularization never happened. This suggests that what matters for training deep networks is not just whether or how, but when to regularize. The phenomena we observe are manifest in different datasets (CIFAR-10, CIFAR-100), different architectures (ResNet-18, All-CNN), different regularization methods (weight decay, data augmentation), different learning rate schedules (exponential, piece-wise constant). They collectively suggest that there is a ``critical period'' for regularizing deep networks that is decisive of the final performance. More analysis should, therefore, focus on the transient rather than asymptotic behavior of learning.

研究动机与目标

  • 研究正则化的时机是否会影响深度神经网络的泛化性能。
  • 挑战传统观点,即正则化通过改变收敛时的最终损失景观来发挥作用。
  • 识别出在训练初期存在一个短暂的‘关键时期’,在此期间正则化对最终性能的影响最大。
  • 探讨正则化的主要作用是引导初始优化动力学朝向可泛化的解方向发展。
  • 将研究重点从渐近收敛行为转向深度学习理论与分析中的瞬态动力学。

提出的方法

  • 在多个架构和数据集上,系统性地仅在特定训练阶段(早期、晚期或滑动窗口)应用权重衰减和数据增强。
  • 在不同训练阶段开启或关闭正则化,比较最终测试准确率和泛化差距。
  • 使用费雪信息矩阵(FIM)范数分析优化动力学的变化,并识别关键时期。
  • 通过在CIFAR-10、CIFAR-100、ResNet-18、All-CNN以及多种学习率调度策略下对比结果,验证方法的鲁棒性。
  • 分析FIM范数峰值与泛化性能之间的关系,以检测正则化对学习轨迹影响最大的时刻。
  • 通过在正则化被移除或延迟后测量测试准确率,对比瞬态效应与渐近行为。

实验结果

研究问题

  • RQ1正则化的时机是否显著影响深度神经网络的泛化性能,且独立于是否应用正则化本身?
  • RQ2是否存在一个特定的‘关键时期’,在训练初期正则化对最终模型性能的影响最为决定性?
  • RQ3若仅在训练后期应用正则化,是否仍能改善泛化性能,还是完全无效?
  • RQ4如果正则化并未改变最终的损失景观,为何在批量归一化网络中权重衰减仍然有效,尽管存在权重尺度不变性?
  • RQ5在训练初期的瞬态动力学在多大程度上决定了最终解,而非收敛点本身?

主要发现

  • 仅在初始瞬态阶段应用权重衰减或数据增强,即可实现最优泛化性能,即使之后移除正则化。
  • 仅在最终收敛阶段应用正则化,对泛化性能的影响微乎其微,甚至可能产生负面影响,尽管这会改变最终的损失函数。
  • 正则化的关键时期仅持续几个早期训练周期,且当正则化在此窗口期内激活时,其影响最大。
  • 训练过程中费雪信息矩阵(FIM)范数的峰值与关键时期强相关,表明其在瞬态动力学中起关键作用。
  • 在关键时期之后切换正则化状态,即使权重值和损失函数发生变化,泛化性能仍保持不变,表明最终解对后期正则化不敏感。
  • 正则化在深度网络中的机制并非重塑最终的损失景观,而是通过引导优化路径,使其趋向于包含多个可泛化解的区域。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。