Logo image
LAD: Layer-Wise Adaptive Distillation for BERT Model Compression
期刊文章   開放取用(OA)   同儕審查

LAD: Layer-Wise Adaptive Distillation for BERT Model Compression

Ying-Jia Lin, Kuan-Yu ChenHung-Yu Kao
Sensors, 卷.23(3), 1483
02/2023
PMID: 36772523

摘要

BERT deep learning knowledge distillation model compression natural language processing text classification Analytical Chemistry Information Systems Atomic and Molecular Physics and Optics Biochemistry Instrumentation Electrical and Electronic Engineering
Recent advances with large-scale pre-trained language models (e.g., BERT) have brought significant potential to natural language processing. However, the large model size hinders their use in IoT and edge devices. Several studies have utilized task-specific knowledge distillation to compress the pre-trained language models. However, to reduce the number of layers in a large model, a sound strategy for distilling knowledge to a student model with fewer layers than the teacher model is lacking. In this work, we present Layer-wise Adaptive Distillation (LAD), a task-specific distillation framework that can be used to reduce the model size of BERT. We design an iterative aggregation mechanism with multiple gate blocks in LAD to adaptively distill layer-wise internal knowledge from the teacher model to the student model. The proposed method enables an effective knowledge transfer process for a student model, without skipping any teacher layers. The experimental results show that both the six-layer and four-layer LAD student models outperform previous task-specific distillation approaches during GLUE tasks.

檔案與連結 (1)

url
https://doi.org/10.3390/s23031483檢視
已出版(紀錄版本) 開放

相關連結

指標

1 檢視次數

詳細資料

Logo image