arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.02254cs.LGmath.OCstat.ML
收藏

自适应优化如何影响局部神经网络几何?

How Does Adaptive Optimization Impact Local Neural Network Geometry?

Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学)

Kaiqi Jiang, Dhruv Malik, Yuanzhi Li

摘要:

众所周知,自适应优化方法相对于香草梯度方法实现更好的收敛。传统的观点在优化,特别是在凸优化,解释了这种改进的性能,认为,不同于香草梯度计划,自适应算法模仿的行为,一个二阶方法,通过适应全局几何的损失函数。我们认为,在神经网络优化的背景下,这种传统的观点是不够的。相反,我们主张进行局部轨迹分析。对于通过运行通用优化算法OPT产生的轨迹,我们引入了$R^{\text{OPT}}_{\text{med}}$,这是一个类似于在迭代中评估的损失Hessian的条件数的统计量。通过大量的实验,我们表明,自适应方法,如亚当偏向的轨迹对区域的$R^{\text{Adam}}_{\text{med}}$是小的,人们可能会期望更快的收敛。相比之下,像SGD这样的普通梯度方法使轨迹偏向于$R^{\text{SGD}}_{\text{med}}$相对较大的区域。我们补充这些经验观察与理论结果,证明了这种现象的简化设置的两层线性网络。我们认为,我们的研究结果作为证据,需要一个新的解释适应性方法的成功,一个是不同于传统的智慧。

英文摘要:

Adaptive optimization methods are well known to achieve superior convergence relative to vanilla gradient methods. The traditional viewpoint in optimization, particularly in convex optimization, explains this improved performance by arguing that, unlike vanilla gradient schemes, adaptive algorithms mimic the behavior of a second-order method by adapting to the global geometry of the loss function. We argue that in the context of neural network optimization, this traditional viewpoint is insufficient. Instead, we advocate for a local trajectory analysis. For iterate trajectories produced by running a generic optimization algorithm OPT, we introduce $R^{\text{OPT}}_{\text{med}}$, a statistic that is analogous to the condition number of the loss Hessian evaluated at the iterates. Through extensive experiments, we show that adaptive methods such as Adam bias the trajectories towards regions where $R^{\text{Adam}}_{\text{med}}$ is small, where one might expect faster convergence. By contrast, vanilla gradient methods like SGD bias the trajectories towards regions where $R^{\text{SGD}}_{\text{med}}$ is comparatively large. We complement these empirical observations with a theoretical result that provably demonstrates this phenomenon in the simplified setting of a two-layer linear network. We view our findings as evidence for the need of a new explanation of the success of adaptive methods, one that is different than the conventional wisdom.

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

↑