arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.04732cs.CLcs.LGstat.ML
收藏

大语言模型的结构化剪枝

Structured Pruning of Large Language Models

ASAPP, Inc.(ASAPP公司)

Ziheng Wang, Jeremy Wohlwend, Tao Lei

摘要:

大语言模型最近已经在各种各样的自然语言任务上实现了最先进的性能。与此同时,这些模型的大小和延迟显著增加,这使得它们的使用成本很高,并提出了一个有趣的问题:语言模型需要很大吗?我们从模型压缩的角度来研究这个问题。我们提出了一个通用的,结构化的修剪方法,通过参数化每个权重矩阵使用其低秩分解,并在训练过程中自适应地去除秩1分量。在语言建模任务上,我们的结构化方法在各种压缩级别上都优于其他非结构化和块结构化修剪基线,同时在训练和推理过程中实现了显着的加速。我们还证明,我们的方法可以应用于修剪自适应词嵌入在大语言模型,并修剪BERT模型的几个下游微调分类基准。

英文摘要:

Large language models have recently achieved state of the art performance across a wide variety of natural language tasks. Meanwhile, the size of these models and their latency have significantly increased, which makes their usage costly, and raises an interesting question: do language models need to be large? We study this question through the lens of model compression. We present a generic, structured pruning approach by parameterizing each weight matrix using its low-rank factorization, and adaptively removing rank-1 components during training. On language modeling tasks, our structured approach outperforms other unstructured and block-structured pruning baselines at various compression levels, while achieving significant speedups during both training and inference. We also demonstrate that our method can be applied to pruning adaptive word embeddings in large language models, and to pruning the BERT model on several downstream fine-tuning classification benchmarks.

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

↑