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

Adapt-and-Distill:为领域开发小型,快速和有效的预训练语言模型

Adapt-and-Distill: Developing Small, Fast and Effective Pretrained Language Models for Domains

Shandong University(山东大学);Microsoft Research(微软研究院)

Yunzhi Yao, Shaohan Huang, Wenhui Wang, Li Dong, Furu Wei

摘要:

大型预训练模型在许多自然语言处理任务中取得了巨大的成功。然而,当它们应用于特定领域时,这些模型遭受域转移,并在延迟和容量限制的微调和在线服务方面带来挑战。在本文中,我们提出了一种为特定领域开发小型,快速和有效的预训练模型的通用方法。这是通过调整现成的一般预训练模型并在目标域中执行任务不可知的知识蒸馏来实现的。具体而言,我们提出了在适应阶段的特定领域的词汇扩展,并采用语料库级别的出现概率来自动选择增量词汇的大小。然后,我们系统地探索不同的策略来压缩特定领域的大型预训练模型。我们在生物医学和计算机科学领域进行实验。实验结果表明,我们的方法在特定领域的任务取得了更好的性能比BERT BASE模型,而3.3倍的小和5.1倍的速度比BERT BASE。代码和预训练模型可在https://aka.ms/adalm上获得。

英文摘要:

Large pre-trained models have achieved great success in many natural language processing tasks. However, when they are applied in specific domains, these models suffer from domain shift and bring challenges in fine-tuning and online serving for latency and capacity constraints. In this paper, we present a general approach to developing small, fast and effective pre-trained models for specific domains. This is achieved by adapting the off-the-shelf general pre-trained models and performing task-agnostic knowledge distillation in target domains. Specifically, we propose domain-specific vocabulary expansion in the adaptation stage and employ corpus level occurrence probability to choose the size of incremental vocabulary automatically. Then we systematically explore different strategies to compress the large pre-trained models for specific domains. We conduct our experiments in the biomedical and computer science domain. The experimental results demonstrate that our approach achieves better performance over the BERT BASE model in domain-specific tasks while 3.3x smaller and 5.1x faster than BERT BASE. The code and pre-trained models are available at https://aka.ms/adalm.

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

↑