arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.06243cs.CLcs.AI
收藏

KroneckerBERT:通过知识蒸馏学习预训练语言模型的Kronecker分解

KroneckerBERT: Learning Kronecker Decomposition for Pre-trained Language Models via Knowledge Distillation

Huawei Technologies Canada(华为技术加拿大公司);University of Waterloo(滑铁卢大学)

Marzieh S. Tahaei, Ella Charlaix, Vahid Partovi Nia, Ali Ghodsi, Mehdi Rezagholizadeh

摘要:

过度参数化的预训练语言模型的开发对自然语言处理的成功做出了重大贡献。虽然这些模型的过度参数化是其泛化能力的关键,但这使得它们不适合部署在低容量设备上。我们使用Kronecker分解推动了最先进的基于transformer的预训练语言模型压缩的极限。我们使用这种分解来压缩嵌入层、多头注意力中的所有线性映射以及Transformer层中的前馈网络模块。我们使用未压缩模型作为教师来执行中间层知识蒸馏,以提高压缩模型的性能。我们提出了我们的克罗内克BERT,压缩版本的BERT_BASE模型使用这个框架。我们在著名的NLP基准测试中评估了Kronecker BERT的性能,结果表明,对于19的高压缩因子(BERT_BASE模型大小的5%),我们的Kronecker BERT在GLUE上的性能优于最先进的压缩方法。实验结果表明,该模型具有良好的分布外鲁棒性,优于SQuAD上现有的压缩方法。

英文摘要:

The development of over-parameterized pre-trained language models has made a significant contribution toward the success of natural language processing. While over-parameterization of these models is the key to their generalization power, it makes them unsuitable for deployment on low-capacity devices. We push the limits of state-of-the-art Transformer-based pre-trained language model compression using Kronecker decomposition. We use this decomposition for compression of the embedding layer, all linear mappings in the multi-head attention, and the feed-forward network modules in the Transformer layer. We perform intermediate-layer knowledge distillation using the uncompressed model as the teacher to improve the performance of the compressed model. We present our KroneckerBERT, a compressed version of the BERT_BASE model obtained using this framework. We evaluate the performance of KroneckerBERT on well-known NLP benchmarks and show that for a high compression factor of 19 (5% of the size of the BERT_BASE model), our KroneckerBERT outperforms state-of-the-art compression methods on the GLUE. Our experiments indicate that the proposed model has promising out-of-distribution robustness and is superior to the state-of-the-art compression methods on SQuAD.

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

↑