计算机科学 > 计算与语言
[提交于 2024年2月6日]
标题:LoTR: Low Tensor Rank Weight Adaptation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper we generalize and extend an idea of low-rank adaptation (LoRA) of large language models (LLMs) based on Transformer architecture. Widely used LoRA-like methods of fine-tuning LLMs are based on matrix factorization of gradient update. We introduce LoTR, a novel approach for parameter-efficient fine-tuning of LLMs which represents a gradient update to parameters in a form of tensor decomposition. Low-rank adapter for each layer is constructed as a product of three matrices, and tensor structure arises from sharing left and right multipliers of this product among layers. Simultaneous compression of a sequence of layers with low-rank tensor representation allows LoTR to archive even better parameter efficiency then LoRA especially for deep models. Moreover, the core tensor does not depend on original weight dimension and can be made arbitrary small, which allows for extremely cheap and fast downstream fine-tuning.
提交历史
来自:Daniel Bershatsky[v1] 2024年2月6日 星期二 00:00:00 UTC