SPP: Sparsity-Preserved Parameter-Efficient Fine-Tuning for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lu, Xudong, Zhou, Aojun, Xu, Yuhui, Zhang, Renrui, Gao, Peng, Li, Hongsheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909210404454400
author Lu, Xudong
Zhou, Aojun
Xu, Yuhui
Zhang, Renrui
Gao, Peng
Li, Hongsheng
author_facet Lu, Xudong
Zhou, Aojun
Xu, Yuhui
Zhang, Renrui
Gao, Peng
Li, Hongsheng
contents Large Language Models (LLMs) have become pivotal in advancing the field of artificial intelligence, yet their immense sizes pose significant challenges for both fine-tuning and deployment. Current post-training pruning methods, while reducing the sizes of LLMs, often fail to maintain their original performance. To address these challenges, this paper introduces SPP, a Sparsity-Preserved Parameter-efficient fine-tuning method. Different from existing post-training pruning approaches that struggle with performance retention, SPP proposes to employ lightweight learnable column and row matrices to optimize sparse LLM weights, keeping the structure and sparsity of pruned pre-trained models intact. By element-wise multiplication and residual addition, SPP ensures the consistency of model sparsity pattern and ratio during both training and weight-merging processes. We demonstrate the effectiveness of SPP by applying it to the LLaMA and LLaMA-2 model families with recent post-training pruning methods. Our results show that SPP significantly enhances the performance of models with different sparsity patterns (i.e. unstructured and N:M sparsity), especially for those with high sparsity ratios (e.g. 75%), making it a promising solution for the efficient fine-tuning of sparse LLMs. Code will be made available at https://github.com/Lucky-Lance/SPP.
format Preprint
id arxiv_https___arxiv_org_abs_2405_16057
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SPP: Sparsity-Preserved Parameter-Efficient Fine-Tuning for Large Language Models
Lu, Xudong
Zhou, Aojun
Xu, Yuhui
Zhang, Renrui
Gao, Peng
Li, Hongsheng
Computation and Language
Machine Learning
Large Language Models (LLMs) have become pivotal in advancing the field of artificial intelligence, yet their immense sizes pose significant challenges for both fine-tuning and deployment. Current post-training pruning methods, while reducing the sizes of LLMs, often fail to maintain their original performance. To address these challenges, this paper introduces SPP, a Sparsity-Preserved Parameter-efficient fine-tuning method. Different from existing post-training pruning approaches that struggle with performance retention, SPP proposes to employ lightweight learnable column and row matrices to optimize sparse LLM weights, keeping the structure and sparsity of pruned pre-trained models intact. By element-wise multiplication and residual addition, SPP ensures the consistency of model sparsity pattern and ratio during both training and weight-merging processes. We demonstrate the effectiveness of SPP by applying it to the LLaMA and LLaMA-2 model families with recent post-training pruning methods. Our results show that SPP significantly enhances the performance of models with different sparsity patterns (i.e. unstructured and N:M sparsity), especially for those with high sparsity ratios (e.g. 75%), making it a promising solution for the efficient fine-tuning of sparse LLMs. Code will be made available at https://github.com/Lucky-Lance/SPP.
title SPP: Sparsity-Preserved Parameter-Efficient Fine-Tuning for Large Language Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2405.16057