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

我们需要多少自由度来训练深度网络:损失景观视角

How many degrees of freedom do we need to train deep networks: a loss landscape perspective

Stanford University(斯坦福大学);Meta AI

Brett W. Larsen, Stanislav Fort, Nic Becker, Surya Ganguli

摘要:

最近的各种工作,包括修剪、彩票和随机子空间内的训练,都表明可以使用比参数总数少得多的自由度来训练深度神经网络。我们通过首先检查在给定训练维度的随机子空间内训练时击中训练损失子水平集的成功概率来分析随机子空间的这种现象。当训练维数超过一个阈值时,我们发现从$0$到$1$的成功概率有一个急剧的相变。该阈值训练维度随着期望的最终损失减小而增大,但是随着初始损失减小而减小。然后,我们从理论上解释了这种相变的起源,以及它对初始化和最终所需损失的依赖性,在高维几何的损失景观的属性。特别是,我们通过戈登的逃逸定理,训练维度加上高斯宽度所需的损失子水平集,投影到一个单位球周围的初始化,必须超过成功概率的参数的总数是大的。在几种架构和数据集中,我们测量阈值训练维度作为初始化的函数,并证明它是总参数的一小部分,这意味着我们的理论表明,由于低损失子水平集的高斯宽度非常大,因此可以用如此少的维度成功训练。此外,我们将这个阈值训练维度与更复杂的减少训练自由度的方法进行了比较,包括彩票以及一种新的类似方法:彩票子空间。代码可在https://github.com/ganguli-lab/degrees-of-freedom上获得。

英文摘要:

A variety of recent works, spanning pruning, lottery tickets, and training within random subspaces, have shown that deep neural networks can be trained using far fewer degrees of freedom than the total number of parameters. We analyze this phenomenon for random subspaces by first examining the success probability of hitting a training loss sub-level set when training within a random subspace of a given training dimensionality. We find a sharp phase transition in the success probability from $0$ to $1$ as the training dimension surpasses a threshold. This threshold training dimension increases as the desired final loss decreases, but decreases as the initial loss decreases. We then theoretically explain the origin of this phase transition, and its dependence on initialization and final desired loss, in terms of properties of the high-dimensional geometry of the loss landscape. In particular, we show via Gordon's escape theorem, that the training dimension plus the Gaussian width of the desired loss sub-level set, projected onto a unit sphere surrounding the initialization, must exceed the total number of parameters for the success probability to be large. In several architectures and datasets, we measure the threshold training dimension as a function of initialization and demonstrate that it is a small fraction of the total parameters, implying by our theory that successful training with so few dimensions is possible precisely because the Gaussian width of low loss sub-level sets is very large. Moreover, we compare this threshold training dimension to more sophisticated ways of reducing training degrees of freedom, including lottery tickets as well as a new, analogous method: lottery subspaces. Code is available at https://github.com/ganguli-lab/degrees-of-freedom.

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

↑