[Paper Review] Three-level Hierarchical Transformer Networks for Long-sequence and Multiple Clinical Documents Classification
This paper proposes a three-level hierarchical Transformer network that models long clinical sequences by processing information from words to sentences, sentences to clinical notes, and notes to patient-level outcomes. By extending BERT's context length and incorporating time-aware adaptive segmentation, the model achieves state-of-the-art performance, improving AUC by up to 21%, PRC by 51%, and F1 by 46% on MIMIC-III for in-hospital mortality and phenotype prediction tasks.
We present a Three-level Hierarchical Transformer Network (3-level-HTN) for modeling long-term dependencies across clinical notes for the purpose of patient-level prediction. The network is equipped with three levels of Transformer-based encoders to learn progressively from words to sentences, sentences to notes, and finally notes to patients. The first level from word to sentence directly applies a pre-trained BERT model as a fully trainable component. While the second and third levels both implement a stack of transformer-based encoders, before the final patient representation is fed into a classification layer for clinical predictions. Compared to conventional BERT models, our model increases the maximum input length from 512 tokens to much longer sequences that are appropriate for modeling large numbers of clinical notes. We empirically examine different hyper-parameters to identify an optimal trade-off given computational resource limits. Our experiment results on the MIMIC-III dataset for different prediction tasks demonstrate that the proposed Hierarchical Transformer Network outperforms previous state-of-the-art models, including but not limited to BigBird.
Motivation & Objective
- Address the limitation of BERT’s 512-token input length in modeling longitudinal clinical notes.
- Capture hierarchical and temporal dependencies across multiple clinical documents per patient.
- Improve patient-level prediction accuracy for clinical outcomes such as in-hospital mortality and phenotype classification.
- Optimize model performance under computational constraints through hyperparameter tuning and distributed training.
- Demonstrate the necessity of incorporating full longitudinal note sequences rather than relying on isolated notes like discharge summaries.
Proposed method
- Employ a pre-trained BERT model at the word-to-sentence level to extract contextual representations.
- Implement two additional Transformer-based encoder stacks: one for sentence-to-note aggregation and another for note-to-patient classification.
- Introduce time-aware adaptive segmentation to group clinical notes based on temporal proximity, preserving longitudinal structure.
- Use mean_max pooling to aggregate representations across sentence and note levels, enhancing hierarchical feature learning.
- Apply positional encodings at all three levels to maintain sequence order awareness.
- Utilize distributed training to overcome GPU memory limits and enable processing of longer input sequences beyond BERT’s standard limit.
Experimental results
Research questions
- RQ1Can a hierarchical Transformer architecture effectively model long clinical sequences spanning multiple patient notes?
- RQ2How does incorporating temporal structure via adaptive segmentation improve clinical prediction performance compared to treating notes as independent?
- RQ3What is the optimal trade-off between model size, input length, and computational cost for clinical sequence modeling?
- RQ4Does using all available clinical notes significantly improve prediction performance compared to using only discharge summaries?
- RQ5Which architectural components—such as pooling strategy, number of encoder layers, or positional encoding—most significantly impact model performance?
Key findings
- The proposed Hierarchical Transformer Network achieves up to 21% improvement in AUC over previous state-of-the-art models like BigBird on in-hospital mortality prediction.
- The model improves PRC by 51% and F1 score by 46% on phenotype prediction tasks, demonstrating strong gains across multiple metrics.
- Using all available clinical notes (rather than just the discharge summary) significantly boosts performance, with AUC dropping to ~0.85 when only one note is used.
- The best-performing model uses 2 encoder layers at the sentence and document levels, indicating that larger models do not always yield better results due to optimization bottlenecks.
- Adaptive segmentation is critical—removing it reduces AUC to 0.8558 and PRC to 0.7887, highlighting its role in preserving temporal relationships.
- Mean_max pooling outperforms other pooling strategies, and positional encodings are essential for maintaining sequence order awareness across hierarchical levels.
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.