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

无需微调的预训练语言模型剪枝

Pruning Pre-trained Language Models Without Fine-Tuning

Beihang University(北京航空航天大学);Tencent(腾讯);Zhongguancun Laboratory(中关村实验室)

Ting Jiang, Deqing Wang, Fuzhen Zhuang, Ruobing Xie, Feng Xia

AI总结:

针对预训练语言模型剪枝中微调冗余的问题,提出静态模型剪枝(SMP),仅利用第一阶信息进行剪枝以适配下游任务,并设计新掩码函数和训练目标,在多稀疏度下显著优于基线且参数效率更高。

摘要:

为了克服预训练语言模型(PLMs)中的过参数化问题,剪枝作为一种简单直接的压缩方法被广泛使用,它通过直接移除不重要的权重来实现。此前的第一阶方法成功地将PLMs压缩到极高的稀疏度,且性能下降甚微。这些方法(如movement pruning)在微调剩余权重的同时,利用第一阶信息对PLMs进行剪枝。在本工作中,我们认为微调对于第一阶剪枝是冗余的,因为第一阶剪枝足以在无需微调的情况下使PLMs收敛于下游任务。基于这一动机,我们提出了静态模型剪枝(SMP),该方法仅使用第一阶剪枝将PLMs适配于下游任务,同时达到目标稀疏度水平。此外,我们还设计了新的掩码函数和训练目标以进一步提升SMP的效果。在不同稀疏度水平下的广泛实验表明,SMP相较于第一阶和零阶方法均有显著提升。与以往的第一阶方法不同,SMP同样适用于低稀疏度情况,并优于零阶方法。同时,由于不需要微调,SMP在其他方法中具有更高的参数效率。

英文摘要:

To overcome the overparameterized problem in Pre-trained Language Models (PLMs), pruning is widely used as a simple and straightforward compression method by directly removing unimportant weights. Previous first-order methods successfully compress PLMs to extremely high sparsity with little performance drop. These methods, such as movement pruning, use first-order information to prune PLMs while fine-tuning the remaining weights. In this work, we argue fine-tuning is redundant for first-order pruning, since first-order pruning is sufficient to converge PLMs to downstream tasks without fine-tuning. Under this motivation, we propose Static Model Pruning (SMP), which only uses first-order pruning to adapt PLMs to downstream tasks while achieving the target sparsity level. In addition, we also design a new masking function and training objective to further improve SMP. Extensive experiments at various sparsity levels show SMP has significant improvements over first-order and zero-order methods. Unlike previous first-order methods, SMP is also applicable to low sparsity and outperforms zero-order methods. Meanwhile, SMP is more parameter efficient than other methods due to it does not require fine-tuning.

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

↑