arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.11222cs.LGcs.CL
收藏

LoSparse:基于低秩和稀疏近似的大型语言模型结构化压缩

LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximation

Georgia Tech(佐治亚理工学院);Microsoft Azure(微软Azure)

Yixiao Li, Yifan Yu, Qingru Zhang, Chen Liang, Pengcheng He, Weizhu Chen, Tuo Zhao

AI总结:

提出LoSparse模型压缩技术,通过低秩矩阵与稀疏矩阵之和近似权重矩阵,结合低秩近似与剪枝优势,在自然语言任务中显著优于现有方法。

摘要:

Transformer模型在各种自然语言任务中取得了显著成果,但通常过于庞大,需要大量内存和计算资源。为减小模型大小和复杂度,我们提出LoSparse(低秩和稀疏近似),这是一种新型模型压缩技术,通过低秩矩阵和稀疏矩阵之和来近似权重矩阵。该方法结合了低秩近似和剪枝的优势,同时避免了它们的局限性。低秩近似压缩神经元中连贯且富有表现力的部分,而剪枝移除不连贯且缺乏表现力的部分。剪枝增强了低秩近似的多样性,低秩近似则防止剪枝丢失过多表现力强的神经元。我们在自然语言理解、问答和自然语言生成任务上评估了该方法,结果表明其显著优于现有压缩方法。

英文摘要:

Transformer models have achieved remarkable results in various natural language tasks, but they are often prohibitively large, requiring massive memories and computational resources. To reduce the size and complexity of these models, we propose LoSparse (Low-Rank and Sparse approximation), a novel model compression technique that approximates a weight matrix by the sum of a low-rank matrix and a sparse matrix. Our method combines the advantages of both low-rank approximations and pruning, while avoiding their limitations. Low-rank approximation compresses the coherent and expressive parts in neurons, while pruning removes the incoherent and non-expressive parts in neurons. Pruning enhances the diversity of low-rank approximations, and low-rank approximation prevents pruning from losing too many expressive neurons. We evaluate our method on natural language understanding, question answering, and natural language generation tasks. We show that it significantly outperforms existing compression methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑