arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.06219cs.LGstat.ML
收藏

Why flatness does and does not correlate with generalization for deep neural networks

University of Oxford(牛津大学);Hertford college(赫特福德学院)

Shuofeng Zhang, Isaac Reid, Guillermo Valle Pérez, Ard Louis

英文摘要:

The intuition that local flatness of the loss landscape is correlated with better generalization for deep neural networks (DNNs) has been explored for decades, spawning many different flatness measures. Recently, this link with generalization has been called into question by a demonstration that many measures of flatness are vulnerable to parameter re-scaling which arbitrarily changes their value without changing neural network outputs. Here we show that, in addition, some popular variants of SGD such as Adam and Entropy-SGD, can also break the flatness-generalization correlation. As an alternative to flatness measures, we use a function based picture and propose using the log of Bayesian prior upon initialization, $\log P(f)$, as a predictor of the generalization when a DNN converges on function $f$ after training to zero error. The prior is directly proportional to the Bayesian posterior for functions that give zero error on a test set. For the case of image classification, we show that $\log P(f)$ is a significantly more robust predictor of generalization than flatness measures are. Whilst local flatness measures fail under parameter re-scaling, the prior/posterior, which is global quantity, remains invariant under re-scaling. Moreover, the correlation with generalization as a function of data complexity remains good for different variants of SGD.

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

↑