[Paper Review] Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences
The paper pre-trains two long-sequence transformer models, Clinical-Longformer and Clinical-BigBird, on large-scale clinical notes and shows they outperform ClinicalBERT and other short-sequence models across multiple clinical NLP tasks.
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].
Motivation & Objective
- Motivate the need for long-sequence transformers in clinical NLP due to lengthy clinical texts such as discharge summaries.
- Pre-train domain-enriched long-sequence models on ~2 million MIMIC-III clinical notes.
- Evaluate the models on a diverse set of clinical NLP tasks (QA, NER, document classification).
- Provide publicly available code and pre-trained weights for reproducibility and reuse.
Proposed method
- Pre-train Longformer and BigBird variants from base Longformer and ITC BigBird weights using byte-level BPE on ~2M clinical notes from MIMIC-III.
- Use 6×32GB GPUs with FP16; train Clinical-Longformer for 200k steps and Clinical-BigBird for 300k steps; learning rate 3e-5.
- Fine-tune on 9 clinical NLP datasets spanning QA, NER, and classification tasks with a 4096-token max input, aggregating with snippet pooling where needed.
- Compare against BERT, BioBERT, and ClinicalBERT baselines on each task.
Experimental results
Research questions
- RQ1Can long-sequence transformers leverage extended input lengths to improve performance on clinical text tasks beyond 512-token limits?
- RQ2Do Clinical-Longformer and Clinical-BigBird outperform short-sequence domain models across QA, NER, and document classification in clinical domains?
- RQ3How do the two long-sequence models compare to each other in terms of performance and training efficiency on clinical NLP benchmarks?
Key findings
- Both Clinical-Longformer and Clinical-BigBird outperform short-sequence baselines (ClinicalBERT, BioBERT, BERT) across the evaluated tasks.
- They achieve notable gains in QA (F1 up to 0.948 on Relation), NER (F1 up to 0.887 on i2b2 2010), and document classification on several clinical datasets.
- Clinical-Longformer generally yields better results than Clinical-BigBird and is recommended when resources are limited due to faster fine-tuning.
- Long-sequence models show larger gains on datasets with longer average sequence lengths (e.g., i2b2 2014, emrQA HeartDisease).
- Open-source release of code and downloadable pre-trained weights facilitates replication and application to other clinical NLP tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.