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

oBERTa:通过改进的初始化、蒸馏和剪枝机制改进稀疏迁移学习

oBERTa: Improving Sparse Transfer Learning via improved initialization, distillation, and pruning regimes

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Neural Magic Inc.(神经魔法公司)

Daniel Campos, Alexandre Marques, Mark Kurtz, ChengXiang Zhai

AI总结:

本文提出 oBERTa 稀疏语言模型系列,通过冻结嵌入、改进蒸馏初始化与剪枝量化流程,让无压缩经验者获得高准确率且推理提速 3.8–24.3 倍的模型。

摘要:

本文介绍了一系列 oBERTa 语言模型,这是一组易于使用的语言模型,可使自然语言处理(NLP)从业者无需具备模型压缩专业知识,即可获得速度提升 3.8 至 24.3 倍的模型。具体而言,oBERTa 扩展了剪枝、知识蒸馏和量化方面的现有工作,并利用冻结嵌入改进蒸馏和模型初始化,从而在广泛的迁移任务上实现更高准确率。在构建 oBERTa 时,我们研究了经过高度优化的 RoBERTa 在预训练和微调期间的剪枝表现与 BERT 有何不同。我们发现它在微调期间较不适合压缩。我们在七个具有代表性的 NLP 任务上考察了 oBERTa 的使用,发现改进后的压缩技术使剪枝后的 oBERTa 模型能够在 SQUAD V1.1 问答数据集上达到 BERTbase 的性能,并超过 Prune OFA Large 的性能,而其推理速度分别是二者的 8 倍和 2 倍。我们发布代码、训练机制及相关模型以供广泛使用,从而促进使用和实验。

英文摘要:

In this paper, we introduce the range of oBERTa language models, an easy-to-use set of language models which allows Natural Language Processing (NLP) practitioners to obtain between 3.8 and 24.3 times faster models without expertise in model compression. Specifically, oBERTa extends existing work on pruning, knowledge distillation, and quantization and leverages frozen embeddings improves distillation and model initialization to deliver higher accuracy on a broad range of transfer tasks. In generating oBERTa, we explore how the highly optimized RoBERTa differs from the BERT for pruning during pre-training and finetuning. We find it less amenable to compression during fine-tuning. We explore the use of oBERTa on seven representative NLP tasks and find that the improved compression techniques allow a pruned oBERTa model to match the performance of BERTbase and exceed the performance of Prune OFA Large on the SQUAD V1.1 Question Answering dataset, despite being 8x and 2x, respectively faster in inference. We release our code, training regimes, and associated model for broad usage to encourage usage and experimentation

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

↑