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

通过激活的内在维数联系正则化和推广

Relating Regularization and Generalization through the Intrinsic Dimension of Activations

University of Waterloo(滑铁卢大学);Layer 6 AI(Layer 6人工智能公司)

Bradley C. A. Brown, Jordan Juravsky, Anthony L. Caterini, Gabriel Loaiza-Ganem

摘要:

给定一对具有相似训练集性能的模型,很自然地假设具有更简单内部表示的模型将表现出更好的泛化能力。在这项工作中,我们通过分析模型激活的内在维度(ID)为这种直觉提供了经验证据,该内在维度可以被认为是模型表示数据中变化因素的最小数量。首先,我们证明了常见的正则化技术均匀地降低了图像分类模型验证集激活的最后一层ID(LLID),并展示了这是如何强烈影响泛化性能的。我们还研究了过度的正则化如何降低模型从早期层的数据中提取特征的能力,从而导致对验证准确性的负面影响,即使LLID继续降低,训练准确性仍然接近完美。最后,我们在训练表现出grokking的模型的过程中检查LLID。我们观察到,在训练精度饱和之后,当模型“grok”和验证精度突然从随机提高到完美时,LLID会同时出现突然下降,从而提供对突然泛化动态的更多见解。

英文摘要:

Given a pair of models with similar training set performance, it is natural to assume that the model that possesses simpler internal representations would exhibit better generalization. In this work, we provide empirical evidence for this intuition through an analysis of the intrinsic dimension (ID) of model activations, which can be thought of as the minimal number of factors of variation in the model's representation of the data. First, we show that common regularization techniques uniformly decrease the last-layer ID (LLID) of validation set activations for image classification models and show how this strongly affects generalization performance. We also investigate how excessive regularization decreases a model's ability to extract features from data in earlier layers, leading to a negative effect on validation accuracy even while LLID continues to decrease and training accuracy remains near-perfect. Finally, we examine the LLID over the course of training of models that exhibit grokking. We observe that well after training accuracy saturates, when models ``grok'' and validation accuracy suddenly improves from random to perfect, there is a co-occurent sudden drop in LLID, thus providing more insight into the dynamics of sudden generalization.

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

↑