Derivative-Free Optimization for Low-Rank Adaptation in Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Feihu, Liu, Yin, Tan, Ying
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909126864404480
author Jin, Feihu
Liu, Yin
Tan, Ying
author_facet Jin, Feihu
Liu, Yin
Tan, Ying
contents Parameter-efficient tuning methods such as LoRA could achieve comparable performance to model tuning by tuning a small portion of the parameters. However, substantial computational resources are still required, as this process involves calculating gradients and performing back-propagation throughout the model. Much effort has recently been devoted to utilizing the derivative-free optimization method to eschew the computation of gradients and showcase an augmented level of robustness in few-shot settings. In this paper, we prepend the low-rank modules into each self-attention layer of the model and employ two derivative-free optimization methods to optimize these low-rank modules at each layer alternately. Extensive results on various tasks and language models demonstrate that our proposed method achieves substantial improvement and exhibits clear advantages in memory usage and convergence speed compared to existing gradient-based parameter-efficient tuning and derivative-free optimization methods in few-shot settings.
format Preprint
id arxiv_https___arxiv_org_abs_2403_01754
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Derivative-Free Optimization for Low-Rank Adaptation in Large Language Models
Jin, Feihu
Liu, Yin
Tan, Ying
Computation and Language
Parameter-efficient tuning methods such as LoRA could achieve comparable performance to model tuning by tuning a small portion of the parameters. However, substantial computational resources are still required, as this process involves calculating gradients and performing back-propagation throughout the model. Much effort has recently been devoted to utilizing the derivative-free optimization method to eschew the computation of gradients and showcase an augmented level of robustness in few-shot settings. In this paper, we prepend the low-rank modules into each self-attention layer of the model and employ two derivative-free optimization methods to optimize these low-rank modules at each layer alternately. Extensive results on various tasks and language models demonstrate that our proposed method achieves substantial improvement and exhibits clear advantages in memory usage and convergence speed compared to existing gradient-based parameter-efficient tuning and derivative-free optimization methods in few-shot settings.
title Derivative-Free Optimization for Low-Rank Adaptation in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2403.01754