arrow
Return

DDK: Dynamic structure pruning based on differentiable search and recursive knowledge distillation for BERT

delete2024-05-01
delete3
PRE
AI
Z
Zhou Zhang
Y
Yang Lu
T
Tengfei Wang
X
Xing Wei
Z
Zhen Wei *
DOI:10.1016/j.neunet.2024.106164delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Large-scale pre -trained models, such as BERT, have demonstrated outstanding performance in Natural Language Processing (NLP). Nevertheless, the high number of parameters in these models has increased the demand for hardware storage and computational resources while posing a challenge for their practical deployment. In this article, we propose a combined method of model pruning and knowledge distillation to compress and accelerate large-scale pre -trained language models. Specifically, we introduce a dynamic structure pruning method based on differentiable search and recursive knowledge distillation to automatically prune the BERT model, named DDK. We define the search space for network pruning as all feed -forward layer channels and self -attention heads at each layer of the network, and utilize differentiable methods to determine their optimal number. Additionally, we design a recursive knowledge distillation method that employs adaptive weighting to extract the most important features from multiple intermediate layers of the teacher model and fuse them to supervise the student network learning. Our experimental results on the GLUE benchmark dataset and ablation analysis demonstrate that our proposed method outperforms other advanced methods in terms of average performance.
Keywords:
Pre-trained models
Model compression
Differentiable methods
Network pruning
Knowledge distillation

Journal

Neural Networks cover
Neural Networks
IF:
6.3
Papers:
7.8K
Citations:
3.0W

Organization

H
hefei university of technology
Scholars:
2.5W
Papers: 1.7W
Citations: 35