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

紧凑型生物医学Transformers的有效性

On the Effectiveness of Compact Biomedical Transformers

NLPie(NLPie公司)

Omid Rohanian, Mohammadmahdi Nouriborji, Samaneh Kouchaki, David A. Clifton

摘要:

在生物医学语料库上预训练的语言模型,如BioBERT,最近在下游生物医学任务上显示出有希望的结果。另一方面,由于嵌入大小、隐藏维度和层数等因素,许多现有的预训练模型都是资源密集型的,计算量很大。自然语言处理(NLP)社区已经开发了许多策略来压缩这些模型,使用修剪,量化和知识蒸馏等技术,从而产生更快,更小,更容易在实践中使用的模型。出于同样的原因,在本文中,我们介绍了六个轻量级模型,即BioDistilBERT,BioTinyBERT,BioMobileBERT,DistilBioBERT,TinyBioBERT和CompactBioBERT,它们是通过生物医学教师的知识蒸馏或通过Masked Language Modeling(MLM)目标在Pubmed数据集上进行持续学习而获得的。我们在三个生物医学任务上评估了我们所有的模型,并将它们与BioBERT-v1.1进行比较,以创建与大型模型不相上下的高效轻量级模型。所有的模型都将在我们的Huggingface个人资料中公开,网址是https://huggingface.co/nlpie,用于运行实验的代码将在https://github.com/nlpie-research/Compact-Biomedical-Transformers上提供。

英文摘要:

Language models pre-trained on biomedical corpora, such as BioBERT, have recently shown promising results on downstream biomedical tasks. Many existing pre-trained models, on the other hand, are resource-intensive and computationally heavy owing to factors such as embedding size, hidden dimension, and number of layers. The natural language processing (NLP) community has developed numerous strategies to compress these models utilising techniques such as pruning, quantisation, and knowledge distillation, resulting in models that are considerably faster, smaller, and subsequently easier to use in practice. By the same token, in this paper we introduce six lightweight models, namely, BioDistilBERT, BioTinyBERT, BioMobileBERT, DistilBioBERT, TinyBioBERT, and CompactBioBERT which are obtained either by knowledge distillation from a biomedical teacher or continual learning on the Pubmed dataset via the Masked Language Modelling (MLM) objective. We evaluate all of our models on three biomedical tasks and compare them with BioBERT-v1.1 to create efficient lightweight models that perform on par with their larger counterparts. All the models will be publicly available on our Huggingface profile at https://huggingface.co/nlpie and the codes used to run the experiments will be available at https://github.com/nlpie-research/Compact-Biomedical-Transformers.

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

↑