Abstract
Fine-tuning Large Language Models (LLMs) is often constrained by the "memory wall," where intermediate activations during backpropagation dominate resource consumption. We present SPruFT (Structured-Pruning-based Sparse Fine-Tuning), a method that reduces memory footprint by 20–50% compared to popular techniques like LoRA. By selecting and updating only the most critical neurons (rows) rather than individual weights, SPruFT achieves state-of-the-art accuracy while maintaining compatibility with standard hardware and quantized models.
Introduction
Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA and Sparse Fine-Tuning (SpFT) have lowered the barrier for adapting massive models. However, the number of trainable parameters is rarely the primary bottleneck; instead, the computation graph and the need to cache intermediate activations for backpropagation create significant overhead. Existing sparse methods often rely on unstructured sparsity, which requires complex, custom kernels to be efficient. SPruFT addresses this by utilizing structured, row-based updates that are hardware-friendly and significantly reduce activation caching requirements.
Methodology: SPruFT
SPruFT treats fine-tuning as a pruning problem in reverse, focusing on updating specific "important" neurons.
The process involves three main steps:
- Importance Scoring: Identifying critical rows in a weight matrix using metrics such as $\ell_2$ Norm, Taylor Importance (gradient-based), or Zeroth-Order (ZO) Taylor for massive models.
- Structured Update: Updating a lower-dimensional matrix $\Delta W$ corresponding only to the identified important rows. This approach uses standard dense tensor operations, avoiding the overhead of sparse kernels.
- Quantization Error Recovery (QSPruFT): For 4-bit quantized models, QSPruFT initializes fine-tuning weights to cancel out quantization error in the selected rows, restoring precision where it matters most.
Experimental Results
The authors evaluated SPruFT across vision (DeiT, ViT) and language (Llama-2, Llama-3) models.
Memory Efficiency
A key finding is that many LoRA variants actually increase memory usage due to complex computation graphs. SPruFT simplifies this graph, leading to substantial reductions in activation memory.
On Llama-2-7B with a sequence length of 2048, SPruFT required only 17.62 GB of memory, compared to 23.46 GB for LoRA and 44.85 GB for DoRA.
Accuracy and Quantization
SPruFT consistently matched or outperformed LoRA. On Llama-3-8B commonsense reasoning tasks, SPruFT achieved 80.55% average accuracy, surpassing LoRA (76.50%) and RoSA (78.80%). Furthermore, QSPruFT† outperformed QLoRA and LoftQ, validating the strategy of fixing quantization errors in key neurons.
Conclusion
SPruFT offers a hardware-friendly, memory-efficient alternative to standard PEFT methods. By focusing on structured row-based updates, it bypasses the "memory wall" created by activation caching. Future work includes refining Zeroth-Order importance estimation and exploring the interpretability of the selected neurons.
Summary updated