arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1710.06451cs.LGcs.AIstat.ML
收藏

推广和随机梯度下降的贝叶斯观点

A Bayesian Perspective on Generalization and Stochastic Gradient Descent

Google Brain(谷歌大脑)

Samuel L. Smith, Quoc V. Le

摘要:

我们考虑机器学习的两个核心问题:我们如何预测最小值是否会推广到测试集,以及为什么随机梯度下降能找到推广良好的最小值?我们的工作是对Zhang et al.(2016)的回应,他表明深度神经网络可以很容易地记住随机标记的训练数据,尽管在相同输入的真实标签上泛化得很好。我们发现,同样的现象发生在小的线性模型。这些观察结果解释了贝叶斯证据,惩罚尖锐的最小值,但不变的模型参数化。我们还证明,当一个持有固定的学习率,有一个最佳的批量大小,最大限度地提高测试集的准确性。我们建议,小的小批量引入的噪声驱动器的参数朝向最小值的证据是大的。将随机梯度下降解释为随机微分方程,我们确定了“噪声尺度”$g = ε(\frac{N}{B} - 1) \approx εN/B$,其中$ε$是学习率,$N$是训练集大小,$B$是批量大小。因此,最佳批量大小与学习速率和训练集$B_{opt} \propto εN$的大小成比例。我们验证这些预测经验。

英文摘要:

We consider two questions at the heart of machine learning; how can we predict if a minimum will generalize to the test set, and why does stochastic gradient descent find minima that generalize well? Our work responds to Zhang et al. (2016), who showed deep neural networks can easily memorize randomly labeled training data, despite generalizing well on real labels of the same inputs. We show that the same phenomenon occurs in small linear models. These observations are explained by the Bayesian evidence, which penalizes sharp minima but is invariant to model parameterization. We also demonstrate that, when one holds the learning rate fixed, there is an optimum batch size which maximizes the test set accuracy. We propose that the noise introduced by small mini-batches drives the parameters towards minima whose evidence is large. Interpreting stochastic gradient descent as a stochastic differential equation, we identify the "noise scale" $g = ε(\frac{N}{B} - 1) \approx εN/B$, where $ε$ is the learning rate, $N$ the training set size and $B$ the batch size. Consequently the optimum batch size is proportional to both the learning rate and the size of the training set, $B_{opt} \propto εN$. We verify these predictions empirically.

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

↑