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

迈向鲁棒剪枝:一种面向语言模型的自适应知识保留剪枝策略

Towards Robust Pruning: An Adaptive Knowledge-Retention Pruning Strategy for Language Models

North Carolina State University(北卡罗来纳州立大学);New York University(纽约大学);NEC-Labs(NEC实验室)

Jianwei Li, Qi Lei, Wei Cheng, Dongkuan Xu

AI总结:

本文提出一种训练后自适应知识保留剪枝策略,通过复现稠密模型的嵌入与特征空间并校正累积误差,在BERT和多个数据集上实现了准确率、稀疏性、鲁棒性与剪枝成本的更优平衡。

摘要:

近年来,剪枝目标已从准确率和稀疏性扩展到语言模型的鲁棒性。尽管如此,现有方法在持续提高模型稀疏性时难以增强对对抗攻击的鲁棒性,并且需要重新训练过程。随着人类步入大语言模型时代,这些问题变得日益突出。本文提出,语言模型的鲁棒性与其所包含的预训练知识程度成正比。据此,我们引入一种训练后剪枝策略,旨在忠实复现稠密语言模型的嵌入空间和特征空间,从而在剪枝过程中保留更多预训练知识。在该设置下,每一层的重构误差不仅来源于自身,还包括来自前面层的累积误差,随后进行自适应校正。与其他最先进的基线方法相比,我们的方法在使用BERT在SST2、IMDB和AGNews数据集上展示了准确率、稀疏性、鲁棒性和剪枝成本之间的优越平衡,标志着语言模型鲁棒剪枝的重要进展。

英文摘要:

The pruning objective has recently extended beyond accuracy and sparsity to robustness in language models. Despite this, existing methods struggle to enhance robustness against adversarial attacks when continually increasing model sparsity and require a retraining process. As humans step into the era of large language models, these issues become increasingly prominent. This paper proposes that the robustness of language models is proportional to the extent of pre-trained knowledge they encompass. Accordingly, we introduce a post-training pruning strategy designed to faithfully replicate the embedding space and feature space of dense language models, aiming to conserve more pre-trained knowledge during the pruning process. In this setup, each layer's reconstruction error not only originates from itself but also includes cumulative error from preceding layers, followed by an adaptive rectification. Compared to other state-of-art baselines, our approach demonstrates a superior balance between accuracy, sparsity, robustness, and pruning cost with BERT on datasets SST2, IMDB, and AGNews, marking a significant stride towards robust pruning in language models.

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

↑