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

在Transformers上的学习是可证明低秩且稀疏的:单层分析

Learning on Transformers is Provable Low-Rank and Sparse: A One-layer Analysis

Rensselaer Polytechnic Institute(伦斯勒理工学院);New Jersey Institute of Technology(新泽西理工学院);Michigan State University(密歇根州立大学);IBM Thomas J. Watson Research Center(IBM托马斯·J·沃森研究中心)

Hongkang Li, Meng Wang, Shuai Zhang, Sijia Liu, Pin-Yu Chen

AI总结:

本文首次对单层Transformers的低秩和稀疏性质进行理论分析,证明其梯度更新是低秩的,并发现适当的基于幅度的剪枝对测试性能影响甚微。

摘要:

高效的训练和推理算法,例如低秩适应和模型剪枝,在学习基于Transformer的大型基础模型方面展现出了令人印象深刻的性能。然而,由于Transformers复杂架构引起的非凸优化的技术挑战,关于为什么这些方法能应用于学习Transformers的理论研究大多仍然难以捉摸。据我们所知,本文通过使用随机梯度下降刻画收敛后的训练模型,首次展示了对单层Transformers的低秩和稀疏性质的理论分析。通过关注基于标签相关和标签无关模式的数据模型,我们量化了可训练参数的梯度更新是低秩的,这取决于标签相关模式的数量。我们还分析了模型剪枝如何在提高计算效率的同时影响泛化能力,并得出结论:适当的基于幅度的剪枝对测试性能影响甚微。我们实施了数值实验来支持我们的发现。

英文摘要:

Efficient training and inference algorithms, such as low-rank adaption and model pruning, have shown impressive performance for learning Transformer-based large foundation models. However, due to the technical challenges of the non-convex optimization caused by the complicated architecture of Transformers, the theoretical study of why these methods can be applied to learn Transformers is mostly elusive. To the best of our knowledge, this paper shows the first theoretical analysis of the property of low-rank and sparsity of one-layer Transformers by characterizing the trained model after convergence using stochastic gradient descent. By focusing on a data model based on label-relevant and label-irrelevant patterns, we quantify that the gradient updates of trainable parameters are low-rank, which depends on the number of label-relevant patterns. We also analyze how model pruning affects the generalization while improving computation efficiency and conclude that proper magnitude-based pruning has a slight effect on the testing performance. We implement numerical experiments to support our findings.

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

↑