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

通过准确率预测器剪枝大型语言模型

Pruning Large Language Models via Accuracy Predictor

Tongji University(同济大学);Chongqing University(重庆大学)

Yupeng Ji, Yibo Cao, Jiucai Liu

AI总结:

提出基于准确率预测器的剪枝方法,自动选择最优模型,在困惑度和MMLU准确率上均优于基线。

摘要:

包含数百亿(甚至更多)参数的大型语言模型(LLMs)在各种自然语言处理任务中展现出了令人印象深刻的能力。然而,巨大的模型规模给训练、推理和部署带来了挑战,因此有必要对模型进行压缩。目前,大多数针对大型语言模型的模型压缩方法需要手动设计剪枝特征,这存在优化流程复杂以及难以保留模型某些部分能力等问题。因此,我们提出了一种新颖的剪枝方法:首先,建立一定数量的架构-准确率对训练集,然后训练一个非神经网络模型作为准确率预测器。利用准确率预测器进一步优化搜索空间并进行搜索,可以自动选择最优模型。实验表明,我们提出的方法有效且高效。与基线相比,在Wikitext2和PTB上的困惑度(PPL)分别下降了9.48%和5.76%,MMLU的平均准确率提高了6.28%。

英文摘要:

Large language models(LLMs) containing tens of billions of parameters (or even more) have demonstrated impressive capabilities in various NLP tasks. However, substantial model size poses challenges to training, inference, and deployment so that it is necessary to compress the model. At present, most model compression for LLMs requires manual design of pruning features, which has problems such as complex optimization pipeline and difficulty in retaining the capabilities of certain parts of the model.Therefore, we propose a novel pruning approach: firstly, a training set of a certain number of architecture-accuracy pairs is established, and then a non-neural model is trained as an accuracy predictor. Using the accuracy predictor to further optimize the search space and search, the optimal model can be automatically selected. Experiments show that our proposed approach is effective and efficient. Compared with the baseline, the perplexity(PPL) on Wikitext2 and PTB dropped by 9.48% and 5,76% respectively, and the average accuracy of MMLU increased by 6.28%.

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

↑