arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.11250cs.LG
收藏

InRank:增量低秩学习

InRank: Incremental Low-Rank Learning

California Institute of Technology(加州理工学院);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Carnegie Mellon University(卡内基梅隆大学);Georgia Institute of Technology(佐治亚理工学院);NVIDIA(英伟达)

Jiawei Zhao, Yifei Zhang, Beidi Chen, Florian Schäfer, Anima Anandkumar

AI总结:

本文提出增量低秩学习算法InRank,通过显式表示累积权重更新为低秩矩阵并逐步增加秩,在保持预测性能的同时显著降低了训练时间和模型大小。

摘要:

贪婪低秩学习(GLRL)理论旨在解释深度学习令人印象深刻的泛化能力。该理论证明,基于随机梯度的训练通过在训练过程中逐渐增加秩,隐式地将神经网络正则化为低秩解。然而,理论与实践之间存在差距,因为GLRL要求权重的无穷小初始化,由于这是一个鞍点,这在实际中并不可行。在这项工作中,我们通过关注累积权重更新来移除无穷小初始化的假设。我们证明,在三层线性网络中,对于权重的任意正交初始化,累积权重更新遵循增量低秩轨迹。在实验上,我们证明我们的理论适用于广泛的神经网络(例如transformers)和标准训练算法(例如SGD、Adam)。然而,现有的训练算法并未利用低秩特性来提高计算效率,因为网络并未以低秩形式参数化。为了解决这个问题,我们设计了一种新的训练算法增量低秩学习(InRank),该算法将累积权重更新显式表示为低秩矩阵,并在训练过程中逐步增加其秩。我们在GPT-2上评估了InRank,结果表明,InRank实现了与全秩对应模型相当的预测性能,同时在整个训练过程中最多只需要总秩的33%。我们还提出了一个高效的InRank版本,在从头开始于WikiText-103上训练GPT-medium时,实现了总训练时间减少37%和模型大小减少36%。

英文摘要:

The theory of greedy low-rank learning (GLRL) aims to explain the impressive generalization capabilities of deep learning. It proves that stochastic gradient-based training implicitly regularizes neural networks towards low-rank solutions through a gradual increase of the rank during training. However, there is a gap between theory and practice since GLRL requires an infinitesimal initialization of the weights, which is not practical due to the fact that it is a saddle point. In this work, we remove the assumption of infinitesimal initialization by focusing on cumulative weight updates. We prove the cumulative weight updates follow an incremental low-rank trajectory for arbitrary orthogonal initialization of weights in a three-layer linear network. Empirically, we demonstrate that our theory holds on a broad range of neural networks (e.g., transformers) and standard training algorithms (e.g., SGD, Adam). However, existing training algorithms do not exploit the low-rank property to improve computational efficiency as the networks are not parameterized in low-rank. To remedy this, we design a new training algorithm Incremental Low-Rank Learning (InRank), which explicitly expresses cumulative weight updates as low-rank matrices while incrementally augmenting their ranks during training. We evaluate InRank on GPT-2, and our results indicate that InRank achieves comparable prediction performance as the full-rank counterpart while requiring at most 33% of the total ranks throughout training. We also propose an efficient version of InRank that achieves a reduction of 37% in total training time and 36% in model size when training GPT-medium on WikiText-103 from scratch.

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

↑