Saved in:
Bibliographic Details
Main Authors: Li, Jianwei, Lei, Qi, Cheng, Wei, Xu, Dongkuan
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2310.13191
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910293899083776
author Li, Jianwei
Lei, Qi
Cheng, Wei
Xu, Dongkuan
author_facet Li, Jianwei
Lei, Qi
Cheng, Wei
Xu, Dongkuan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2310_13191
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Towards Robust Pruning: An Adaptive Knowledge-Retention Pruning Strategy for Language Models
Li, Jianwei
Lei, Qi
Cheng, Wei
Xu, Dongkuan
Computation and Language
Artificial Intelligence
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.
title Towards Robust Pruning: An Adaptive Knowledge-Retention Pruning Strategy for Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2310.13191