Clinical-Longformer和Clinical-BigBird:用于长临床序列的Transformers
Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences
摘要:
基于转换器的模型,如BERT,极大地提高了各种自然语言处理任务的性能。临床知识丰富的模型,即ClinicalBERT,在临床命名实体识别和自然语言推理任务上执行时也取得了最先进的结果。这些Transformers的核心限制之一是由于其完全的自我注意力机制而导致的大量内存消耗。为了克服这一问题,长序列Transformer模型,如Longformer和BigBird,提出了稀疏注意力机制的思想,将存储器的使用从序列长度的二次方减少到线性尺度。这些模型将最大输入序列长度从512扩展到4096,增强了对长期依赖的建模能力,从而在各种任务中获得了最佳结果。受这些长序列Transformer模型成功的启发,我们引入了两个领域丰富的语言模型,即Clinical-Longformer和Clinical-BigBird,它们是从大规模临床语料库中预先训练的。我们使用10个基线任务来评估这两个预训练模型,包括命名实体识别、问答和文档分类任务。结果表明,在所有下游任务中,Clinical-Longformer和Clinical-BigBird始终显著优于ClinicalBERT以及其他短序Transformers。我们已经在[https://github.com/luoyuanlab/Clinical-Longformer]上提供了我们的源代码,预训练模型可在[https://huggingface.co/yikuan8/Clinical-Longformer]上公开下载。
英文摘要:
Transformers-based models, such as BERT, have dramatically improved the performance for various natural language processing tasks. The clinical knowledge enriched model, namely ClinicalBERT, also achieved state-of-the-art results when performed on clinical named entity recognition and natural language inference tasks. One of the core limitations of these transformers is the substantial memory consumption due to their full self-attention mechanism. To overcome this, long sequence transformer models, e.g. Longformer and BigBird, were proposed with the idea of sparse attention mechanism to reduce the memory usage from quadratic to the sequence length to a linear scale. These models extended the maximum input sequence length from 512 to 4096, which enhanced the ability of modeling long-term dependency and consequently achieved optimal results in a variety of tasks. Inspired by the success of these long sequence transformer models, we introduce two domain enriched language models, namely Clinical-Longformer and Clinical-BigBird, which are pre-trained from large-scale clinical corpora. We evaluate both pre-trained models using 10 baseline tasks including named entity recognition, question answering, and document classification tasks. The results demonstrate that Clinical-Longformer and Clinical-BigBird consistently and significantly outperform ClinicalBERT as well as other short-sequence transformers in all downstream tasks. We have made our source code available at [https://github.com/luoyuanlab/Clinical-Longformer] the pre-trained models available for public download at: [https://huggingface.co/yikuan8/Clinical-Longformer].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。