Introduction
Large language models (LLMs) present a "double-edged sword": while they offer state-of-the-art performance, the high cost of fine-tuning and the massive size of the resulting models pose significant deployment challenges. Fine-tuning models like GPT-3 (175B parameters) is prohibitively expensive in terms of memory and time. Furthermore, a standard fine-tuned model retains the original pre-trained size, which is often impractical for resource-constrained environments like mobile devices.
DSEE (Dually Sparsity-embedded Efficient Tuning) is a novel framework designed to address these "pain points" simultaneously. By combining sparse low-rank weight updates with a strategic pruning method that utilizes these updates as a guide, DSEE achieves competitive performance with only 0.5% trainable parameters while reducing inference FLOPs by 25%.
Methodology
DSEE introduces a "dual" approach to sparsity, targeting both the weight updates during training and the original model weights for inference efficiency.
The framework consists of three primary components:
- Sparsity-Aware Low-Rank Updates: Instead of updating all weights, DSEE represents the weight update ($\Delta W$) as a combination of a low-rank component (similar to LoRA) and a sparse residual. This sparse residual captures critical information that "scatters" outside the low-rank subspace, identified using a Robust PCA-inspired algorithm (GreBsmo).
- Resource-Efficient Inference (Pruning): DSEE leverages the magnitude of the weight updates ($\Delta W$) as a signal to prune the original pre-trained weights ($W$). The intuition is that weights requiring minimal updates for task adaptation are less critical for that specific task.
- Unified Pipeline: The process involves training low-rank matrices and sparse residuals (Phase I), pruning original weights based on update magnitudes (Phase II), and a final fine-tuning round to recover performance (Phase III).
Experimental Setup
The authors evaluated DSEE across diverse benchmarks and architectures:
- Natural Language Understanding (NLU): The GLUE benchmark (SST-2, RTE, CoLA, MRPC, MNLI, QNLI, QQP, and STS-B) was tested using BERT-base and RoBERTa-large.
- Natural Language Generation (NLG): E2E, WebNLG, and DART datasets were evaluated using GPT-2.
Key Results and Insights
DSEE demonstrates that the "residual" matters; pure low-rank adaptation (like LoRA) is slightly lossy, and adding a small amount of sparse trainable parameters consistently improves performance. Furthermore, using the magnitude of change ($\Delta W$) as a pruning criterion proves superior to traditional weight-magnitude-based pruning.
Key performance metrics include:
- Efficiency: On BERT, DSEE saves approximately 25% of inference FLOPs with only 0.5% trainable parameters.
- Performance: On GPT-2, DSEE achieved higher BLEU scores on NLG tasks compared to LoRA and Adapters, even when pruned to 50-80% of the original size.
- Robustness: On the GLUE benchmark, DSEE at 70% total parameters often outperformed LoRA at 100% parameters. For instance, on the RTE task, DSEE achieved 71.48% accuracy compared to LoRA's 68.95%.
Conclusion and Future Work
While DSEE offers significant theoretical efficiency, the authors note that unstructured sparsity (individual zeroed-out weights) may not always translate to immediate hardware speedups on standard GPUs without specialized kernels. Future work will explore extending DSEE to computer vision and multi-modal models, as well as testing its scalability on models exceeding 100B parameters.
Summary updated