arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.03215stat.MLcs.LG
收藏

SGD批量大小对自编码器学习的影响:稀疏性、锐度与特征学习

The Effect of SGD Batch Size on Autoencoder Learning: Sparsity, Sharpness, and Feature Learning

University of California, Berkeley(加州大学伯克利分校);Simons Institute for the Theory of Computing(西蒙斯计算理论研究所)

Nikhil Ghosh, Spencer Frei, Wooseok Ha, Bin Yu

AI总结:

本文研究单神经元自编码器训练中SGD批量大小的影响,证明任意批量均能收敛到全局最小值,但小批量诱导稀疏且与初始化正交的特征选择,而全批量解稠密且更平坦,并引入非齐次随机游走工具证明收敛性。

摘要:

在这项工作中,我们研究了在正交数据上训练具有线性或ReLU激活的单神经元自编码器时随机梯度下降(SGD)的动态。我们证明,对于这个非凸问题,使用恒定步长的随机初始化SGD对于任意批量大小的选择都能成功找到全局最小值。然而,所找到的具体全局最小值取决于批量大小。在全批量设置下,我们证明解是稠密的(即非稀疏的),并且与其初始化方向高度对齐,表明发生的特征学习相对较少。另一方面,对于任何严格小于样本数量的批量大小,SGD找到的全局最小值是稀疏的,并且几乎与其初始化正交,表明随机梯度的随机性在该设置中诱导了一种性质上不同的“特征选择”类型。此外,如果我们通过Hessian矩阵的迹来衡量最小值的锐度,则使用全批量梯度下降找到的最小值比使用严格较小批量大小找到的最小值更平坦,这与先前表明大批量导致更尖锐最小值的工作形成对比。为了证明恒定步长SGD的收敛性,我们引入了来自非齐次随机游走理论的一个强大工具,该工具可能具有独立的研究价值。

英文摘要:

In this work, we investigate the dynamics of stochastic gradient descent (SGD) when training a single-neuron autoencoder with linear or ReLU activation on orthogonal data. We show that for this non-convex problem, randomly initialized SGD with a constant step size successfully finds a global minimum for any batch size choice. However, the particular global minimum found depends upon the batch size. In the full-batch setting, we show that the solution is dense (i.e., not sparse) and is highly aligned with its initialized direction, showing that relatively little feature learning occurs. On the other hand, for any batch size strictly smaller than the number of samples, SGD finds a global minimum which is sparse and nearly orthogonal to its initialization, showing that the randomness of stochastic gradients induces a qualitatively different type of "feature selection" in this setting. Moreover, if we measure the sharpness of the minimum by the trace of the Hessian, the minima found with full batch gradient descent are flatter than those found with strictly smaller batch sizes, in contrast to previous works which suggest that large batches lead to sharper minima. To prove convergence of SGD with a constant step size, we introduce a powerful tool from the theory of non-homogeneous random walks which may be of independent interest.

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

↑