arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01839

Import What You Need: Learning When and How to Augment EHR Graphs with External Knowledge

Chen Chen, Mohsen Nayebi Kerdabadi, Dongjie Wang, Mei Liu, Zijun Yao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Longitudinal prediction from electronic health records (EHRs) is limited by the sparsity and irregularity in patient trajectories, and knowledge augmentation with external knowledge graphs (KGs) offers a promising way to alleviate these issues. However, most existing methods perform fixed, context-agnostic topology augmentation by adding the same KG nodes and edges regardless of a patient's evolving state. We propose ReTA, a Reinforcement learning-based dynamic Topology Augmentation framework that casts KG import as a per-visit, budget-aware policy. ReTA first constructs an offline refined pool of KG-grounded templates, then learns a policy to select one augment action per visit from three options: Soft Import, which enriches node features without modifying graph topology, Hard Import, which grafts a compact KG subgraph onto the visit graph to create message-passing shortcuts, and Skip, which leaves the visit unaugmented when the base encoder is already confident. To stabilize learning, ReTA employs a decoupled encoder that processes semantic and structural signals in separate channels and fuses them via adaptive gating. Experiments on MIMIC-III and MIMIC-IV across diagnosis prediction, mortality, and readmission show that ReTA consistently outperforms strong baselines while remaining efficient, transfers across datasets and knowledge graphs, and yields interpretable augmentation patterns. The robust gains under sparse supervision highlight the advantage of ReTA's dynamic decision to import knowledge, boosting accuracy while curbing costs.

1 Introduction

Massive electronic health records (EHRs) have enabled a wide range of healthcare prediction tasks, from mortality risk estimation to disease progression modeling (Choi et al., 2016; Ma et al., 2017; Choi et al., 2017; Luo et al., 2020). However, patient-level trajectories (e.g., medical codes over visits) in EHRs are often sparse and irregular (Rasmy et al., 2021), making it difficult for data-driven approaches to capture complex clinical patterns such as comorbidities, complication cascades, and organ-system interactions. Established knowledge graphs (KGs) in healthcare, such as PrimeKG (Chandak et al., 2023), offer clinically validated concepts and relations that complement raw visit data. Topology augmentation, which injects KG-derived structure into EHR visit graphs, has therefore emerged as a promising strategy for learning knowledge-augmented patient representations (Liu et al., 2020).

Despite their promise, existing KG-enhanced topology augmentation methods commonly exhibit three limitations. Static: Augmentation is typically driven by fixed, context-agnostic rules that expand each EHR code with a predefined KG neighborhood and apply the same expansion across patients and visits. Such static expansion can over-retrieve weakly related concepts, dilute patient-specific signals, and inflate message-passing cost (Xu et al., 2023; Jiang et al., 2024; Zhu et al., 2024). Unbudgeted: Most approaches do not enforce a resource budget for KG augmentation. Without budget control, expensive strategies (e.g., hard structural injection) can dominate, while lighter alternatives or outright abstention are not systematically leveraged, leading to over-augmentation that amplifies noise (Liu et al., 2024; Zhang et al., 2024). Single-pass: Augmentation is commonly performed in a single shot for an entire trajectory, rather than making adaptive decisions at each visit. Injected knowledge may therefore not reflect evolving patient states. For example, a patient transitioning from chronic diabetes management to acute sepsis needs different relational context at each stage, but single-pass methods apply the same expansion throughout (Ye et al., 2021; Wang et al., 2025).

∗^{*}Corresponding author.

Figure

Figure 1: Two augmentation modes for visit-level KG injection. Soft Import enriches EHR concepts via semantic embeddings without modifying visit graph structure, while Hard Import augments topology by adding KG-derived nodes and edges.

In this work, we propose ReTA, a dynamic, budgeted, and adaptive framework that performs visit-level KG augmentation based on each patient's evolving history. 1^{1} ReTA formulates KG injection along patient progressions as a sequential decision problem in three steps.

Step 1: We construct a quality-filtered knowledge pool offline. Each medical concept is distilled via an LLM into a compact template (a semantic definition paired with a structural cascade), grounded against PrimeKG, and clustered to remove redundancy. At each visit, the top-K most relevant templates are retrieved by combining code-level similarity with trajectory-level context.

Step 2: We introduce a budget-aware augmentation action space (Figure 1). Soft Import enriches node features without modifying graph topology. Hard Import grafts a compact KG subgraph onto the visit graph to create new message-passing paths. Skip leaves the visit unaugmented when the base encoder is already confident. A reinforcement learning policy selects one action per visit, balancing predictive gain against augmentation cost across the patient trajectory.

Step 3: Because Soft Import and Hard Import produce heterogeneous signals, we decouple encoding into a semantic channel and a structural channel, fused by an adaptive gate that selectively combines complementary evidence.

We evaluate ReTA on MIMIC-III (Johnson et al., 2016) and MIMIC-IV (Johnson et al., 2023) across three clinical tasks (diagnosis prediction, in-hospital mortality, and 30-day readmission). ReTA outperforms strong baselines across all evaluated tasks by wide margins at a lower inference cost. Ablation studies ( §3.3§3.3) disentangle the effects of the knowledge pool and the policy’s decisions, demonstrating that dynamically deciding whether and how to augment each visit outperforms conventional augmentation strategies in both accuracy and latency. Moreover, the augmentation patterns are interpretable at the visit level, with performance gains widening as supervision becomes sparser. Finally, the framework demonstrates strong generalizability across clinical coding systems, with cross-dataset transfer performance outperforming the strongest baseline’s in-dataset results.