An Efficient Row-Based Sparse Fine-Tuning

Cen-Jhih Li, Aditya Bhaskara · DOI

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 SPruFT pipeline: identifying important rows via importance scores and applying structured updates.

The process involves three main steps:

  1. 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.
  2. 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.
  3. 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.

Memory footprint comparison across different PEFT methods and token lengths. SPruFT significantly reduces activation memory (green).

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

BibTeX
@article{li2025efficient,
  author = {Cen-Jhih Li and Aditya Bhaskara},
  title = {{An Efficient Row-Based Sparse Fine-Tuning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=w3b67v5EzD},
}
Figure