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

Sketchy:基于频繁方向的记忆高效自适应正则化

Sketchy: Memory-efficient Adaptive Regularization with Frequent Directions

Google DeepMind(谷歌DeepMind);Princeton University(普林斯顿大学)

Vladimir Feinberg, Xinyi Chen, Y. Jennifer Sun, Rohan Anil, Elad Hazan

AI总结:

提出基于频繁方向草图的自适应正则化方法,在降低内存与计算成本的同时保持性能,并扩展到Shampoo,实现亚线性内存下的高效优化。

摘要:

自适应正则化方法利用对角线以外的信息在许多任务上表现出最先进的性能,但其内存和运行时间成本可能过高。我们发现深度学习训练任务中Kronecker因子化梯度协方差矩阵的谱集中在随训练过程变化的小的前导特征空间上,这促使我们采用低秩草图方法。我们描述了一种通用方法,通过使用频繁方向草图来降低维护矩阵预条件器的内存和计算需求。虽然先前的方法已探索将频繁方向应用于二阶优化,我们提出了一种新颖的分析方法,能够在资源需求与秩k遗憾保证退化之间实现高效插值:在维度为d的在线凸优化设置中,我们仅使用dk内存即可匹配全矩阵d²内存的遗憾,且仅引入梯度协方差底部d-k特征值的加性误差。此外,我们展示了将我们的工作扩展到Shampoo,得到的方法在质量上与Shampoo和Adam竞争,同时仅需亚线性内存来跟踪二阶矩。

英文摘要:

Adaptive regularization methods that exploit more than the diagonal entries exhibit state of the art performance for many tasks, but can be prohibitive in terms of memory and running time. We find the spectra of the Kronecker-factored gradient covariance matrix in deep learning (DL) training tasks are concentrated on a small leading eigenspace that changes throughout training, motivating a low-rank sketching approach. We describe a generic method for reducing memory and compute requirements of maintaining a matrix preconditioner using the Frequent Directions (FD) sketch. While previous approaches have explored applying FD for second-order optimization, we present a novel analysis which allows efficient interpolation between resource requirements and the degradation in regret guarantees with rank $k$: in the online convex optimization (OCO) setting over dimension $d$, we match full-matrix $d^2$ memory regret using only $dk$ memory up to additive error in the bottom $d-k$ eigenvalues of the gradient covariance. Further, we show extensions of our work to Shampoo, resulting in a method competitive in quality with Shampoo and Adam, yet requiring only sub-linear memory for tracking second moments.

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

↑