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

Vertical LoRA:Transformer 的稠密期望最大化解释

Vertical LoRA: Dense Expectation-Maximization Interpretation of Transformers

Zhuolin Fu

AI总结:

该研究将 Transformer 解释为贝叶斯网络上的稠密 EM 算法,并据此提出可与 LoRA 正交结合的 VLoRA,通过递归增量及 LoRA 分解大幅减少参数且保持性能。

摘要:

本文展示了如何将 Transformer 解释为在贝叶斯网络上执行的稠密期望最大化算法。基于上述解释,我们提出了一种新的模型设计范式,即 Vertical LoRA(VLoRA),它能够在保持性能的同时大幅减少参数量。在 VLoRA 中,模型由多个层组成,每一层都基于前一层递归地学习一个增量;随后,我们对这些增量应用 LoRA 分解。VLoRA 作用于基础模型,并与 LoRA 正交,这意味着二者可以结合使用。我们在多种任务和模型上进行了实验。结果表明:1)借助 VLoRA,Transformer 模型的参数量可以大幅降低;2)原始模型的性能得以保持。源代码可在 https://github.com/neverUseThisName/vlora 获取。

英文摘要:

In this paper, we show how Transformers can be interpreted as dense Expectation-Maximization algorithms performed on Bayesian Nets. Based on the above interpretation, we propose a new model design paradigm, namely Vertical LoRA (VLoRA), which reduces the parameter count dramatically while preserving performance. In VLoRA, a model consists of layers, each of which recursively learns an increment based on the previous layer. We then apply LoRA decomposition to the increments. VLoRA works on the base model, which is orthogonal to LoRA, meaning they can be used together. We do experiments on various tasks and models. The results show that 1) with VLoRA, the Transformer model parameter count can be reduced dramatically and 2) the performance of the original model is preserved. The source code is available at \url{https://github.com/neverUseThisName/vlora}

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

↑