paper-with-me

Papers

Sparse Matrix in Large Language Model Fine-tuning

2024-05-24 · Haoze He, Juncheng Billy Li, Xuan Jiang, Heather Miller

LoRA and its variants have become popular parameter-efficient fine-tuning (PEFT) methods due to their ability to avoid excessive computational costs. However, an accuracy gap often exists between PEFT methods and full fine-tuning (FT), and this gap has yet to be systematically studied. In this work, we introduce a method for selecting sparse sub-matrices that aim to minimize the performance gap between PEFT vs. full fine-tuning (FT) while also reducing both fine-tuning computational cost and memory cost. Our Sparse Matrix Tuning (SMT) method begins by identifying the most significant sub-matrices in the gradient update, updating only these blocks during the fine-tuning process. In our experiments, we demonstrate that SMT consistently surpasses other PEFT baseline (e.g. LoRA and DoRA) in fine-tuning popular large language models such as LLaMA across a broad spectrum of tasks, while reducing the GPU memory footprint by 67% compared to FT. We also examine how the performance of LoRA and DoRA tends to plateau and decline as the number of trainable parameters increases, in contrast, our SMT method does not suffer from such issue.

📄 PDF Abstract BibTeX arXiv:2405.15525

Code (1)

HectorHHZ/Sparse_Matrix_Tuning pytorch

Tasks

GPULanguage ModelingLanguage ModellingLarge Language Modelmodelparameter-efficient fine-tuning

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Expanding Sparse Tuning for Low Memory Usage

2024-11-04 · Shufan Shen, Junshu Sun, Xiangyang Ji, Qingming Huang 외

Parameter-efficient fine-tuning (PEFT) is an effective method for adapting pre-trained vision models to downstream tasks by tuning a small subset of parameters. Among PEFT methods, sparse tuning achieves superior perform…

parameter-efficient fine-tuning

Monarch: Expressive Structured Matrices for Efficient and Accurate Training

2022-04-01 · Tri Dao, Beidi Chen, Nimit Sohoni, Arjun Desai 외

Large neural networks excel in many domains, but they are expensive to train and fine-tune. A popular approach to reduce their compute or memory requirements is to replace dense weight matrices with structured ones (e.g.…

Language ModelingLanguage ModellingMRI Reconstruction

SPT: Fine-Tuning Transformer-based Language Models Efficiently with Sparsification

2023-12-16 · Yuntao Gui, Xiao Yan, Peiqi Yin, Han Yang 외

Transformer-based large language models (e.g., BERT and GPT) achieve great success, and fine-tuning, which tunes a pre-trained model on a task-specific dataset, is the standard practice to utilize these models for downst…

Quantization

S2FT: Parameter-Efficient Fine-Tuning in Sparse Spectrum Domain

2026-05-09 · Baoquan Zhang, Zhehao Yu, Lisai Zhang, Kenghong Lin 외 arxiv

Parameter Efficient Fine-Tuning (PEFT) is a key technique for adapting a large pretrained model to downstream tasks by fine-tuning only a small number of parameters. Recent methods based on Fourier transforms have furthe…

parameter-efficient fine-tuning

Practical offloading for fine-tuning LLM on commodity GPU via learned sparse projectors

2024-06-14 · Siyuan Chen, Zhuofeng Wang, Zelong Guan, Yudong Liu 외

Fine-tuning large language models (LLMs) requires significant memory, often exceeding the capacity of a single GPU. A common solution to this memory challenge is offloading compute and data from the GPU to the CPU. Howev…

CPUGPU