arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.10036cs.CLcs.LG
收藏

预训练语言模型的极值参数压缩研究

Exploring Extreme Parameter Compression for Pre-trained Language Models

Tsinghua University(清华大学);University of Padua(帕多瓦大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Yuxin Ren, Benyou Wang, Lifeng Shang, Xin Jiang, Qun Liu

摘要:

最近的工作探索了大规模基于transformer的预训练模型的潜力,特别是预训练语言模型(PLM)在自然语言处理中的潜力。这从各种角度引起了许多关切,例如,财务成本和碳排放。压缩像BERT这样的PLM,使其性能损失可以忽略不计,以实现更快的推理和更便宜的部署,这引起了人们的广泛关注。在这项工作中,我们的目标是探索更大的压缩比PLM,其中张量分解是一个潜在的,但研究不足。进一步提出了两个分解和重构协议,以提高压缩过程中的有效性和效率。我们在Transformer层中使用${1}/{7}$参数压缩的BERT与GLUE基准测试中的原始BERT表现相当,有时略好。微小版本利用$ {1}/{48} $编码器参数(即,不包括嵌入层的小于2M个参数)和$2.7 \times$更快的推理。为了表明所提出的方法是正交现有的压缩方法,如知识蒸馏,我们还探讨了蒸馏BERT的好处,所提出的方法。

英文摘要:

Recent work explored the potential of large-scale Transformer-based pre-trained models, especially Pre-trained Language Models (PLMs) in natural language processing. This raises many concerns from various perspectives, e.g., financial costs and carbon emissions. Compressing PLMs like BERT with negligible performance loss for faster inference and cheaper deployment has attracted much attention. In this work, we aim to explore larger compression ratios for PLMs, among which tensor decomposition is a potential but under-investigated one. Two decomposition and reconstruction protocols are further proposed to improve the effectiveness and efficiency during compression. Our compressed BERT with ${1}/{7}$ parameters in Transformer layers performs on-par with, sometimes slightly better than the original BERT in GLUE benchmark. A tiny version achieves $96.7\%$ performance of BERT-base with $ {1}/{48} $ encoder parameters (i.e., less than 2M parameters excluding the embedding layer) and $2.7 \times$ faster on inference. To show that the proposed method is orthogonal to existing compression methods like knowledge distillation, we also explore the benefit of the proposed method on a distilled BERT.

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

↑