Graph Transformers on EHRs: Better Representation Improves Downstream Performance
Raphael Poulain, Rahmatollah Beheshti
Abstract
Following the success of transformer-based methods across various machine learning applications, their adoption to healthcare predictive tasks using electronic health records (EHRs) has also expanded extensively. Similarly, graph-based methods have been shown to be very effective in capturing inherent graph-type relationships in EHRs, leading to improved downstream performance. Although integrating these two families of approaches seems like a natural next step, in practice, creating such a design is challenging and has not been done. This is partly due to known EHR problems, such as high sparsity, making extracting meaningful temporal representations of medical visits challenging. In this study, we propose GT-BEHRT, a new approach that leverages temporal visit embeddings extracted from a graph transformer and uses a BERT-based model to obtain more robust patient representations, especially on longer EHR sequences. The graphbased approach allows GT-BEHRT to implicitly capture the intrinsic graphical relationships between medical observations (concepts), while the BERT model extracts the temporal relationships between visits, loosely mimicking the clinicians' decision-making process. As part of our method, we also present a two-step pretraining strategy for learning better graphical and temporal representations. We show how such improved representations can ultimately achieve state-of-the-art performance in a variety of standard medical predictive tasks, demonstrating the versatility of our approach 1 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 6f6d391c-d980-40e9-a1cd-fb375133c8b5Cited by top-tier papers2
- Multimodal Medical Code TokenizerXiaorui Su, Shvat Messica, Yepeng Huang, Ruth Johnson et al.ICML 2025 · 2 citations
- Text-Attributed Knowledge Graph Enrichment with Large Language Models for Medical Concept RepresentationMohsen Nayebi Kerdabadi, Arya Hadizadeh Moghaddam, Chen Chen, Dongjie Wang et al.ACL 2026
Builds on5
- Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
- Learning the Graphical Structure of Electronic Health Records with Graph Convolutional TransformerEdward Choi, Zhen Xu, Yujia Li, Michael Dusenberry et al.AAAI 2020 · 293 citations
- HiTANet: Hierarchical Time-Aware Attention Networks for Risk Prediction on Electronic Health RecordsJunyu Luo, Muchao Ye, Cao Xiao, Fenglong MaKDD 2020 · 187 citations
- RareBERT: Transformer Architecture for Rare Disease Patient Identification using Administrative ClaimsP. K. S. Prakash, Srinivas Chilukuri, Nikhil Ranade, Shankar ViswanathanAAAI 2021 · 45 citations
Related papers
- Time-Conditioned Foreseeing: An EHR-Specific Foundation Model for Irregular Dynamics and Calendrical TimeBong Gyun Kang, JUNYONG AHN, Hyeongrok Han, Sungroh YoonICML 2026
- Temporal Relation Extraction in Clinical Texts: A Span-based Graph Transformer ApproachRochana Chaturvedi, Peyman Baghershahi, Sourav Medya, Barbara Di EugenioACL 2025
- Graph-Based Transformer with Cross-Candidate Verification for Semantic ParsingBo Shao, Yeyun Gong, Weizhen Qi, Guihong Cao et al.AAAI 2020 · 9 citations
- GraphGPT: Generative Pre-trained Graph Eulerian TransformerQifang Zhao, Weidong Ren, Tianyu Li, Hong Liu et al.ICML 2025
- Patient-Trial Matching with Deep Embedding and Entailment PredictionXingyao Zhang, Cao Xiao, Lucas Glass, Jimeng SunWWW 2020
