arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.11648cs.LGcs.DSstat.ML
收藏

在近线性时间内训练(过参数化)神经网络

Training (Overparametrized) Neural Networks in Near-Linear Time

KTH Royal Institute of Technology(瑞典皇家理工学院);Columbia University(哥伦比亚大学);Princeton University(普林斯顿大学);Institute for Advanced Study(高等研究院)

Jan van den Brand, Binghui Peng, Zhao Song, Omri Weinstein

摘要:

用于训练深度神经网络的一阶梯度方法的缓慢收敛速度和病态曲率问题引发了开发更快的$\mathit{second}$ - $\mathit{order}$优化算法的持续努力,而不影响泛化误差。尽管二阶算法具有显著的收敛速度(训练批量大小$n$的$\mathit{independent}$),但在$\mathit{cost}$ $\mathit{iteration}$ $\mathit{iteration}$(反转损失函数的Hessian矩阵)中,二阶算法会导致令人生畏的减速,这使得二阶算法变得不切实际。最近,这种计算开销被[ZMG 19,CGH+19}的工作减轻,产生了用于训练多项式宽度$m$的两层过参数化神经网络的$O(mn^2)$时间二阶算法。我们展示了如何加速[CGH+19]的算法,实现用于训练(轻度过参数化)ReLU网络的$\tilde{O}(mn)$ -时间反向传播算法,该算法在全梯度(雅可比)矩阵的维度($mn$)中接近线性。我们的算法的核心是将Gauss-Newton迭代重新表示为$\ell_2$ -回归问题,然后使用Fast-JL型降维到与$M$无关的时间上的$\mathit{precondition}$底层Gram矩阵,允许通过$\mathit{first}$ - $\mathit{order}$共轭梯度找到足够好的近似解。我们的研究结果提供了一个概念验证,即随机线性代数的先进机制-导致$\mathit{convex}$ $\mathit{optimization}$(ERM,LP,回归)的最新突破-也可以用于深度学习领域。

英文摘要:

The slow convergence rate and pathological curvature issues of first-order gradient methods for training deep neural networks, initiated an ongoing effort for developing faster $\mathit{second}$-$\mathit{order}$ optimization algorithms beyond SGD, without compromising the generalization error. Despite their remarkable convergence rate ($\mathit{independent}$ of the training batch size $n$), second-order algorithms incur a daunting slowdown in the $\mathit{cost}$ $\mathit{per}$ $\mathit{iteration}$ (inverting the Hessian matrix of the loss function), which renders them impractical. Very recently, this computational overhead was mitigated by the works of [ZMG19,CGH+19}, yielding an $O(mn^2)$-time second-order algorithm for training two-layer overparametrized neural networks of polynomial width $m$. We show how to speed up the algorithm of [CGH+19], achieving an $\tilde{O}(mn)$-time backpropagation algorithm for training (mildly overparametrized) ReLU networks, which is near-linear in the dimension ($mn$) of the full gradient (Jacobian) matrix. The centerpiece of our algorithm is to reformulate the Gauss-Newton iteration as an $\ell_2$-regression problem, and then use a Fast-JL type dimension reduction to $\mathit{precondition}$ the underlying Gram matrix in time independent of $M$, allowing to find a sufficiently good approximate solution via $\mathit{first}$-$\mathit{order}$ conjugate gradient. Our result provides a proof-of-concept that advanced machinery from randomized linear algebra -- which led to recent breakthroughs in $\mathit{convex}$ $\mathit{optimization}$ (ERM, LPs, Regression) -- can be carried over to the realm of deep learning as well.

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

↑