[Paper Review] Clinical Relation Extraction Using Transformer-based Models
This study evaluates BERT, RoBERTa, and XLNet for clinical relation extraction using two public datasets from the 2018 MADE1.0 and n2c2 challenges. It demonstrates that RoBERTa-clinical RE achieves an F1-score of 0.8958 on MADE1.0 and XLNet-clinical reaches 0.9610 on n2c2, with binary classification outperforming multi-class strategies, and releases open-source models to advance biomedical NLP.
The newly emerged transformer technology has a tremendous impact on NLP research. In the general English domain, transformer-based models have achieved state-of-the-art performances on various NLP benchmarks. In the clinical domain, researchers also have investigated transformer models for clinical applications. The goal of this study is to systematically explore three widely used transformer-based models (i.e., BERT, RoBERTa, and XLNet) for clinical relation extraction and develop an open-source package with clinical pre-trained transformer-based models to facilitate information extraction in the clinical domain. We developed a series of clinical RE models based on three transformer architectures, namely BERT, RoBERTa, and XLNet. We evaluated these models using 2 publicly available datasets from 2018 MADE1.0 and 2018 n2c2 challenges. We compared two classification strategies (binary vs. multi-class classification) and investigated two approaches to generate candidate relations in different experimental settings. In this study, we compared three transformer-based (BERT, RoBERTa, and XLNet) models for relation extraction. We demonstrated that the RoBERTa-clinical RE model achieved the best performance on the 2018 MADE1.0 dataset with an F1-score of 0.8958. On the 2018 n2c2 dataset, the XLNet-clinical model achieved the best F1-score of 0.9610. Our results indicated that the binary classification strategy consistently outperformed the multi-class classification strategy for clinical relation extraction. Our methods and models are publicly available at https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction. We believe this work will improve current practice on clinical relation extraction and other related NLP tasks in the biomedical domain.
Motivation & Objective
- To systematically evaluate transformer-based models—BERT, RoBERTa, and XLNet—for clinical relation extraction in the biomedical domain.
- To compare binary versus multi-class classification strategies in clinical relation extraction.
- To investigate two candidate relation generation approaches across different experimental settings.
- To develop and release open-source clinical pre-trained transformer models to support future research in clinical NLP.
- To improve the state of the art in clinical relation extraction using transfer learning with domain-specific pre-training.
Proposed method
- Fine-tuned three transformer architectures—BERT, RoBERTa, and XLNet—on clinical relation extraction tasks using domain-specific pre-training.
- Applied two classification strategies: binary classification (relation vs. no relation) and multi-class classification (specific relation types).
- Generated candidate relations using two distinct approaches: rule-based and neural-based methods.
- Evaluated models on two benchmark datasets: 2018 MADE1.0 and 2018 n2c2 clinical relation extraction challenges.
- Used standard NLP metrics—precision, recall, and F1-score—for model evaluation and comparison.
- Released trained models and code via an open-source package to support reproducibility and further research.
Experimental results
Research questions
- RQ1Which transformer-based model—BERT, RoBERTa, or XLNet—performs best on clinical relation extraction tasks?
- RQ2Does binary classification outperform multi-class classification in clinical relation extraction?
- RQ3How do different candidate relation generation methods affect model performance?
- RQ4Can domain-specific pre-trained transformer models improve clinical relation extraction beyond general-domain models?
- RQ5What is the optimal configuration for clinical relation extraction using transformer-based architectures?
Key findings
- The RoBERTa-clinical RE model achieved the highest F1-score of 0.8958 on the 2018 MADE1.0 dataset.
- The XLNet-clinical model achieved the best performance on the 2018 n2c2 dataset with an F1-score of 0.9610.
- Binary classification consistently outperformed multi-class classification across both datasets and model architectures.
- The proposed models demonstrated state-of-the-art performance on both benchmark datasets, indicating strong generalization in clinical NLP.
- The open-source release of the models and code enables broader adoption and extension in clinical information extraction.
- The study confirms the effectiveness of domain-adapted pre-training for transformer models in clinical relation extraction.
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.