arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.09091stat.MLcs.LG
收藏

扁平是个假朋友

Flatness is a False Friend

Oxford(牛津大学)

Diego Granziol

摘要:

海森为基础的措施的平坦度,如跟踪,弗罗贝纽斯和频谱规范,已被认为是,使用和显示有关的推广。在本文中,我们证明了在交叉熵损失下的前馈神经网络,我们期望具有大权重的低损失解具有小的基于Hessian的平坦性度量。这意味着使用$L2$正则化得到的解原则上应该比没有正则化得到的解更尖锐,尽管推广得更好。我们在MNIST和CIFAR- $100$数据集上证明了逻辑斯谛回归,多层感知器,简单卷积,预激活和宽残差网络都是如此。此外,我们表明,对于自适应优化算法,使用平均值,在VGG- $16$网络和CIFAR- $100$数据集上,实现优于SGD的泛化,但$30 \times$更清晰。这一理论发现,以及实验结果,提出了严重的问题,海森的锐度措施的有效性在讨论的泛化。我们进一步证明了Hessian秩可以由常数乘以神经元数乘以类数来限制,实际上这通常是网络参数的一小部分。这就解释了奇怪的观察,许多海森特征值要么是零或非常接近零,这已在文献中报道。

英文摘要:

Hessian based measures of flatness, such as the trace, Frobenius and spectral norms, have been argued, used and shown to relate to generalisation. In this paper we demonstrate that for feed forward neural networks under the cross entropy loss, we would expect low loss solutions with large weights to have small Hessian based measures of flatness. This implies that solutions obtained using $L2$ regularisation should in principle be sharper than those without, despite generalising better. We show this to be true for logistic regression, multi-layer perceptrons, simple convolutional, pre-activated and wide residual networks on the MNIST and CIFAR-$100$ datasets. Furthermore, we show that for adaptive optimisation algorithms using iterate averaging, on the VGG-$16$ network and CIFAR-$100$ dataset, achieve superior generalisation to SGD but are $30 \times$ sharper. This theoretical finding, along with experimental results, raises serious questions about the validity of Hessian based sharpness measures in the discussion of generalisation. We further show that the Hessian rank can be bounded by the a constant times number of neurons multiplied by the number of classes, which in practice is often a small fraction of the network parameters. This explains the curious observation that many Hessian eigenvalues are either zero or very near zero which has been reported in the literature.

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

↑