arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.18812cs.LG
收藏

估计随机采样到已训练神经网络的概率

Estimating the Probability of Sampling a Trained Neural Network at Random

EleutherAI

Adam Scherlis, Nora Belrose

AI总结:

本文提出一种利用梯度信息的重要性采样方法估计神经网络参数空间中锚点邻域的局部体积,并将其作为网络复杂度度量,验证了体积假说:简单函数在参数空间中占据更大体积,从而促进泛化。

摘要:

我们提出并分析了一种算法,用于在高斯测度或均匀测度下估计神经网络参数空间中与一个“锚点”行为相似的局部邻域的大小。我们将其称为锚点的“局部体积”。我们改进了现有的盆地体积估计器,该估计器速度非常快,但在许多情况下只能提供下界。我们证明,可以利用流行优化器已经提供的梯度信息,通过重要性采样方法来改进这一下界。局部体积的负对数也可以解释为锚点网络信息内容的一种度量。正如对复杂度度量的预期,该量在语言模型训练过程中会增加。我们发现,过拟合、泛化能力差的邻域更小,这表明其学习到的行为更复杂。这种更小的体积也可以在最小描述长度(MDL)意义上解释为次优压缩。我们的结果与一种我们称之为“体积假说”的泛化图景一致:神经网络训练之所以能产生良好的泛化,主要是因为架构在参数空间中赋予简单函数更大的体积,并且优化器以对体积敏感的方式从低损失流形中采样。我们相信,快速的局部体积估计器是一种有前景的实用度量,可用于衡量网络复杂度和架构归纳偏置,以服务于可解释性目的。

英文摘要:

We present and analyze an algorithm for estimating the size, under a Gaussian or uniform measure, of a localized neighborhood in neural network parameter space with behavior similar to an ``anchor'' point. We refer to this as the "local volume" of the anchor. We adapt an existing basin-volume estimator, which is very fast but in many cases only provides a lower bound. We show that this lower bound can be improved with an importance-sampling method using gradient information that is already provided by popular optimizers. The negative logarithm of local volume can also be interpreted as a measure of the anchor network's information content. As expected for a measure of complexity, this quantity increases during language model training. We find that overfit, badly-generalizing neighborhoods are smaller, indicating a more complex learned behavior. This smaller volume can also be interpreted in an MDL sense as suboptimal compression. Our results are consistent with a picture of generalization we call the "volume hypothesis": that neural net training produces good generalization primarily because the architecture gives simple functions more volume in parameter space, and the optimizer samples from the low-loss manifold in a volume-sensitive way. We believe that fast local-volume estimators are a promising practical metric of network complexity and architectural inductive bias for interpretability purposes.

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

↑