[논문 리뷰] Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences
이 논문은 두 개의 긴 시퀀스 트랜스포머 모델인 Clinical-Longformer와 Clinical-BigBird를 대규모 임상 노트에서 사전 학습시키고 이들이 ClinicalBERT 및 다른 짧은 시퀀스 모델을 여러 임상 NLP 태스크에서 능가함을 보인다.
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에서 긴 시퀀스 트랜스포머의 필요성을 제기한다.
- ~2백만 MIMIC-III 임상 노트에서 도메인 강화 긴 시퀀스 모델을 사전 학습한다.
- 모델을 QA, NER, 문서 분류 등 다양한 임상 NLP 태스크에서 평가한다.
- 재현성과 재사용성을 위해 공개 가능한 코드와 사전 학습 가중치를 제공한다.
제안 방법
- MIMIC-III의 ~2M 임상 노트에서 바이트 수준 BPE를 사용하여 Longformer 및 ITC BigBird 가중치에서 기본 Longformer 및 BigBird 변형을 사전 학습한다.
- FP16로 6×32GB GPU를 사용; Clinical-Longformer를 200k 스텝, Clinical-BigBird를 300k 스텝 학습; 학습률은 3e-5이다.
- 4096-토큰 최대 입력으로 QA, NER, 분류 태스크를 아우르는 9개의 임상 NLP 데이터세트에서 미세조정하며 필요 시 스니펫 풀링으로 집계한다.
- 각 태스크에서 BERT, BioBERT, ClinicalBERT 베이스라인과 비교한다.
실험 결과
연구 질문
- RQ1긴 입력 길이를 활용하여 512-토큰 한계를 넘어 임상 텍스트 태스크에서 성능을 개선할 수 있는가?
- RQ2Clinical-Longformer와 Clinical-BigBird가 QA, NER, 문서 분류에서 짧은 시퀀스 도메인 모델보다 성능이 우수한가?
- RQ3두 가지 긴 시퀀스 모델이 임상 NLP 벤치마크에서 성능 및 학습 효율 측면에서 서로 어떻게 비교되는가?
주요 결과
- 두 가지 모델(Clinical-Longformer, Clinical-BigBird)이 평가된 태스크에서 짧은 시퀀스 베이스라인(ClinicalBERT, BioBERT, BERT)을 능가한다.
- QA에서의 F1 최대 0.948(Relation), NER에서의 F1 최대 0.887(i2b2 2010), 그리고 여러 임상 데이터세트의 문서 분류에서 주목할 만한 향상을 달성한다.
- Clinical-Longformer가 일반적으로 Clinical-BigBird보다 더 나은 결과를 내는 경향이 있으며, 더 빠른 미세조정으로 자원이 제한될 때 권장된다.
- 긴 시퀀스 모델은 평균 시퀀스 길이가 더 긴 데이터셋(i2b2 2014, emrQA HeartDisease)에서 더 큰 이점을 보인다.
- 코드의 오픈 소스 공개와 사전 학습 가중치의 다운로드 가능성은 재현 및 다른 임상 NLP 태스크에의 적용을 촉진한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.