XOR 簇数据上 ReLU 网络中的良性过拟合与 Grokking
Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Data
AI总结:
本文证明在标签含噪的 XOR 簇数据上,GD 训练两层 ReLU 网络会先随机泛化后延迟 grokking,并通过特征学习分析给出非线性可分分类中的良性过拟合首个理论结果。
摘要:
通过梯度下降(GD)训练的神经网络表现出许多令人惊讶的泛化行为。首先,它们能够完美拟合含噪训练数据,同时仍能实现近乎最优的泛化,表明过拟合有时可以是良性的。其次,它们可能经历一段经典的、有害的过拟合时期——完美拟合训练数据,但测试性能接近随机——随后在训练后期转变(“grokking”)为近乎最优的泛化。在本工作中,我们证明这两种现象都会在由 GD 训练的两层 ReLU 网络上可证明地出现,所用数据为 XOR 簇数据,其中恒定比例的训练标签被翻转。在此设置下,我们表明在 GD 的第一步之后,网络达到 100% 训练准确率,完美拟合训练数据中的噪声标签,但测试准确率接近随机。在之后的某个训练步骤,网络达到近乎最优的测试准确率,同时仍拟合训练数据中的随机标签,表现出“grokking”现象。这提供了当数据分布不是线性可分时,神经网络分类中良性过拟合的首个理论结果。我们的证明依赖于分析 GD 下的特征学习过程,该分析揭示网络在一步后实现的是一个不可泛化的线性分类器,并在后续步骤中逐渐学习可泛化的特征。
英文摘要:
Neural networks trained by gradient descent (GD) have exhibited a number of surprising generalization behaviors. First, they can achieve a perfect fit to noisy training data and still generalize near-optimally, showing that overfitting can sometimes be benign. Second, they can undergo a period of classical, harmful overfitting -- achieving a perfect fit to training data with near-random performance on test data -- before transitioning ("grokking") to near-optimal generalization later in training. In this work, we show that both of these phenomena provably occur in two-layer ReLU networks trained by GD on XOR cluster data where a constant fraction of the training labels are flipped. In this setting, we show that after the first step of GD, the network achieves 100% training accuracy, perfectly fitting the noisy labels in the training data, but achieves near-random test accuracy. At a later training step, the network achieves near-optimal test accuracy while still fitting the random labels in the training data, exhibiting a "grokking" phenomenon. This provides the first theoretical result of benign overfitting in neural network classification when the data distribution is not linearly separable. Our proofs rely on analyzing the feature learning process under GD, which reveals that the network implements a non-generalizable linear classifier after one step and gradually learns generalizable features in later steps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。