Skip to main content
QUICK REVIEW

[论文解读] On the Generalization Mystery in Deep Learning

Satrajit Chatterjee, Piotr Zieliński|arXiv (Cornell University)|Mar 18, 2022
Domain Adaptation and Few-Shot LearningComputer Science被引用 23
一句话总结

本文提出 Coherent Gradients,一种理论,超参数化神经网络的泛化性来自训练过程中对每个样本梯度之间的一致性,并提出稳定、鲁棒的方式来衰减弱梯度方向以提高泛化。

ABSTRACT

The generalization mystery in deep learning is the following: Why do over-parameterized neural networks trained with gradient descent (GD) generalize well on real datasets even though they are capable of fitting random datasets of comparable size? Furthermore, from among all solutions that fit the training data, how does GD find one that generalizes well (when such a well-generalizing solution exists)? We argue that the answer to both questions lies in the interaction of the gradients of different examples during training. Intuitively, if the per-example gradients are well-aligned, that is, if they are coherent, then one may expect GD to be (algorithmically) stable, and hence generalize well. We formalize this argument with an easy to compute and interpretable metric for coherence, and show that the metric takes on very different values on real and random datasets for several common vision networks. The theory also explains a number of other phenomena in deep learning, such as why some examples are reliably learned earlier than others, why early stopping works, and why it is possible to learn from noisy labels. Moreover, since the theory provides a causal explanation of how GD finds a well-generalizing solution when one exists, it motivates a class of simple modifications to GD that attenuate memorization and improve generalization. Generalization in deep learning is an extremely broad phenomenon, and therefore, it requires an equally general explanation. We conclude with a survey of alternative lines of attack on this problem, and argue that the proposed approach is the most viable one on this basis.

研究动机与目标

  • 解释为什么超参数化网络在记忆随机数据的同时仍能泛化。
  • 提出一个可测量的逐样本梯度一致性 指标。
  • 展示梯度交互如何推动稳定性和泛化。
  • 提出简单的 GD 修改,以衰减弱方向并减少记忆。

提出的方法

  • 定义并阐明在训练期间逐样本梯度的一致性指标。
  • 利用算法稳定性将梯度一致性与泛化联系起来。
  • 用一个包含真实数据和随机数据的两数据集线性示例进行说明。
  • 提出并证明一种对逐样本梯度的鲁棒平均变体(中位数)以提高稳定性。
  • 将一致性与现有正则化(权重衰减)和提前停止等控制弱方向的机制相关联。
  • 讨论一种普适的、与架构无关的理论,适用于凸和非凸情形。

实验结果

研究问题

  • RQ1在过度参数化下,训练数据的哪些属性控制泛化差距?
  • RQ2为什么梯度下降更倾向于找到泛化良好的解,而不是记忆训练数据?
  • RQ3如何测量逐样本梯度的一致性并将其与泛化性能相关联?
  • RQ4对梯度下降进行的衰减弱梯度方向的修改能否改善泛化?

主要发现

  • 逐样本梯度一致性决定平均梯度在多样本共同受益的方向上的增强强度。
  • 强方向带来稳定更新和更好的泛化,而弱方向导致不稳定和记忆。
  • 对逐样本梯度进行鲁棒均值聚合(例如中位数)可以增加稳定性,并在真实数据和随机数据集上减少泛化差距。
  • 权重衰减和提前停止可以解释为抑制弱梯度方向的机制。
  • 该理论提供了因果解释,说明为什么某些训练样本更早被学习,以及在某些条件下为什么可以学习带噪声的标签。
  • 该方法建议对 GD 进行简单修改,以衰减记忆化而无需改变架构。

阅读本论文

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

在 Nubint 中阅读本论文

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