Skip to main content
QUICK REVIEW

[论文解读] Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences

Yikuan Li, Ramsey M. Wehbe|arXiv (Cornell University)|Jan 27, 2022
Topic ModelingComputer Science被引用 68
一句话总结

本文在大规模临床笔记上预训练了两个长序列变换模型 Clinical-Longformer 与 Clinical-BigBird,并在多项临床NLP任务中超越 ClinicalBERT 及其他短序列模型。

ABSTRACT

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].

研究动机与目标

  • 由于出院摘要等长文本的存在,说明临床NLP中对长序列变换模型的需求。
  • 在约 200 万条 MIMIC-III 临床笔记上对领域增强的长序列模型进行预训练。
  • 在涵盖问答、NER 与分类任务的多样化临床NLP任务上对模型进行评估。
  • 提供公开可用的代码和预训练权重,以实现可重复性与复用性。

提出的方法

  • 使用 ~2M 条来自 MIMIC-III 的临床笔记,基于字节级 BPE 对 Longformer 和 ITC BigBird 权重的变体进行预训练。
  • 使用 6×32GB GPU,FP16;Clinical-Longformer 训练 200k 步,Clinical-BigBird 训练 300k 步;学习率为 3e-5。
  • 在 9 个临床NLP数据集上进行微调,覆盖 QA、NER 与分类任务,最大输入长度为 4096 token,必要时采用片段聚合进行汇总。
  • 在每个任务上对比 BERT、BioBERT 与 ClinicalBERT 基线。

实验结果

研究问题

  • RQ1长序列变换模型是否能够利用扩展的输入长度,在超出 512-token 限制的临床文本任务上提升性能?
  • RQ2Clinical-Longformer 与 Clinical-BigBird 是否在临床领域的 QA、NER 与文档分类任务中超越短序列的领域模型?
  • RQ3这两种长序列模型在临床NLP基准测试中的性能与训练效率有何对比?

主要发现

  • Clinical-Longformer 与 Clinical-BigBird 在所评估的任务上均超过短序列基线(ClinicalBERT、BioBERT、BERT)。
  • 在 QA(Relation 的 F1 达到最高 0.948)、NER(i2b2 2010 的 F1 最多达到 0.887)以及多项临床数据集的文档分类上取得显著提升。
  • Clinical-Longformer 一般比 Clinical-BigBird 获得更好的结果,且在资源受限时因微调更快而被推荐使用。
  • 长序列模型在平均序列长度较长的数据集上(如 i2b2 2014、emrQA HeartDisease)显示更大幅度的收益。
  • 开源代码与可下载的预训练权重有助于复现并扩展到其他临床NLP任务。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。