Dynamic Low-Rank Sparse Adaptation for Large Language Models

Weizhong Huang, Yuxin Zhang, Xiawu Zheng, Liuyang, Jing Lin, Yiwu Yao, Rongrong Ji

Abstract

Large Language Models (LLMs) face significant deployment challenges due to their immense computational and memory requirements. While network pruning offers a path toward compression, it often results in a "performance cliff" at high sparsity ratios. We present Dynamic Low-Rank Sparse Adaptation (LoSA), a novel framework that integrates model pruning with parameter-efficient fine-tuning. By dynamically sparsifying LoRA weights to match the backbone's sparsity pattern, LoSA enables seamless weight merging and zero additional inference latency. Experimental results demonstrate that LoSA significantly recovers LLM performance at sparsity ratios up to 70%, achieving substantial inference speedups on both CPU and GPU architectures.

Introduction

The deployment of Large Language Models (LLMs) is frequently bottlenecked by their massive scale. Network sparsity, or pruning, is a primary strategy for compressing these models; however, as the sparsity ratio increases, model accuracy typically degrades sharply. While Low-Rank Adaptation (LoRA) is commonly used to fine-tune and recover performance in sparse models, standard LoRA implementations suffer from three critical limitations:

  1. Incompatibility: Standard LoRA weights are dense. Merging them into a sparse backbone destroys the sparsity pattern, while keeping them separate introduces additional inference latency.
  2. Static Configurations: Conventional methods apply uniform sparsity rates and LoRA ranks across all layers, failing to account for the varying sensitivity and redundancy of different model components.
  3. Insufficient Recovery: At high sparsity levels (e.g., 70%), standard fine-tuning often fails to restore the model to a functional state.

To address these challenges, we introduce LoSA, a framework that treats sparsity and adaptation as a joint optimization problem.

Methodology

LoSA introduces several key innovations designed to optimize the trade-off between model size and performance.

Dynamic Sparsification and Mergeability

To eliminate the "LoRA tax"—the latency overhead associated with non-merged adapters—LoSA applies the same binary mask used for the sparse LLM weights to the LoRA weights during fine-tuning. This ensures that the adapted weights can be perfectly merged back into the sparse backbone without increasing the number of non-zero parameters, maintaining the model's structural sparsity for inference.

Representation Mutual Information (RMI)

Rather than employing uniform sparsity, LoSA utilizes Representation Mutual Information (RMI) to identify layer-wise redundancy. By measuring how highly correlated a layer is with others, the framework assigns higher sparsity rates to redundant layers (typically found in the middle of the model) and preserves more density in critical layers. To ensure computational efficiency, LoSA utilizes the Hilbert-Schmidt Independence Criterion (HSIC) as a fast approximation for RMI.

Sparsity-Aware Rank Allocation

Instead of a fixed rank (e.g., $r=8$) for all layers, LoSA calculates the reconstruction error for each layer following pruning. It then dynamically allocates higher ranks to layers that suffered the greatest information loss, ensuring the parameter budget is spent where it is most needed for recovery.

Cubic Sparsity Schedule

The framework employs a cubic sparsity schedule to prune the model progressively. Simultaneously, the LoRA rank is increased linearly, allowing the model to stabilize and adapt as the architecture becomes increasingly sparse.

Experimental Setup

The researchers evaluated LoSA across a diverse range of model architectures, including LLaMA-1, LLaMA-2, LLaMA-3, LLaMA-3.1, Vicuna, and OPT, with parameter counts ranging from 7B to 70B.

  • Fine-tuning: Models were fine-tuned on a 10K subset of the Alpaca-GPT4 dataset.
  • Evaluation: Performance was measured using WikiText-2 (perplexity) for language modeling and a suite of seven zero-shot reasoning benchmarks, including HellaSwag, Winogrande, BoolQ, OpenBookQA, PIQA, ARC-Easy, and ARC-Challenge.

Results and Discussion

LoSA demonstrates superior performance recovery and efficiency compared to existing sparse-tuning methods like SparseGPT and Wanda.

Performance Recovery

For a LLaMA-2-7B model at 70% sparsity, LoSA reduced perplexity by 68.73 and improved zero-shot accuracy by 16.32% compared to the pruned baseline. This indicates that the dynamic allocation of rank and sparsity effectively targets the most damaged representations in the model.

Inference and Training Efficiency

Because LoSA weights are merged into the backbone, the model achieves a 2.60× speedup on CPU (via DeepSparse) and a 2.23× speedup on GPU (via nm-vllm) relative to the original dense model. Furthermore, the training process is highly efficient; the entire adaptation for a 7B model requires only 45 minutes on a single NVIDIA A100 (80GB) GPU.

Structural Insights

RMI analysis confirmed that the middle layers of LLMs often contain the highest redundancy. By exploiting this, LoSA maintains higher density in the initial and final layers, which appear more critical for maintaining model coherence and task performance.

Conclusion

LoSA represents a significant advancement in LLM compression, successfully bridging the gap between high-ratio pruning and parameter-efficient fine-tuning. By ensuring mergeability and utilizing error-driven budget allocation, LoSA provides a practical path for deploying high-performance sparse LLMs. Future work will explore the integration of LoSA with quantization techniques and the application of RMI-based metrics to broader model architecture search problems.

Summary updated

BibTeX
@inproceedings{huang2025dynamic,
  author = {Weizhong Huang and Yuxin Zhang and Xiawu Zheng and Liuyang and Jing Lin and Yiwu Yao and Rongrong Ji},
  title = {{Dynamic Low-Rank Sparse Adaptation for Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=oXh0939Zzq},
}
Figure