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

解开SGD中隐式正则化背后的机制

Disentangling the Mechanisms Behind Implicit Regularization in SGD

UC San Diego(加州大学圣地亚哥分校);Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学)

Zachary Novack, Simran Kaur, Tanya Marwah, Saurabh Garg, Zachary C. Lipton

摘要:

已经提出了许多相互竞争的假设来解释为什么小批量随机梯度下降(SGD)会导致全批量机制的泛化能力提高,最近的工作归功于整个训练过程中各种量的隐式正则化。然而,到目前为止,经验证据评估这些假设的解释力是缺乏的。在本文中,我们进行了广泛的实证评估,重点是各种理论化的机制,以关闭小到大批量泛化的差距的能力。此外,我们还描述了SGD在训练过程中如何(隐式地)正则化变化的数量。通过使用微批次,即每个小批次的不相交的较小子集,我们凭经验表明,显式地惩罚梯度范数或Fisher信息矩阵迹,平均超过微批次,在大批量制度恢复小批量SGD泛化,而基于雅可比的正则化不能做到这一点。这种泛化性能通常与正则化模型的梯度范数与小批量SGD的梯度范数的相似程度相关。我们还表明,这种行为打破了微批量大小接近批量大小。最后,我们注意到,在这方面的调查中,CIFAR10的积极实验结果往往在CIFAR100等其他数据集上被逆转,这突出了在更广泛的数据集上测试假设的必要性。

英文摘要:

A number of competing hypotheses have been proposed to explain why small-batch Stochastic Gradient Descent (SGD)leads to improved generalization over the full-batch regime, with recent work crediting the implicit regularization of various quantities throughout training. However, to date, empirical evidence assessing the explanatory power of these hypotheses is lacking. In this paper, we conduct an extensive empirical evaluation, focusing on the ability of various theorized mechanisms to close the small-to-large batch generalization gap. Additionally, we characterize how the quantities that SGD has been claimed to (implicitly) regularize change over the course of training. By using micro-batches, i.e. disjoint smaller subsets of each mini-batch, we empirically show that explicitly penalizing the gradient norm or the Fisher Information Matrix trace, averaged over micro-batches, in the large-batch regime recovers small-batch SGD generalization, whereas Jacobian-based regularizations fail to do so. This generalization performance is shown to often be correlated with how well the regularized model's gradient norms resemble those of small-batch SGD. We additionally show that this behavior breaks down as the micro-batch size approaches the batch size. Finally, we note that in this line of inquiry, positive experimental findings on CIFAR10 are often reversed on other datasets like CIFAR100, highlighting the need to test hypotheses on a wider collection of datasets.

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

↑