LoRA-SP: Streamlined Partial Parameter Adaptation for Resource-Efficient Fine-Tuning of Large Language Models

Yichao Wu, Yafei Xiang, Shuning Huo, Yulu Gong, Penghao LiangarXiv 2024 · DOI

Introduction

Fine-tuning Large Language Models (LLMs) remains a significant challenge due to the immense computational and memory resources required. While Parameter-Efficient Fine-Tuning (PEFT) techniques like Low-Rank Adaptation (LoRA) have reduced the number of trainable weights, they often fail to address the activation memory bottleneck. During training, storing input activations for gradient calculation can exceed the capacity of standard hardware, especially for models with tens of billions of parameters.

LoRA-SP (Streamlined Partial Parameter Adaptation) addresses this by introducing a "half-selective" parameter freezing strategy. By randomly freezing 50% of the parameters within LoRA’s low-rank matrices, LoRA-SP significantly reduces memory overhead while maintaining, and sometimes exceeding, the performance of standard fine-tuning methods.

Methodology: Half-Selective Freezing

The core innovation of LoRA-SP is the application of a binary selection matrix ($S$) to the low-rank matrices $A$ and $B$. In standard LoRA, the weight update is defined as $\Delta W = AB^T$. In LoRA-SP, this is modified to: $$\Delta W = (A \odot S)(B \odot S)^T$$ where $\odot$ denotes element-wise multiplication.

Comparison of standard LoRA and the proposed LoRA-SP architecture.

By randomly selecting exactly half of the elements in $A$ and $B$ to remain frozen, the model benefits from a structural regularization effect similar to Dropout. This prevents overfitting and improves generalization. To further optimize resources, LoRA-SP integrates weight quantization for non-trainable parameters and selective activation recomputation, trading minimal compute for substantial memory savings.

Experimental Evaluation

The authors evaluated LoRA-SP across three major model families and diverse benchmarks:

  • Natural Language Understanding: RoBERTa (Base/Large) on the GLUE benchmark.
  • Machine Translation: T5 (Base/Large) on WMT16 En-Ro.
  • Instruction Following: LLaMA-2 (7B/13B) on the MMLU benchmark using the Alpaca dataset.

Key Results and Performance Analysis

The experimental results demonstrate that LoRA-SP effectively halves the trainable parameter count of standard LoRA without sacrificing accuracy.

Performance of RoBERTa models on GLUE tasks comparing Full Fine-Tuning, LoRA, and LoRA-SP.

As shown in the RoBERTa evaluation (Figure 4), LoRA-SP achieved an average GLUE score of 88.1 for the Large model using only 0.9M trainable parameters. This not only matched standard LoRA but also outperformed Full Fine-Tuning (87.7 score), which requires updating 348M parameters.

Similar trends were observed in generative tasks. For T5-Large, LoRA-SP reached a BLEU score of 33.5 with 1.15M parameters, nearly identical to LoRA’s 33.6 with double the parameters. In the case of LLaMA-2 13B, LoRA-SP slightly outperformed standard LoRA on the MMLU benchmark (45.4% vs 45.3%) while utilizing only 124.3M trainable parameters.

Discussion and Future Work

The success of LoRA-SP suggests that the low-rank matrices used in standard PEFT methods contain significant redundancy. Freezing half of these parameters acts as a potent regularizer, helping the model adapt to new tasks while preserving general knowledge.

Future research could explore more sophisticated selection strategies beyond random freezing, such as importance-based pruning or gradient-aware selection. Additionally, investigating the optimal freezing ratios for specific domains (e.g., mathematical reasoning vs. creative text generation) could further refine the efficiency of LLM adaptation. By reducing the activation memory footprint, LoRA-SP represents a significant step toward making state-of-the-art LLM fine-tuning accessible on consumer-grade hardware.

Summary updated

BibTeX
@misc{wu2024lora,
  author = {Yichao Wu and Yafei Xiang and Shuning Huo and Yulu Gong and Penghao Liang},
  title = {{LoRA-SP: Streamlined Partial Parameter Adaptation for Resource-Efficient Fine-Tuning of Large Language Models}},
  year = {2024},
  eprint = {2403.08822},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.08822},
}
Figure