Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Basis Sharing: Cross-Layer Parameter Sharing for Large Language Model Compression

About

Large Language Models (LLMs) have achieved remarkable breakthroughs. However, the huge number of parameters in LLMs require significant amount of memory storage in inference, which prevents their practical deployment in many applications. To reduce memory storage of LLMs, singular value decomposition (SVD) provides a promising solution to approximate weight matrices for compressing LLMs. In this paper, we take a step further to explore parameter sharing across different layers with SVD to achieve more effective compression for LLMs. Specifically, weight matrices in different layers are decomposed and represented as a linear combination of a set of shared basis vectors and unique coefficients. The types of weight matrices and the layer selection for basis sharing are examined when compressing LLMs to maintain the performance. Comprehensive experiments demonstrate that Basis Sharing outperforms state-of-the-art SVD-based compression approaches and parameter sharing techniques, especially under large compression ratios. Code is available at: https://github.com/TUDa-HWAI/Basis_Sharing

Jingcun Wang, Yu-Guang Chen, Ing-Chao Lin, Bing Li, Grace Li Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy43.4
1460
Language ModelingC4
Perplexity23.3
1182
Language ModelingWikiText-2
Perplexity (PPL)9.39
841
Question AnsweringARC Challenge
Accuracy33.7
749
Language ModelingWikiText
PPL15.2
479
Question AnsweringARC Easy
Accuracy66.5
386
Question AnsweringSciQ
Accuracy91
226
Reading ComprehensionRACE
Accuracy34.9
151
Word PredictionLAMBADA
Accuracy63
112
Multi-task Language UnderstandingMMLU
Accuracy24.8
101
Showing 10 of 13 rows

Other info

Follow for update