NOLA: Compressing LoRA using Linear Combination of Random Basis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Koohpayegani, Soroush Abbasi, Navaneet, KL, Nooralinejad, Parsa, Kolouri, Soheil, Pirsiavash, Hamed
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916228912644096
author Koohpayegani, Soroush Abbasi
Navaneet, KL
Nooralinejad, Parsa
Kolouri, Soheil
Pirsiavash, Hamed
author_facet Koohpayegani, Soroush Abbasi
Navaneet, KL
Nooralinejad, Parsa
Kolouri, Soheil
Pirsiavash, Hamed
contents Fine-tuning Large Language Models (LLMs) and storing them for each downstream task or domain is impractical because of the massive model size (e.g., 350GB in GPT-3). Current literature, such as LoRA, showcases the potential of low-rank modifications to the original weights of an LLM, enabling efficient adaptation and storage for task-specific models. These methods can reduce the number of parameters needed to fine-tune an LLM by several orders of magnitude. Yet, these methods face two primary limitations: (1) the parameter count is lower-bounded by the rank one decomposition, and (2) the extent of reduction is heavily influenced by both the model architecture and the chosen rank. We introduce NOLA, which overcomes the rank one lower bound present in LoRA. It achieves this by re-parameterizing the low-rank matrices in LoRA using linear combinations of randomly generated matrices (basis) and optimizing the linear mixture coefficients only. This approach allows us to decouple the number of trainable parameters from both the choice of rank and the network architecture. We present adaptation results using GPT-2, LLaMA-2, and ViT in natural language and computer vision tasks. NOLA performs as well as LoRA models with much fewer number of parameters compared to LoRA with rank one, the best compression LoRA can archive. Particularly, on LLaMA-2 70B, our method is almost 20 times more compact than the most compressed LoRA without degradation in accuracy. Our code is available here: https://github.com/UCDvision/NOLA
format Preprint
id arxiv_https___arxiv_org_abs_2310_02556
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle NOLA: Compressing LoRA using Linear Combination of Random Basis
Koohpayegani, Soroush Abbasi
Navaneet, KL
Nooralinejad, Parsa
Kolouri, Soheil
Pirsiavash, Hamed
Computation and Language
Computer Vision and Pattern Recognition
Fine-tuning Large Language Models (LLMs) and storing them for each downstream task or domain is impractical because of the massive model size (e.g., 350GB in GPT-3). Current literature, such as LoRA, showcases the potential of low-rank modifications to the original weights of an LLM, enabling efficient adaptation and storage for task-specific models. These methods can reduce the number of parameters needed to fine-tune an LLM by several orders of magnitude. Yet, these methods face two primary limitations: (1) the parameter count is lower-bounded by the rank one decomposition, and (2) the extent of reduction is heavily influenced by both the model architecture and the chosen rank. We introduce NOLA, which overcomes the rank one lower bound present in LoRA. It achieves this by re-parameterizing the low-rank matrices in LoRA using linear combinations of randomly generated matrices (basis) and optimizing the linear mixture coefficients only. This approach allows us to decouple the number of trainable parameters from both the choice of rank and the network architecture. We present adaptation results using GPT-2, LLaMA-2, and ViT in natural language and computer vision tasks. NOLA performs as well as LoRA models with much fewer number of parameters compared to LoRA with rank one, the best compression LoRA can archive. Particularly, on LLaMA-2 70B, our method is almost 20 times more compact than the most compressed LoRA without degradation in accuracy. Our code is available here: https://github.com/UCDvision/NOLA
title NOLA: Compressing LoRA using Linear Combination of Random Basis
topic Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2310.02556