LoTR: Low Tensor Rank Weight Adaptation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bershatsky, Daniel, Cherniuk, Daria, Daulbaev, Talgat, Mikhalev, Aleksandr, Oseledets, Ivan
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910318448345088
author Bershatsky, Daniel
Cherniuk, Daria
Daulbaev, Talgat
Mikhalev, Aleksandr
Oseledets, Ivan
author_facet Bershatsky, Daniel
Cherniuk, Daria
Daulbaev, Talgat
Mikhalev, Aleksandr
Oseledets, Ivan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_01376
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LoTR: Low Tensor Rank Weight Adaptation
Bershatsky, Daniel
Cherniuk, Daria
Daulbaev, Talgat
Mikhalev, Aleksandr
Oseledets, Ivan
Computation and Language
Artificial Intelligence
Machine Learning
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.
title LoTR: Low Tensor Rank Weight Adaptation
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2402.01376