arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.08460cs.CL
收藏

基于压缩解码器的语言模型研究

A Short Study on Compressing Decoder-Based Language Models

Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Tianda Li, Yassir El Mesbahi, Ivan Kobyzev, Ahmad Rashid, Atif Mahmud, Nithin Anchuri, Habib Hajimolahoseini, Yang Liu, Mehdi Rezagholizadeh

摘要:

预训练的语言模型(PLM)已经成功地用于广泛的自然语言处理(NLP)任务。然而,最先进的PLM非常大,无法在边缘设备上使用。因此,模型压缩在自然语言处理领域引起了越来越多的关注。现有的研究大多集中在压缩基于编码器的模型(tiny-BERT,distilBERT,distilRoBERTa等),然而,据我们所知,对基于解码器的模型(如GPT-2)的压缩研究并不多。本文旨在填补这一空白。具体而言,我们探索两个方向:1)我们采用当前最先进的知识蒸馏技术,以改善DistilGPT-2的微调。2)我们使用层截断来预训练压缩的GPT-2模型,并将其与基于蒸馏的方法(DistilGPT 2)进行比较。我们的压缩模型的训练时间明显少于DistilGPT-2,但当对下游任务进行微调时,它可以实现更好的性能。我们还展示了数据清洗对模型性能的影响。

英文摘要:

Pre-trained Language Models (PLMs) have been successful for a wide range of natural language processing (NLP) tasks. The state-of-the-art of PLMs, however, are extremely large to be used on edge devices. As a result, the topic of model compression has attracted increasing attention in the NLP community. Most of the existing works focus on compressing encoder-based models (tiny-BERT, distilBERT, distilRoBERTa, etc), however, to the best of our knowledge, the compression of decoder-based models (such as GPT-2) has not been investigated much. Our paper aims to fill this gap. Specifically, we explore two directions: 1) we employ current state-of-the-art knowledge distillation techniques to improve fine-tuning of DistilGPT-2. 2) we pre-train a compressed GPT-2 model using layer truncation and compare it against the distillation-based method (DistilGPT2). The training time of our compressed model is significantly less than DistilGPT-2, but it can achieve better performance when fine-tuned on downstream tasks. We also demonstrate the impact of data cleaning on model performance.

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

↑