[Paper Review] Hierarchical BERT for Medical Document Understanding
This paper proposes Medical Document BERT (MDBERT), a hierarchical BERT architecture that enables effective, efficient, and general-purpose representation learning for long medical documents by processing text at token, sentence, and document levels in a bottom-up manner. MDBERT achieves state-of-the-art performance on ICD code assignment (up to 20% relative improvement on MIMIC-III) and significantly reduces self-attention complexity to under 1/100 of vanilla BERT, while enabling transferable sentence- and document-level embeddings for diverse downstream NLP tasks.
Medical document understanding has gained much attention recently. One representative task is the International Classification of Disease (ICD) diagnosis code assignment. Existing work adopts either RNN or CNN as the backbone network because the vanilla BERT cannot handle well long documents (>2000 to kens). One issue shared across all these approaches is that they are over specific to the ICD code assignment task, losing generality to give the whole document-level and sentence-level embedding. As a result, it is not straight-forward to direct them to other downstream NLU tasks. Motivated by these observations, we propose Medical Document BERT (MDBERT) for long medical document understanding tasks. MDBERT is not only effective in learning representations at different levels of semantics but efficient in encoding long documents by leveraging a bottom-up hierarchical architecture. Compared to vanilla BERT solutions: 1, MDBERT boosts the performance up to relatively 20% on the MIMIC-III dataset, making it comparable to current SOTA solutions; 2, it cuts the computational complexity on self-attention modules to less than 1/100. Other than the ICD code assignment, we conduct a variety of other NLU tasks on a large commercial dataset named as TrialTrove, to showcase MDBERT's strength in delivering different levels of semantics.
Motivation & Objective
- To address the limitations of vanilla BERT in handling long clinical notes (>2000 tokens) due to the 512-token sequence length constraint.
- To overcome the task-specific nature of existing ICD code assignment models, which lack general-purpose document and sentence embeddings.
- To develop a unified, end-to-end model that learns multi-level semantic representations (token, sentence, document) simultaneously for improved transferability across NLP tasks.
- To enable efficient encoding of long medical documents by reducing computational complexity of self-attention mechanisms.
- To demonstrate the generalization capability of MDBERT’s learned embeddings across diverse clinical NLP tasks, including ICD coding, patient segment classification, and indication standardization.
Proposed method
- MDBERT employs a bottom-up hierarchical architecture where sentences from different documents are re-batched to enable joint learning at the document level.
- Transformer blocks process representations at each semantic level—tokens, sentences, and documents—using multi-head self-attention with relative positional encoding.
- Semantic representations are aggregated via average pooling in a hierarchical fashion, enabling end-to-end training with task-specific heads attached at any level.
- The model integrates code description augmentation directly into the training process, eliminating the need for a separate code embedding network.
- Sentence-level embeddings are derived from the first average pooling layer, while document-level embeddings are obtained from the final pooled representation.
- Multi-task learning is applied across multiple downstream tasks (e.g., ICD coding, gender classification, patient segment grouping) to improve generalization and robustness.
Experimental results
Research questions
- RQ1Can a BERT-based model effectively handle long medical documents beyond the 512-token limit of standard BERT without performance degradation?
- RQ2Can a unified model learn general-purpose document- and sentence-level embeddings that are transferable across diverse clinical NLP tasks?
- RQ3Does a hierarchical BERT architecture reduce computational complexity while maintaining or improving performance on long document understanding tasks?
- RQ4How effective is MDBERT’s unified embedding space in supporting downstream tasks such as ICD code assignment, patient segment classification, and indication standardization?
- RQ5Can MDBERT’s multi-task training strategy improve performance on low-resource or complex clinical NLP tasks compared to task-specific fine-tuning?
Key findings
- MDBERT achieves up to a 20% relative improvement in performance on the MIMIC-III dataset for ICD code assignment, matching state-of-the-art results.
- The model reduces the computational complexity of self-attention modules to less than 1/100 of vanilla BERT, enabling efficient processing of long documents.
- MDBERT’s document-level embeddings generalize well across multiple downstream tasks, achieving 98.4% AUC-ROC for age group classification and 99.8% for patient segment classification on the TrialTrove dataset.
- The sentence-level embeddings from MDBERT outperform existing baselines in indication standardization, achieving a 96.8% AUC score on the SNOMED matching task, surpassing SBERT (95.3%) and BioBERT (94.5%).
- Multi-task learning improves performance on ICD10 code prediction, demonstrating the benefit of shared representation learning across related clinical NLP tasks.
- MDBERT shows signs of overfitting, with performance plateauing after around 10 epochs, especially on smaller datasets, suggesting a need for stronger regularization or sentence-level constraints in future work.
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.