Specialised pre-trained language models are becoming more frequent in NLP since they can potentially outperform models trained on generic texts. BioBERT and BioClinicalBERT are two examples of such models that have shown promise in medical NLP tasks. Many of these models are overparametrised and resource-intensive, but thanks to techniques like Knowledge Distillation (KD), it is possible to create smaller versions that perform almost as well as their larger counterparts. In this work, we specifically focus on development of compact language models for processing clinical texts (i.e. progress notes, discharge summaries etc). We developed a number of efficient lightweight clinical transformers using knowledge distillation and continual learning, with the number of parameters ranging from 15 million to 65 million. These models performed comparably to larger models such as BioBERT and ClinicalBioBERT and significantly outperformed other compact models trained on general or biomedical data. Our extensive evaluation was done across several standard datasets and covered a wide range of clinical text-mining tasks, including Natural Language Inference, Relation Extraction, Named Entity Recognition, and Sequence Classification. To our knowledge, this is the first comprehensive study specifically focused on creating efficient and compact transformers for clinical NLP tasks. The models and code used in this study can be found on our Huggingface profile at https://huggingface.co/nlpie and Github page at https://github.com/nlpie-research/Lightweight-Clinical-Transformers, respectively, promoting reproducibility of our results.
翻译:受过专门训练的语文模型在《国家实验室规划》中越来越常见,因为这些模型可能比通用文本培训的模型要优于通用文本培训的模型。BioBERT和BioClinicBERT是这类模型在医学NLP任务中表现出希望的两个例子。许多这些模型过于分散,资源密集,但是由于知识蒸馏(KD)等技术,有可能创造出几乎和其较大对应方都能够发挥作用的小型版本。在这项工作中,我们特别侧重于开发用于处理临床文本的紧凑语言模型(即进度说明、排放摘要等)。我们开发了一些高效的轻量临床变异器,使用的知识蒸馏和持续学习,参数的数量从1500万到6,500万不等。这些模型的运行可兼容性过大,资源密集,但是由于像“BioBERT和临床BioggBERT(K)”这样的技术,因此有可能大大超过其他经过一般或生物医学数据培训的常规模型。我们在几个标准数据集中进行了广泛的评估,并覆盖了广泛的临床文本挖掘任务,包括自然语言推断、Relation Priverson、National Indealation、National Indecience、Nation、National和Squencal recregradustrislation和Slational 。在我们的临床分类中专门研究中找到了研究中可以具体地研究。