SPP: Sparsity-Preserved Parameter-Efficient Fine-Tuning for Large Language Models
Xudong Lu, Aojun Zhou, Yuhui Xu, Renrui Zhang, Peng Gao, Hongsheng Li
TL;DR
SPP addresses the challenge of retraining post-training pruned LLMs by introducing sparsity-preserved parameter-efficient fine-tuning. It inserts two small learnable matrices with column/row orientations to the sparse weight matrices and applies a residual, element-wise merging to maintain the original sparsity pattern throughout training and weight-merging. Empirical results on LLaMA and LLaMA-2 show that SPP significantly boosts zero-shot performance for both unstructured and N:M sparsity, including up to 75% sparsity, and outperforms prior retraining approaches like LoRA-based variants. The method achieves these gains with a tiny fraction of trainable parameters, preserves inference speedups from sparsity, and offers a practical path to efficient deployment of sparse LLMs.
Abstract
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.
