[论文解读] Extreme Memorization via Scale of Initialization
本文表明,对神经网络权重进行缩放初始化会引发从强泛化到完全记忆的泛化行为谱系,其中正弦激活函数导致最极端的记忆化行为。该研究识别出同类样本间梯度与表征不一致是关键机制,并提出一种新颖的对齐度量方法,其与模型泛化性能具有强烈相关性。
We construct an experimental setup in which changing the scale of initialization strongly impacts the implicit regularization induced by SGD, interpolating from good generalization performance to completely memorizing the training set while making little progress on the test set. Moreover, we find that the extent and manner in which generalization ability is affected depends on the activation and loss function used, with sin activation being the most extreme. In the case of the homogeneous ReLU activation, we show that this behavior can be attributed to the loss function. Our empirical investigation reveals that increasing the scale of initialization correlates with misalignment of representations and gradients across examples in the same class. This insight allows us to device an alignment measure over gradients and representations which can capture this phenomenon. We demonstrate that our alignment measure correlates with generalization of deep models trained on image classification tasks.
研究动机与目标
- 研究权重初始化尺度如何影响SGD训练中的隐式正则化。
- 理解为何某些激活函数(如sin)会导致极端记忆化。
- 识别导致泛化性能差的潜在机制——同类样本间梯度与表征的不一致。
- 开发一种可量化的对齐度量方法,用于预测深度学习模型的泛化性能。
提出的方法
- 在图像分类数据集上,系统性地改变深度网络的权重初始化尺度进行训练。
- 使用不同的激活函数(如ReLU、sin等)和损失函数,以隔离其对泛化和记忆化的影响。
- 测量同一类别内样本之间特征表征与梯度之间的对齐程度。
- 定义一种梯度-表征对齐得分,以量化同类样本间不一致的程度。
- 在多个初始化尺度下训练模型,并将对齐得分与测试准确率进行相关性分析。
- 将对齐度量用作诊断工具,无需依赖测试数据即可预测泛化性能。
实验结果
研究问题
- RQ1权重初始化尺度如何影响SGD训练的深度网络中的泛化与记忆化行为?
- RQ2为何sin激活函数相比其他激活函数会导致极端记忆化?
- RQ3损失函数在不同初始化尺度下对泛化行为的塑造作用是什么?
- RQ4同类样本间梯度与表征的不一致在多大程度上导致了泛化性能下降?
- RQ5梯度与表征之间的可度量对齐程度能否有效预测模型的泛化性能?
主要发现
- 增大权重初始化尺度会导致模型从良好泛化连续过渡到对训练集的完全记忆化。
- sin激活函数引发最极端的记忆化行为,尽管训练准确率达到完美,但测试性能极低。
- 泛化性能与同一类别内样本间表征与梯度的对齐程度密切相关。
- 对于同质ReLU网络,损失函数是不同初始化尺度下观察到的泛化行为转变的主要驱动因素。
- 所提出的对齐度量能有效捕捉不同初始化尺度和激活函数下的泛化行为。
- 该对齐度量作为泛化性能的可靠预测工具,即使在无测试数据的情况下也表现良好。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。