注意力与理解LoRA的收敛随机训练
Convergent Stochastic Training of Multi-Headed Attention and Understanding LoRA
AI总结:
本文通过统一框架证明了在随机方法下注意力层和LoRA模型的可训练性,无需数据或架构大小假设,建立了Poincaré不等式并推导出对应的SDE最小化损失。
摘要:
Transformer已经革新了机器学习,并在众多应用中将注意力层纳入模型已成为标准。此外,对于大型模型,通常采用低秩适应(LoRA),通过因子化参数化来训练,以实现令人惊讶的准确率-大小权衡。在本工作中,通过统一框架,我们严格建立了此类模型在随机方法下的可训练性。我们证明了对于任何温和的正则化,注意力层和LoRA在浅层神经网络上的经验回归损失,都诱导了相应的Gibbs测度的Poincaré不等式。然后通过引用最近的结果,得出一个模仿SGD的SDE最小化相应损失。在两种情况下,我们首次获得的注意力和网络的可训练性结果,不依赖于任何数据或架构大小的假设。
英文摘要:
Transformers have revolutionized machine learning and deploying attention layers in the model is increasingly standard across a myriad of applications. Further, for large models, it is common to implement Low Rank Adaptation (LoRA), whereby a factorized parameterization of them is trained, to achieve a surprisingly beneficial accuracy-size trade-off. In this work, via a unified framework we rigorously establish trainability of such models under stochastic methods. We prove that for a class of mild regularizations, the empirical regression loss on a attention layer and LoRA on a shallow neural net, both induce Poincaré inequality for the corresponding Gibbs' measure. Crucially, we show that the Poincaré constant is free of the data dimension for LoRA and for multi-head attention it is free of the head dimensions, Then it follows, via invoking recent results, that a certain SDE, which mimics the SGD, minimizes the corresponding losses. In both the cases, our first-of-its-kind results of trainability on attention and nets, do not use any assumptions on the data or the model size.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。