arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.03773cs.CLcs.LG
收藏

生成式语言模型的结构化修剪中有什么重要的?

What Matters In The Structured Pruning of Generative Language Models?

Microsoft(微软);Carnegie Mellon University(卡内基梅隆大学)

Michael Santacroce, Zixin Wen, Yelong Shen, Yuanzhi Li

摘要:

自回归大语言模型(如GPT-3)需要使用大量的计算资源。传统上,采用结构化剪枝方法来减少资源使用。然而,他们的应用程序和生成语言模型的有效性是严重不足的探索。在本文中,我们进行了一个全面的评价,常见的结构化修剪方法,包括幅度,随机和运动的GPT型模型的前馈层修剪。出乎意料的是,随机修剪的结果是在多个自然语言生成任务的性能是最好的建立的方法。为了理解这些结果,我们提供了一个框架,用于测量通过不同方法修剪的模型的神经元级冗余,并发现已建立的结构化修剪方法没有考虑到神经元的独特性,留下了多余的冗余。有鉴于此,我们引入全局唯一运动(GUM)来改善修剪模型中神经元的唯一性。然后,我们讨论了我们的技术对不同的冗余度量的影响,以解释改进的性能。

英文摘要:

Auto-regressive large language models such as GPT-3 require enormous computational resources to use. Traditionally, structured pruning methods are employed to reduce resource usage. However, their application to and efficacy for generative language models is heavily under-explored. In this paper we conduct an comprehensive evaluation of common structured pruning methods, including magnitude, random, and movement pruning on the feed-forward layers in GPT-type models. Unexpectedly, random pruning results in performance that is comparable to the best established methods, across multiple natural language generation tasks. To understand these results, we provide a framework for measuring neuron-level redundancy of models pruned by different methods, and discover that established structured pruning methods do not take into account the distinctiveness of neurons, leaving behind excess redundancies. In view of this, we introduce Globally Unique Movement (GUM) to improve the uniqueness of neurons in pruned models. We then discuss the effects of our techniques on different redundancy metrics to explain the improved performance.

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

↑