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

C4数据集是剪枝的最优选择吗?对LLM剪枝校准数据的调查

Is C4 Dataset Optimal for Pruning? An Investigation of Calibration Data for LLM Pruning

University of Washington(华盛顿大学);University of Surrey(萨里大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);The University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Sun Yat-sen University(中山大学);University of Oxford(牛津大学)

Abhinav Bandari, Lu Yin, Cheng-Yu Hsieh, Ajay Kumar Jaiswal, Tianlong Chen, Li Shen, Ranjay Krishna, Shiwei Liu

AI总结:

本研究调查了校准数据对LLM剪枝的影响,发现C4并非最优选择,算术数据集表现更佳,且ICL比CoT更具普适性,为高效部署LLM提供了重要指导。

摘要:

网络剪枝已成为使LLMs部署成本更低的一种潜在解决方案。然而,现有的LLM剪枝方法普遍依赖C4数据集作为计算剪枝分数的校准数据,而未探索其最优性。在本研究中,我们评估了校准数据选择对LLM剪枝的影响,涵盖了LLM训练和评估中最常用的一系列数据集,包括四个预训练数据集以及涵盖九个数据集的三类下游任务。每个下游数据集分别使用上下文学习(ICL)和思维链(CoT)进行提示。除了观察到校准数据的选择显著影响剪枝后LLMs性能这一有趣现象外,我们的结果还揭示了几个微妙且往往出乎意料的发现,总结如下:(1)即使在常用的预训练数据集中,C4也不是LLM剪枝的最优选择;(2)算术数据集作为校准数据时,表现与预训练数据集相当甚至更好;(3)与预训练数据相比,使用下游数据集进行剪枝不一定有助于相应的下游任务;(4)ICL对所有数据类别具有广泛益处,而CoT仅对某些任务有用。我们的发现阐明了为LLM剪枝仔细选择校准数据的重要性,并为在现实应用中更高效地部署这些强大模型铺平了道路。我们在以下地址发布了代码:https://github.com/abx393/llm-pruning-calibration-data。

英文摘要:

Network pruning has emerged as a potential solution to make LLMs cheaper to deploy. However, existing LLM pruning approaches universally rely on the C4 dataset as the calibration data for calculating pruning scores, leaving its optimality unexplored. In this study, we evaluate the choice of calibration data on LLM pruning, across a wide range of datasets that are most commonly used in LLM training and evaluation, including four pertaining datasets as well as three categories of downstream tasks encompassing nine datasets. Each downstream dataset is prompted with In-Context Learning (ICL) and Chain-of-Thought (CoT), respectively. Besides the already intriguing observation that the choice of calibration data significantly impacts the performance of pruned LLMs, our results also uncover several subtle and often unexpected findings, summarized as follows: (1) C4 is not the optimal choice for LLM pruning, even among commonly used pre-training datasets; (2) arithmetic datasets, when used as calibration data, performs on par or even better than pre-training datasets; (3) pruning with downstream datasets does not necessarily help the corresponding downstream task, compared to pre-training data; (4) ICL is widely beneficial to all data categories, whereas CoT is only useful on certain tasks. Our findings shed light on the importance of carefully selecting calibration data for LLM pruning and pave the way for more efficient deployment of these powerful models in real-world applications. We release our code at: https://github.com/abx393/llm-pruning-calibration-data.

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

↑