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

一种计算高效的精化在线牛顿方法

A Computationally Efficient Sparsified Online Newton Method

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Google DeepMind(谷歌DeepMind);Google(谷歌);UCLA(加州大学洛杉矶分校)

Fnu Devvrit, Sai Surya Duvvuri, Rohan Anil, Vineet Gupta, Cho-Jui Hsieh, Inderjit Dhillon

AI总结:

本文提出精化在线牛顿(SONew)方法,一种内存高效二阶优化器,利用LogDet散度和结构化稀疏性,在高达10亿参数基准上实现更快收敛和更好性能,且实现简单。

摘要:

二阶方法在提升深度神经网络训练的收敛性方面具有显著潜力;然而,其巨大的内存和计算需求限制了其实用性。因此,需要能够高效训练大型模型的可扩展二阶方法。在本文中,我们介绍了精化在线牛顿(SONew)方法,这是一种内存高效的二阶算法,能够生成精化且有效的预处理器。该算法源于对LogDet矩阵散度度量的新颖使用;我们将其与稀疏性约束相结合,以在在线凸优化框架中最小化遗憾。在实验上,我们在高达10亿参数的大规模基准上测试了我们的方法。与包括一阶方法在内的内存高效优化器相比,我们实现了高达30%的更快收敛、验证性能相对提升3.4%以及训练损失相对提升80%。该方法背后的一个令人惊讶的事实是——施加结构化稀疏模式(如三对角和带状结构)几乎不需要额外开销,使其与一阶方法一样高效且可并行化。在墙钟时间上,三对角SONew每步仅比一阶方法慢约3%,但由于收敛速度快得多,整体上带来了收益。相比之下,最先进(SOTA)的内存密集型二阶方法之一Shampoo无法扩展到大规模基准。此外,虽然Shampoo需要大量的工程努力才能扩展到大规模基准,但SONew提供了更直接的实现,增加了其实用吸引力。SONew代码可在 https://github.com/devvrit/SONew 获取。

英文摘要:

Second-order methods hold significant promise for enhancing the convergence of deep neural network training; however, their large memory and computational demands have limited their practicality. Thus there is a need for scalable second-order methods that can efficiently train large models. In this paper, we introduce the Sparsified Online Newton (SONew) method, a memory-efficient second-order algorithm that yields a sparsified yet effective preconditioner. The algorithm emerges from a novel use of the LogDet matrix divergence measure; we combine it with sparsity constraints to minimize regret in the online convex optimization framework. Empirically, we test our method on large scale benchmarks of up to 1B parameters. We achieve up to 30% faster convergence, 3.4% relative improvement in validation performance, and 80% relative improvement in training loss, in comparison to memory efficient optimizers including first order methods. Powering the method is a surprising fact -- imposing structured sparsity patterns, like tridiagonal and banded structure, requires little to no overhead, making it as efficient and parallelizable as first-order methods. In wall-clock time, tridiagonal SONew is only about 3% slower per step than first-order methods but gives overall gains due to much faster convergence. In contrast, one of the state-of-the-art (SOTA) memory-intensive second-order methods, Shampoo, is unable to scale to large benchmarks. Additionally, while Shampoo necessitates significant engineering efforts to scale to large benchmarks, SONew offers a more straightforward implementation, increasing its practical appeal. SONew code is available at: https://github.com/devvrit/SONew

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

↑